Skip to content

Commit 4e74267

Browse files
committed
Comment future feature: Render mixed-in methods and constants
1 parent 0aa9ba1 commit 4e74267

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

lib/rdoc/generator/template/rorvswild/class.rhtml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@
3131
<dt id="<%= const.name %>"><%= const.name %></dt>
3232
<%- if const.comment then -%>
3333
<dd>
34-
<%- if const.mixin_from then -%>
34+
<!-- commented future feature
35+
<%#- if const.mixin_from then -%>
3536
<div class="mixin-from">
36-
Included from <a href="<%= klass.aref_to(const.mixin_from.path)%>"><%= const.mixin_from.full_name %></a>
37+
Included from <a href="<%#= klass.aref_to(const.mixin_from.path)%>"><%#= const.mixin_from.full_name %></a>
3738
</div>
38-
<%- end -%>
39+
<%#- end -%>
40+
-->
3941
<%= const.description.strip %>
4042
</dd>
4143
<%- else -%>
@@ -61,11 +63,13 @@
6163
</div>
6264

6365
<div class="method-description">
64-
<%- if attrib.mixin_from then -%>
66+
<!-- commented future feature
67+
<%#- if attrib.mixin_from then -%>
6568
<div class="mixin-from">
66-
<%= attrib.singleton ? "Extended" : "Included" %> from <a href="<%= klass.aref_to(attrib.mixin_from.path)%>"><%= attrib.mixin_from.full_name %></a>
69+
<%#= attrib.singleton ? "Extended" : "Included" %> from <a href="<%#= klass.aref_to(attrib.mixin_from.path)%>"><%#= attrib.mixin_from.full_name %></a>
6770
</div>
68-
<%- end -%>
71+
<%#- end -%>
72+
-->
6973
<%- if attrib.comment then -%>
7074
<%= attrib.description.strip %>
7175
<%- else -%>
@@ -119,11 +123,13 @@
119123

120124
<%- unless method.skip_description? then -%>
121125
<div class="method-description">
122-
<%- if method.mixin_from then -%>
126+
<!-- commented future feature
127+
<%#- if method.mixin_from then -%>
123128
<div class="mixin-from">
124-
<%= method.singleton ? "Extended" : "Included" %> from <a href="<%= klass.aref_to(method.mixin_from.path)%>"><%= method.mixin_from.full_name %></a>
129+
<%#= method.singleton ? "Extended" : "Included" %> from <a href="<%#= klass.aref_to(method.mixin_from.path)%>"><%#= method.mixin_from.full_name %></a>
125130
</div>
126-
<%- end -%>
131+
<%#- end -%>
132+
-->
127133
<%- if method.comment then -%>
128134
<%= method.description.strip %>
129135
<%- else -%>

0 commit comments

Comments
 (0)