rdoc 6.7.0 → 6.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ExampleMarkdown.md +2 -0
- data/ExampleRDoc.rdoc +2 -0
- data/History.rdoc +64 -62
- data/LICENSE.rdoc +2 -0
- data/README.rdoc +13 -0
- data/RI.md +842 -0
- data/TODO.rdoc +8 -7
- data/lib/rdoc/{alias.rb → code_object/alias.rb} +3 -10
- data/lib/rdoc/{any_method.rb → code_object/any_method.rb} +7 -12
- data/lib/rdoc/{attr.rb → code_object/attr.rb} +4 -7
- data/lib/rdoc/{class_module.rb → code_object/class_module.rb} +107 -20
- data/lib/rdoc/{constant.rb → code_object/constant.rb} +1 -1
- data/lib/rdoc/{context → code_object/context}/section.rb +10 -68
- data/lib/rdoc/{context.rb → code_object/context.rb} +4 -46
- data/lib/rdoc/{method_attr.rb → code_object/method_attr.rb} +19 -27
- data/lib/rdoc/{require.rb → code_object/require.rb} +1 -1
- data/lib/rdoc/{top_level.rb → code_object/top_level.rb} +10 -28
- data/lib/rdoc/code_object.rb +6 -32
- data/lib/rdoc/comment.rb +12 -5
- data/lib/rdoc/generator/darkfish.rb +121 -95
- data/lib/rdoc/generator/json_index.rb +1 -17
- data/lib/rdoc/generator/markup.rb +2 -2
- data/lib/rdoc/generator/pot/message_extractor.rb +3 -3
- data/lib/rdoc/generator/pot/po_entry.rb +1 -1
- data/lib/rdoc/generator/pot.rb +0 -5
- data/lib/rdoc/generator/template/darkfish/_head.rhtml +23 -0
- data/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +1 -29
- data/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +1 -1
- data/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +1 -1
- data/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +20 -11
- data/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +3 -8
- data/lib/rdoc/generator/template/darkfish/_sidebar_toggle.rhtml +3 -0
- data/lib/rdoc/generator/template/darkfish/class.rhtml +84 -43
- data/lib/rdoc/generator/template/darkfish/css/rdoc.css +391 -397
- data/lib/rdoc/generator/template/darkfish/index.rhtml +11 -10
- data/lib/rdoc/generator/template/darkfish/js/darkfish.js +24 -1
- data/lib/rdoc/generator/template/darkfish/page.rhtml +5 -5
- data/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +10 -8
- data/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +5 -2
- data/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +11 -0
- data/lib/rdoc/markdown.kpeg +8 -6
- data/lib/rdoc/markdown.rb +55 -32
- data/lib/rdoc/markup/attribute_manager.rb +2 -2
- data/lib/rdoc/markup/formatter.rb +19 -12
- data/lib/rdoc/markup/heading.rb +7 -1
- data/lib/rdoc/markup/pre_process.rb +26 -6
- data/lib/rdoc/markup/to_bs.rb +1 -1
- data/lib/rdoc/markup/to_html.rb +7 -2
- data/lib/rdoc/markup/to_html_crossref.rb +63 -12
- data/lib/rdoc/markup/to_rdoc.rb +5 -5
- data/lib/rdoc/markup.rb +18 -13
- data/lib/rdoc/options.rb +90 -12
- data/lib/rdoc/parser/c.rb +30 -9
- data/lib/rdoc/parser/changelog.rb +5 -4
- data/lib/rdoc/parser/prism_ruby.rb +1092 -0
- data/lib/rdoc/parser/ripper_state_lex.rb +7 -305
- data/lib/rdoc/parser/ruby.rb +23 -17
- data/lib/rdoc/parser/simple.rb +1 -1
- data/lib/rdoc/parser.rb +5 -4
- data/lib/rdoc/rd/block_parser.rb +3 -3
- data/lib/rdoc/rd/inline_parser.rb +3 -3
- data/lib/rdoc/rdoc.rb +9 -21
- data/lib/rdoc/ri/driver.rb +85 -32
- data/lib/rdoc/rubygems_hook.rb +91 -15
- data/lib/rdoc/servlet.rb +8 -7
- data/lib/rdoc/stats.rb +2 -2
- data/lib/rdoc/store.rb +21 -13
- data/lib/rdoc/task.rb +2 -3
- data/lib/rdoc/text.rb +2 -2
- data/lib/rdoc/tom_doc.rb +1 -7
- data/lib/rdoc/version.rb +1 -1
- data/lib/rdoc.rb +22 -24
- data/lib/rubygems_plugin.rb +23 -0
- metadata +27 -28
- data/RI.rdoc +0 -57
- data/lib/rdoc/generator/template/darkfish/.document +0 -0
- data/lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml +0 -19
- data/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +0 -9
- data/lib/rdoc/generator/template/json_index/.document +0 -1
- /data/lib/rdoc/{anon_class.rb → code_object/anon_class.rb} +0 -0
- /data/lib/rdoc/{extend.rb → code_object/extend.rb} +0 -0
- /data/lib/rdoc/{ghost_method.rb → code_object/ghost_method.rb} +0 -0
- /data/lib/rdoc/{include.rb → code_object/include.rb} +0 -0
- /data/lib/rdoc/{meta_method.rb → code_object/meta_method.rb} +0 -0
- /data/lib/rdoc/{mixin.rb → code_object/mixin.rb} +0 -0
- /data/lib/rdoc/{normal_class.rb → code_object/normal_class.rb} +0 -0
- /data/lib/rdoc/{normal_module.rb → code_object/normal_module.rb} +0 -0
- /data/lib/rdoc/{single_class.rb → code_object/single_class.rb} +0 -0
@@ -34,7 +34,7 @@ module RDoc::Generator::Markup
|
|
34
34
|
def formatter
|
35
35
|
return @formatter if defined? @formatter
|
36
36
|
|
37
|
-
options = @store.
|
37
|
+
options = @store.options
|
38
38
|
this = RDoc::Context === self ? self : @parent
|
39
39
|
|
40
40
|
@formatter = RDoc::Markup::ToHtmlCrossref.new options, this.path, this
|
@@ -147,7 +147,7 @@ class RDoc::TopLevel
|
|
147
147
|
# command line option to set.
|
148
148
|
|
149
149
|
def cvs_url
|
150
|
-
url = @store.
|
150
|
+
url = @store.options.webcvs
|
151
151
|
|
152
152
|
if /%s/ =~ url then
|
153
153
|
url % @relative_name
|
@@ -29,17 +29,17 @@ class RDoc::Generator::POT::MessageExtractor
|
|
29
29
|
extract_text(klass.comment_location, klass.full_name)
|
30
30
|
|
31
31
|
klass.each_section do |section, constants, attributes|
|
32
|
-
extract_text(section.title
|
32
|
+
extract_text(section.title, "#{klass.full_name}: section title")
|
33
33
|
section.comments.each do |comment|
|
34
34
|
extract_text(comment, "#{klass.full_name}: #{section.title}")
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
klass.
|
38
|
+
klass.constants.each do |constant|
|
39
39
|
extract_text(constant.comment, constant.full_name)
|
40
40
|
end
|
41
41
|
|
42
|
-
klass.
|
42
|
+
klass.attributes.each do |attribute|
|
43
43
|
extract_text(attribute.comment, attribute.full_name)
|
44
44
|
end
|
45
45
|
|
@@ -23,7 +23,7 @@ class RDoc::Generator::POT::POEntry
|
|
23
23
|
attr_reader :flags
|
24
24
|
|
25
25
|
##
|
26
|
-
# Creates a PO entry for +msgid+. Other
|
26
|
+
# Creates a PO entry for +msgid+. Other values can be specified by
|
27
27
|
# +options+.
|
28
28
|
|
29
29
|
def initialize msgid, options = {}
|
data/lib/rdoc/generator/pot.rb
CHANGED
@@ -1,7 +1,30 @@
|
|
1
1
|
<meta charset="<%= @options.charset %>">
|
2
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
2
3
|
|
3
4
|
<title><%= h @title %></title>
|
4
5
|
|
6
|
+
<%- if defined?(klass) -%>
|
7
|
+
<meta name="keywords" content="ruby,<%= h "#{klass.type},#{klass.full_name}" %>">
|
8
|
+
|
9
|
+
<%- if klass.comment.empty? -%>
|
10
|
+
<meta name="description" content="Documentation for the <%= h "#{klass.full_name} #{klass.type}" %>">
|
11
|
+
<%- else -%>
|
12
|
+
<meta name="description" content="<%= h "#{klass.type} #{klass.full_name}: #{excerpt(klass.comment)}" %>">
|
13
|
+
<%- end -%>
|
14
|
+
<%- elsif defined?(file) -%>
|
15
|
+
<meta name="keywords" content="ruby,documentation,<%= h file.page_name %>">
|
16
|
+
<meta name="description" content="<%= h "#{file.page_name}: #{excerpt(file.comment)}" %>">
|
17
|
+
<%- elsif @title -%>
|
18
|
+
<meta name="keywords" content="ruby,documentation,<%= h @title %>">
|
19
|
+
|
20
|
+
<%- if @options.main_page and
|
21
|
+
main_page = @files.find { |f| f.full_name == @options.main_page } then %>
|
22
|
+
<meta name="description" content="<%= h "#{@title}: #{excerpt(main_page.comment)}" %>">
|
23
|
+
<%- else -%>
|
24
|
+
<meta name="description" content="Documentation for <%= h @title %>">
|
25
|
+
<%- end -%>
|
26
|
+
<%- end -%>
|
27
|
+
|
5
28
|
<script type="text/javascript">
|
6
29
|
var rdoc_rel_prefix = "<%= h asset_rel_prefix %>/";
|
7
30
|
var index_rel_prefix = "<%= h rel_prefix %>/";
|
@@ -1,33 +1,5 @@
|
|
1
1
|
<div id="classindex-section" class="nav-section">
|
2
2
|
<h3>Class and Module Index</h3>
|
3
3
|
|
4
|
-
|
5
|
-
all_classes = @classes.group_by do |klass|
|
6
|
-
klass.full_name[/\A[^:]++(?:::[^:]++(?=::))*+(?=::[^:]*+\z)/]
|
7
|
-
end.delete_if do |_, klasses|
|
8
|
-
!klasses.any?(&:display?)
|
9
|
-
end
|
10
|
-
link = proc do |index_klass, display = index_klass.display?|
|
11
|
-
if display
|
12
|
-
-%><code><a href="<%= rel_prefix %>/<%= index_klass.path %>"><%= index_klass.name %></a></code><%-
|
13
|
-
else
|
14
|
-
-%><code><%= index_klass.name %></code><%-
|
15
|
-
end
|
16
|
-
end
|
17
|
-
if top = all_classes[nil]
|
18
|
-
solo = top.one? {|klass| klass.display?}
|
19
|
-
traverse = proc do |klasses| -%>
|
20
|
-
<ul class="link-list">
|
21
|
-
<%- klasses.each do |index_klass| -%>
|
22
|
-
<%- if children = all_classes[index_klass.full_name] -%>
|
23
|
-
<li><details<% if solo; solo = false %> open<% end %>><summary><% link.call(index_klass) %></summary>
|
24
|
-
<%- traverse.call(children) -%>
|
25
|
-
</ul></details>
|
26
|
-
<%- elsif index_klass.display? -%>
|
27
|
-
<li><% link.call(index_klass, true) %>
|
28
|
-
<%- end -%>
|
29
|
-
<%- end -%>
|
30
|
-
<%- end -%>
|
31
|
-
<%- traverse.call(top) -%>
|
32
|
-
<%- end -%>
|
4
|
+
<%= generate_class_index_content(@classes, rel_prefix) %>
|
33
5
|
</div>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<h3>Extended With Modules</h3>
|
4
4
|
|
5
5
|
<ul class="link-list">
|
6
|
-
<%- klass.
|
6
|
+
<%- klass.extends.each do |ext| -%>
|
7
7
|
<%- unless String === ext.module then -%>
|
8
8
|
<li><a class="extend" href="<%= klass.aref_to ext.module.path %>"><%= ext.module.full_name %></a>
|
9
9
|
<%- else -%>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<h3>Included Modules</h3>
|
4
4
|
|
5
5
|
<ul class="link-list">
|
6
|
-
<%- klass.
|
6
|
+
<%- klass.includes.each do |inc| -%>
|
7
7
|
<%- unless String === inc.module then -%>
|
8
8
|
<li><a class="include" href="<%= klass.aref_to inc.module.path %>"><%= inc.module.full_name %></a>
|
9
9
|
<%- else -%>
|
@@ -1,12 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<
|
4
|
-
|
1
|
+
<% if (class_methods = klass.class_method_list.sort).any? %>
|
2
|
+
<div class="nav-section">
|
3
|
+
<h3>Class Methods</h3>
|
4
|
+
<ul class="link-list" role="directory">
|
5
|
+
<%- class_methods.each do |meth| -%>
|
6
|
+
<li <%- if meth.calls_super %>class="calls-super" <%- end %>><a href="#<%= meth.aref %>"><%= h meth.name -%></a></li>
|
7
|
+
<%- end -%>
|
8
|
+
</ul>
|
9
|
+
</div>
|
10
|
+
<% end %>
|
5
11
|
|
6
|
-
|
7
|
-
|
8
|
-
<
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
<%- end -%>
|
12
|
+
<% if (instance_methods = klass.instance_methods.sort).any? %>
|
13
|
+
<div class="nav-section">
|
14
|
+
<h3>Instance Methods</h3>
|
15
|
+
<ul class="link-list" role="directory">
|
16
|
+
<%- instance_methods.each do |meth| -%>
|
17
|
+
<li <%- if meth.calls_super %>class="calls-super" <%- end %>><a href="#<%= meth.aref %>"><%= h meth.name -%></a></li>
|
18
|
+
<%- end -%>
|
19
|
+
</ul>
|
20
|
+
</div>
|
21
|
+
<% end %>
|
@@ -1,11 +1,6 @@
|
|
1
|
-
<%- if klass.type == 'class'
|
1
|
+
<%- if klass.type == 'class' && (ancestors = klass.super_classes).any? -%>
|
2
2
|
<div id="parent-class-section" class="nav-section">
|
3
|
-
<h3>
|
4
|
-
|
5
|
-
<%- if klass.superclass and not String === klass.superclass then -%>
|
6
|
-
<p class="link"><a href="<%= klass.aref_to klass.superclass.path %>"><%= klass.superclass.full_name %></a>
|
7
|
-
<%- else -%>
|
8
|
-
<p class="link"><%= klass.superclass %>
|
9
|
-
<%- end -%>
|
3
|
+
<h3>Ancestors</h3>
|
4
|
+
<%= generate_ancestor_list(ancestors, klass) %>
|
10
5
|
</div>
|
11
6
|
<%- end -%>
|
@@ -1,23 +1,39 @@
|
|
1
1
|
<body id="top" role="document" class="<%= klass.type %>">
|
2
|
-
|
2
|
+
<%= render '_sidebar_toggle.rhtml' %>
|
3
|
+
|
4
|
+
<nav id="navigation" role="navigation">
|
3
5
|
<div id="project-navigation">
|
4
6
|
<%= render '_sidebar_navigation.rhtml' %>
|
5
7
|
<%= render '_sidebar_search.rhtml' %>
|
6
8
|
</div>
|
7
9
|
|
8
10
|
<%= render '_sidebar_table_of_contents.rhtml' %>
|
11
|
+
<%= render '_sidebar_sections.rhtml' %>
|
12
|
+
<%= render '_sidebar_parent.rhtml' %>
|
13
|
+
<%= render '_sidebar_includes.rhtml' %>
|
14
|
+
<%= render '_sidebar_extends.rhtml' %>
|
15
|
+
<%= render '_sidebar_methods.rhtml' %>
|
9
16
|
|
10
|
-
|
11
|
-
<%= render '_sidebar_sections.rhtml' %>
|
12
|
-
<%= render '_sidebar_parent.rhtml' %>
|
13
|
-
<%= render '_sidebar_includes.rhtml' %>
|
14
|
-
<%= render '_sidebar_extends.rhtml' %>
|
15
|
-
<%= render '_sidebar_methods.rhtml' %>
|
16
|
-
</div>
|
17
|
+
<%= render '_footer.rhtml' %>
|
17
18
|
</nav>
|
18
19
|
|
19
20
|
<main role="main" aria-labelledby="<%=h klass.aref %>">
|
20
|
-
|
21
|
+
<%# If nesting level is 1, breadcrumb list is not needed %>
|
22
|
+
<% if breadcrumb.size > 1 %>
|
23
|
+
<ol role="navigation" aria-label="breadcrumb" class="breadcrumb">
|
24
|
+
<% breadcrumb.each do |namespace| %>
|
25
|
+
<li>
|
26
|
+
<% if namespace[:self] %>
|
27
|
+
<span><%= namespace[:name] %></span>
|
28
|
+
<% else %>
|
29
|
+
<a href="<%= namespace[:path] %>"><%= namespace[:name] %></a><span>::</span>
|
30
|
+
<% end %>
|
31
|
+
</li>
|
32
|
+
<% end %>
|
33
|
+
</ol>
|
34
|
+
<% end %>
|
35
|
+
|
36
|
+
<h1 id="<%=h klass.aref %>" class="anchor-link <%= klass.type %>">
|
21
37
|
<%= klass.type %> <%= klass.full_name %>
|
22
38
|
</h1>
|
23
39
|
|
@@ -26,7 +42,7 @@
|
|
26
42
|
</section>
|
27
43
|
|
28
44
|
<%- klass.each_section do |section, constants, attributes| -%>
|
29
|
-
<section id="<%= section.aref %>" class="documentation-section">
|
45
|
+
<section id="<%= section.aref %>" class="documentation-section anchor-link">
|
30
46
|
<%- if section.title then -%>
|
31
47
|
<header class="documentation-section-title">
|
32
48
|
<h2>
|
@@ -53,7 +69,13 @@
|
|
53
69
|
<%- constants.each do |const| -%>
|
54
70
|
<dt id="<%= const.name %>"><%= const.name %>
|
55
71
|
<%- if const.comment then -%>
|
56
|
-
<dd
|
72
|
+
<dd>
|
73
|
+
<%- if const.mixin_from then -%>
|
74
|
+
<div class="mixin-from">
|
75
|
+
Included from <a href="<%= klass.aref_to(const.mixin_from.path)%>"><%= const.mixin_from.full_name %></a>
|
76
|
+
</div>
|
77
|
+
<%- end -%>
|
78
|
+
<%= const.description.strip %>
|
57
79
|
<%- else -%>
|
58
80
|
<dd class="missing-docs">(Not documented)
|
59
81
|
<%- end -%>
|
@@ -69,13 +91,20 @@
|
|
69
91
|
</header>
|
70
92
|
|
71
93
|
<%- attributes.each do |attrib| -%>
|
72
|
-
<div id="<%= attrib.aref %>" class="method-detail">
|
94
|
+
<div id="<%= attrib.aref %>" class="method-detail anchor-link">
|
73
95
|
<div class="method-heading attribute-method-heading">
|
74
|
-
<
|
75
|
-
class="
|
96
|
+
<a href="#<%= attrib.aref %>" title="Link to this attribute">
|
97
|
+
<span class="method-name"><%= h attrib.name %></span>
|
98
|
+
<span class="attribute-access-type">[<%= attrib.rw %>]</span>
|
99
|
+
</a>
|
76
100
|
</div>
|
77
101
|
|
78
102
|
<div class="method-description">
|
103
|
+
<%- if attrib.mixin_from then -%>
|
104
|
+
<div class="mixin-from">
|
105
|
+
<%= attrib.singleton ? "Extended" : "Included" %> from <a href="<%= klass.aref_to(attrib.mixin_from.path)%>"><%= attrib.mixin_from.full_name %></a>
|
106
|
+
</div>
|
107
|
+
<%- end -%>
|
79
108
|
<%- if attrib.comment then -%>
|
80
109
|
<%= attrib.description.strip %>
|
81
110
|
<%- else -%>
|
@@ -91,44 +120,62 @@
|
|
91
120
|
next if visibilities.empty?
|
92
121
|
visibilities.each do |visibility, methods|
|
93
122
|
next if methods.empty? %>
|
94
|
-
<section id="<%= visibility %>-<%= type %>-<%= section.aref %>-method-details" class="method-section">
|
123
|
+
<section id="<%= visibility %>-<%= type %>-<%= section.aref %>-method-details" class="method-section anchor-link">
|
95
124
|
<header>
|
96
125
|
<h3><%= visibility.to_s.capitalize %> <%= type.capitalize %> Methods</h3>
|
97
126
|
</header>
|
98
127
|
|
99
128
|
<%- methods.each do |method| -%>
|
100
|
-
<div id="<%= method.aref %>" class="method-detail <%= method.is_alias_for ? "method-alias" : '' %>">
|
129
|
+
<div id="<%= method.aref %>" class="method-detail anchor-link <%= method.is_alias_for ? "method-alias" : '' %>">
|
101
130
|
<div class="method-header">
|
102
131
|
<%- if (call_seq = method.call_seq) then -%>
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
132
|
+
<%- call_seq.strip.split("\n").each_with_index do |call_seq, i| -%>
|
133
|
+
<div class="method-heading">
|
134
|
+
<a href="#<%= method.aref %>" title="Link to this method">
|
135
|
+
<span class="method-callseq">
|
136
|
+
<%= h(call_seq.strip.
|
137
|
+
gsub( /^\w+\./m, '')).
|
138
|
+
gsub(/(.*)[-=]>/, '\1→') %>
|
139
|
+
</span>
|
140
|
+
</a>
|
141
|
+
</div>
|
112
142
|
<%- end -%>
|
113
|
-
</div>
|
114
|
-
<%- end -%>
|
115
143
|
<%- elsif method.has_call_seq? then -%>
|
116
|
-
|
117
|
-
|
118
|
-
|
144
|
+
<div class="method-heading">
|
145
|
+
<a href="#<%= method.aref %>" title="Link to this method">
|
146
|
+
<span class="method-name"><%= h method.name %></span>
|
147
|
+
</a>
|
148
|
+
</div>
|
119
149
|
<%- else -%>
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
</div>
|
150
|
+
<div class="method-heading">
|
151
|
+
<a href="#<%= method.aref %>" title="Link to this method">
|
152
|
+
<span class="method-name"><%= h method.name %></span>
|
153
|
+
<span class="method-args"><%= h method.param_seq %></span>
|
154
|
+
</a>
|
155
|
+
</div>
|
127
156
|
<%- end -%>
|
128
157
|
</div>
|
129
158
|
|
159
|
+
<%- if method.token_stream -%>
|
160
|
+
<div class="method-controls">
|
161
|
+
<details class="method-source-toggle">
|
162
|
+
<summary>Source</summary>
|
163
|
+
</details>
|
164
|
+
</div>
|
165
|
+
<%- end -%>
|
166
|
+
|
130
167
|
<%- unless method.skip_description? then -%>
|
131
168
|
<div class="method-description">
|
169
|
+
<%- if method.token_stream then -%>
|
170
|
+
<div class="method-source-code" id="<%= method.html_name %>-source">
|
171
|
+
<pre><%= method.markup_code %></pre>
|
172
|
+
</div>
|
173
|
+
<%- end -%>
|
174
|
+
<%- if method.mixin_from then -%>
|
175
|
+
<div class="mixin-from">
|
176
|
+
<%= method.singleton ? "Extended" : "Included" %> from <a href="<%= klass.aref_to(method.mixin_from.path)%>"><%= method.mixin_from.full_name %></a>
|
177
|
+
</div>
|
178
|
+
<%- end -%>
|
132
179
|
<%- if method.comment then -%>
|
133
180
|
<%= method.description.strip %>
|
134
181
|
<%- else -%>
|
@@ -143,12 +190,6 @@
|
|
143
190
|
%>
|
144
191
|
</div>
|
145
192
|
<%- end -%>
|
146
|
-
|
147
|
-
<%- if method.token_stream then -%>
|
148
|
-
<div class="method-source-code" id="<%= method.html_name %>-source">
|
149
|
-
<pre><%= method.markup_code %></pre>
|
150
|
-
</div>
|
151
|
-
<%- end -%>
|
152
193
|
</div>
|
153
194
|
<%- end -%>
|
154
195
|
|