{{ log.debug() }}
{% if obj.parent %} {% filter heading(heading_level, id=obj.abs_id, class="doc doc-heading", toc_label=obj.name) %} {% if obj.is_abstract %}abstract {% endif %}{{ obj.kind }} {{ obj.full_name }} {% if obj.superclass %}
inherits {{ obj.superclass |reference }} {% endif %} {% endfilter %} {% endif %}
{% if obj.doc %}{{ obj.doc |convert_markdown(obj, heading_level, obj.abs_id) }}{% endif %} {% with root = False, heading_level = heading_level + 1 %}
{% if obj.kind == "alias" %} Alias definition {{ obj.aliased |code_highlight(language="crystal", inline=True) }} {% endif %} {% for title, sub in [ ("Included modules", obj.included_modules), ("Extended modules", obj.extended_modules), ("Direct known subclasses", obj.subclasses), ("Direct including types", obj.including_types), ] %} {% if sub %} {{ title }} {% for other in sub %} {{ other |reference }} {% endfor %} {% endif %} {% endfor %} {% if obj.constants %} {% if obj.kind == "enum" %} {% filter heading(heading_level, id=obj.abs_id ~ "-members") %}Members{% endfilter %} {% else %} {% filter heading(heading_level, id=obj.abs_id ~ "-constants") %}Constants{% endfilter %} {% endif %} {% with heading_level = heading_level + 1 %} {% for obj in obj.constants %} {% include "constant.html" with context %} {% endfor %} {% endwith %} {% endif %} {% for title, sub in [ ("Constructors", obj.constructors), ("Class methods", obj.class_methods), ("Methods", obj.instance_methods), ("Macros", obj.macros), ] %} {% if sub %} {% filter heading(heading_level, id=obj.abs_id ~ "-" ~ title.lower().replace(" ", "-")) %}{{ title }}{% endfilter %} {% with heading_level = heading_level + 1 %} {% for obj in sub %} {% include "method.html" with context %} {% endfor %} {% endwith %} {% endif %} {% endfor %}
{% endwith %}
{% for obj in obj.types %} {% include "type.html" with context %} {% endfor %}