Skip to content

Commit

Permalink
Comment future feature: Render mixed-in methods and constants
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinem committed Oct 18, 2024
1 parent 0aa9ba1 commit 4e74267
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions lib/rdoc/generator/template/rorvswild/class.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@
<dt id="<%= const.name %>"><%= const.name %></dt>
<%- if const.comment then -%>
<dd>
<%- if const.mixin_from then -%>
<!-- commented future feature
<%#- if const.mixin_from then -%>
<div class="mixin-from">
Included from <a href="<%= klass.aref_to(const.mixin_from.path)%>"><%= const.mixin_from.full_name %></a>
Included from <a href="<%#= klass.aref_to(const.mixin_from.path)%>"><%#= const.mixin_from.full_name %></a>
</div>
<%- end -%>
<%#- end -%>
-->
<%= const.description.strip %>
</dd>
<%- else -%>
Expand All @@ -61,11 +63,13 @@
</div>

<div class="method-description">
<%- if attrib.mixin_from then -%>
<!-- commented future feature
<%#- if attrib.mixin_from then -%>
<div class="mixin-from">
<%= attrib.singleton ? "Extended" : "Included" %> from <a href="<%= klass.aref_to(attrib.mixin_from.path)%>"><%= attrib.mixin_from.full_name %></a>
<%#= attrib.singleton ? "Extended" : "Included" %> from <a href="<%#= klass.aref_to(attrib.mixin_from.path)%>"><%#= attrib.mixin_from.full_name %></a>
</div>
<%- end -%>
<%#- end -%>
-->
<%- if attrib.comment then -%>
<%= attrib.description.strip %>
<%- else -%>
Expand Down Expand Up @@ -119,11 +123,13 @@

<%- unless method.skip_description? then -%>
<div class="method-description">
<%- if method.mixin_from then -%>
<!-- commented future feature
<%#- if method.mixin_from then -%>
<div class="mixin-from">
<%= method.singleton ? "Extended" : "Included" %> from <a href="<%= klass.aref_to(method.mixin_from.path)%>"><%= method.mixin_from.full_name %></a>
<%#= method.singleton ? "Extended" : "Included" %> from <a href="<%#= klass.aref_to(method.mixin_from.path)%>"><%#= method.mixin_from.full_name %></a>
</div>
<%- end -%>
<%#- end -%>
-->
<%- if method.comment then -%>
<%= method.description.strip %>
<%- else -%>
Expand Down

0 comments on commit 4e74267

Please sign in to comment.