rdoc 6.14.2 → 6.16.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/History.rdoc +1 -1
- data/README.md +112 -0
- data/RI.md +1 -1
- data/lib/rdoc/code_object/top_level.rb +18 -25
- data/lib/rdoc/comment.rb +190 -8
- data/lib/rdoc/cross_reference.rb +1 -1
- data/lib/rdoc/generator/aliki.rb +42 -0
- data/lib/rdoc/generator/template/aliki/_aside_toc.rhtml +8 -0
- data/lib/rdoc/generator/template/aliki/_footer.rhtml +23 -0
- data/lib/rdoc/generator/template/aliki/_head.rhtml +158 -0
- data/lib/rdoc/generator/template/aliki/_header.rhtml +56 -0
- data/lib/rdoc/generator/template/aliki/_sidebar_ancestors.rhtml +6 -0
- data/lib/rdoc/generator/template/aliki/_sidebar_classes.rhtml +5 -0
- data/lib/rdoc/generator/template/aliki/_sidebar_extends.rhtml +15 -0
- data/lib/rdoc/generator/template/aliki/_sidebar_includes.rhtml +15 -0
- data/lib/rdoc/generator/template/aliki/_sidebar_installed.rhtml +16 -0
- data/lib/rdoc/generator/template/aliki/_sidebar_methods.rhtml +21 -0
- data/lib/rdoc/generator/template/aliki/_sidebar_pages.rhtml +37 -0
- data/lib/rdoc/generator/template/aliki/_sidebar_search.rhtml +15 -0
- data/lib/rdoc/generator/template/aliki/_sidebar_sections.rhtml +11 -0
- data/lib/rdoc/generator/template/aliki/_sidebar_toggle.rhtml +3 -0
- data/lib/rdoc/generator/template/aliki/class.rhtml +219 -0
- data/lib/rdoc/generator/template/aliki/css/rdoc.css +1612 -0
- data/lib/rdoc/generator/template/aliki/index.rhtml +21 -0
- data/lib/rdoc/generator/template/aliki/js/aliki.js +483 -0
- data/lib/rdoc/generator/template/aliki/js/c_highlighter.js +299 -0
- data/lib/rdoc/generator/template/aliki/js/search.js +120 -0
- data/lib/rdoc/generator/template/aliki/js/theme-toggle.js +112 -0
- data/lib/rdoc/generator/template/aliki/page.rhtml +17 -0
- data/lib/rdoc/generator/template/aliki/servlet_not_found.rhtml +14 -0
- data/lib/rdoc/generator/template/aliki/servlet_root.rhtml +65 -0
- data/lib/rdoc/generator/template/darkfish/_footer.rhtml +3 -3
- data/lib/rdoc/generator/template/darkfish/_head.rhtml +14 -19
- data/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +8 -8
- data/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +8 -8
- data/lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +7 -6
- data/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +6 -6
- data/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +19 -19
- data/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +2 -2
- data/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +1 -0
- data/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +3 -3
- data/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +14 -14
- data/lib/rdoc/generator/template/darkfish/class.rhtml +62 -60
- data/lib/rdoc/generator/template/darkfish/index.rhtml +4 -3
- data/lib/rdoc/generator/template/darkfish/js/darkfish.js +21 -1
- data/lib/rdoc/generator/template/darkfish/js/search.js +11 -1
- data/lib/rdoc/generator/template/darkfish/page.rhtml +2 -1
- data/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +2 -1
- data/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +19 -19
- data/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +19 -17
- data/lib/rdoc/generator/template/json_index/js/searcher.js +48 -6
- data/lib/rdoc/generator.rb +1 -0
- data/lib/rdoc/markdown.kpeg +28 -17
- data/lib/rdoc/markdown.rb +365 -544
- data/lib/rdoc/markup/pre_process.rb +34 -10
- data/lib/rdoc/markup/to_html.rb +162 -14
- data/lib/rdoc/markup/to_html_crossref.rb +53 -23
- data/lib/rdoc/options.rb +22 -11
- data/lib/rdoc/parser/c.rb +15 -46
- data/lib/rdoc/parser/prism_ruby.rb +121 -113
- data/lib/rdoc/parser/ruby.rb +8 -8
- data/lib/rdoc/parser/ruby_tools.rb +5 -7
- data/lib/rdoc/parser/simple.rb +4 -21
- data/lib/rdoc/rdoc.rb +1 -0
- data/lib/rdoc/ri/task.rb +2 -2
- data/lib/rdoc/store.rb +2 -2
- data/lib/rdoc/task.rb +4 -4
- data/lib/rdoc/text.rb +1 -1
- data/lib/rdoc/token_stream.rb +13 -1
- data/lib/rdoc/tom_doc.rb +1 -1
- data/lib/rdoc/version.rb +1 -1
- data/rdoc.gemspec +3 -2
- metadata +44 -5
- data/README.rdoc +0 -144
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<header class="top-navbar">
|
|
2
|
+
<a href="<%= rel_prefix %>/index.html" class="navbar-brand">
|
|
3
|
+
<%= h @options.title %>
|
|
4
|
+
</a>
|
|
5
|
+
|
|
6
|
+
<!-- Desktop search bar -->
|
|
7
|
+
<div class="navbar-search navbar-search-desktop" role="search">
|
|
8
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
9
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
|
10
|
+
aria-autocomplete="list" aria-controls="search-results"
|
|
11
|
+
type="text" name="search" placeholder="Search (/) for a class, method..."
|
|
12
|
+
spellcheck="false" autocomplete="off"
|
|
13
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
14
|
+
<ul id="search-results" aria-label="Search Results"
|
|
15
|
+
aria-busy="false" aria-expanded="false"
|
|
16
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
|
17
|
+
</form>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<!-- Mobile search icon button -->
|
|
21
|
+
<button id="search-toggle" class="navbar-search-mobile" aria-label="Open search" type="button">
|
|
22
|
+
<span aria-hidden="true">🔍</span>
|
|
23
|
+
</button>
|
|
24
|
+
|
|
25
|
+
<!-- Theme toggle button -->
|
|
26
|
+
<button id="theme-toggle" class="theme-toggle" aria-label="Switch to dark mode" type="button">
|
|
27
|
+
<span class="theme-toggle-icon" aria-hidden="true">🌙</span>
|
|
28
|
+
</button>
|
|
29
|
+
</header>
|
|
30
|
+
|
|
31
|
+
<!-- Search Modal (Mobile) -->
|
|
32
|
+
<div id="search-modal" class="search-modal" hidden aria-modal="true" role="dialog" aria-label="Search">
|
|
33
|
+
<div class="search-modal-backdrop"></div>
|
|
34
|
+
<div class="search-modal-content">
|
|
35
|
+
<div class="search-modal-header">
|
|
36
|
+
<form class="search-modal-form" action="#" method="get" accept-charset="utf-8">
|
|
37
|
+
<span class="search-modal-icon" aria-hidden="true">🔍</span>
|
|
38
|
+
<input id="search-field-mobile" role="combobox" aria-label="Search"
|
|
39
|
+
aria-autocomplete="list" aria-controls="search-results-mobile"
|
|
40
|
+
type="text" name="search" placeholder="Search documentation"
|
|
41
|
+
spellcheck="false" autocomplete="off">
|
|
42
|
+
<button type="button" class="search-modal-close" aria-label="Close search" id="search-modal-close">
|
|
43
|
+
<span aria-hidden="true">esc</span>
|
|
44
|
+
</button>
|
|
45
|
+
</form>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="search-modal-body">
|
|
48
|
+
<ul id="search-results-mobile" aria-label="Search Results"
|
|
49
|
+
aria-busy="false" aria-expanded="false"
|
|
50
|
+
aria-atomic="false" class="search-modal-results initially-hidden"></ul>
|
|
51
|
+
<div class="search-modal-empty">
|
|
52
|
+
<p>No recent searches</p>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<%- unless klass.extends.empty? then %>
|
|
2
|
+
<div id="extends-section" class="nav-section">
|
|
3
|
+
<h3>Extended With Modules</h3>
|
|
4
|
+
|
|
5
|
+
<ul class="link-list">
|
|
6
|
+
<%- klass.extends.each do |ext| %>
|
|
7
|
+
<%- unless String === ext.module then %>
|
|
8
|
+
<li><a class="extend" href="<%= klass.aref_to ext.module.path %>"><%= ext.module.full_name %></a></li>
|
|
9
|
+
<%- else %>
|
|
10
|
+
<li><span class="extend"><%= ext.name %></span></li>
|
|
11
|
+
<%- end %>
|
|
12
|
+
<%- end %>
|
|
13
|
+
</ul>
|
|
14
|
+
</div>
|
|
15
|
+
<%- end %>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<%- unless klass.includes.empty? then %>
|
|
2
|
+
<div id="includes-section" class="nav-section">
|
|
3
|
+
<h3>Included Modules</h3>
|
|
4
|
+
|
|
5
|
+
<ul class="link-list">
|
|
6
|
+
<%- klass.includes.each do |inc| %>
|
|
7
|
+
<%- unless String === inc.module then %>
|
|
8
|
+
<li><a class="include" href="<%= klass.aref_to inc.module.path %>"><%= inc.module.full_name %></a></li>
|
|
9
|
+
<%- else %>
|
|
10
|
+
<li><span class="include"><%= inc.name %></span></li>
|
|
11
|
+
<%- end %>
|
|
12
|
+
<%- end %>
|
|
13
|
+
</ul>
|
|
14
|
+
</div>
|
|
15
|
+
<%- end %>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<div id="home-section" class="nav-section">
|
|
2
|
+
<h3>Documentation</h3>
|
|
3
|
+
|
|
4
|
+
<ul>
|
|
5
|
+
<%- installed.each do |name, href, exists, type, _| %>
|
|
6
|
+
<%- next if type == :extra %>
|
|
7
|
+
<li class="folder">
|
|
8
|
+
<%- if exists then %>
|
|
9
|
+
<a href="<%= href %>"><%= h name %></a>
|
|
10
|
+
<%- else %>
|
|
11
|
+
<%= h name %>
|
|
12
|
+
<%- end %>
|
|
13
|
+
</li>
|
|
14
|
+
<%- end %>
|
|
15
|
+
</ul>
|
|
16
|
+
</div>
|
|
@@ -0,0 +1,21 @@
|
|
|
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 %>
|
|
11
|
+
|
|
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 %>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<%- simple_files = @files.select { |f| f.text? } %>
|
|
2
|
+
<%- if defined?(current) && current.respond_to?(:page_name) %>
|
|
3
|
+
<%- dir = current.full_name[%r{\A[^/]+(?=/)}] || current.page_name %>
|
|
4
|
+
<%- end %>
|
|
5
|
+
<%- unless simple_files.empty? then %>
|
|
6
|
+
<div id="fileindex-section" class="nav-section">
|
|
7
|
+
<h3>Pages</h3>
|
|
8
|
+
|
|
9
|
+
<ul class="link-list">
|
|
10
|
+
<%- grouped_files = simple_files.group_by { |f| f.full_name[%r{\A[^/]+(?=/)}] || f.page_name } %>
|
|
11
|
+
<%- grouped_files.each do |n, files| %>
|
|
12
|
+
<%- f = files.shift %>
|
|
13
|
+
<%- if files.empty? %>
|
|
14
|
+
<li><a href="<%= rel_prefix %>/<%= h f.path %>"><%= h f.page_name %></a></li>
|
|
15
|
+
<%- next %>
|
|
16
|
+
<%- end %>
|
|
17
|
+
<li>
|
|
18
|
+
<details <%= dir == n ? ' open' : '' %>>
|
|
19
|
+
<summary>
|
|
20
|
+
<% if n == f.page_name %>
|
|
21
|
+
<a href="<%= rel_prefix %>/<%= h f.path %>"><%= h n %></a>
|
|
22
|
+
<% else %>
|
|
23
|
+
<%= h n %>
|
|
24
|
+
<% files.unshift(f) %>
|
|
25
|
+
<% end %>
|
|
26
|
+
</summary>
|
|
27
|
+
<ul class="link-list">
|
|
28
|
+
<%- files.each do |f| %>
|
|
29
|
+
<li><a href="<%= rel_prefix %>/<%= h f.path %>"><%= h f.page_name %></a></li>
|
|
30
|
+
<%- end %>
|
|
31
|
+
</ul>
|
|
32
|
+
</details>
|
|
33
|
+
</li>
|
|
34
|
+
<%- end %>
|
|
35
|
+
</ul>
|
|
36
|
+
</div>
|
|
37
|
+
<%- end %>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
|
2
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
3
|
+
<div id="search-field-wrapper">
|
|
4
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
|
5
|
+
aria-autocomplete="list" aria-controls="search-results"
|
|
6
|
+
type="text" name="search" placeholder="Search (/) for a class, method, ..." spellcheck="false"
|
|
7
|
+
autocomplete="off"
|
|
8
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<ul id="search-results" aria-label="Search Results"
|
|
12
|
+
aria-busy="false" aria-expanded="false"
|
|
13
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
|
14
|
+
</form>
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<%- unless klass.sections.length == 1 then %>
|
|
2
|
+
<div id="sections-section" class="nav-section">
|
|
3
|
+
<h3>Sections</h3>
|
|
4
|
+
|
|
5
|
+
<ul class="link-list" role="directory">
|
|
6
|
+
<%- klass.sort_sections.each do |section| %>
|
|
7
|
+
<li><a href="#<%= section.aref %>"><%= h section.title %></a></li>
|
|
8
|
+
<%- end %>
|
|
9
|
+
</ul>
|
|
10
|
+
</div>
|
|
11
|
+
<%- end %>
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
<body role="document" class="<%= klass.type %> has-toc">
|
|
2
|
+
<%= render '_header.rhtml' %>
|
|
3
|
+
<%= render '_sidebar_toggle.rhtml' %>
|
|
4
|
+
|
|
5
|
+
<nav id="navigation" role="navigation">
|
|
6
|
+
<%= render '_sidebar_pages.rhtml' %>
|
|
7
|
+
<%= render '_sidebar_sections.rhtml' %>
|
|
8
|
+
<%= render '_sidebar_ancestors.rhtml' %>
|
|
9
|
+
<%= render '_sidebar_includes.rhtml' %>
|
|
10
|
+
<%= render '_sidebar_extends.rhtml' %>
|
|
11
|
+
<%= render '_sidebar_methods.rhtml' %>
|
|
12
|
+
<%= render '_sidebar_classes.rhtml' %>
|
|
13
|
+
</nav>
|
|
14
|
+
|
|
15
|
+
<main role="main" aria-labelledby="<%= h klass.aref %>">
|
|
16
|
+
<%# If nesting level is 1, breadcrumb list is not needed %>
|
|
17
|
+
<% if breadcrumb.size > 1 %>
|
|
18
|
+
<ol role="navigation" aria-label="Breadcrumb navigation" class="breadcrumb">
|
|
19
|
+
<% breadcrumb.each do |namespace| %>
|
|
20
|
+
<li>
|
|
21
|
+
<% if namespace[:self] %>
|
|
22
|
+
<span><%= namespace[:name] %></span>
|
|
23
|
+
<% else %>
|
|
24
|
+
<a href="<%= namespace[:path] %>"><%= namespace[:name] %></a><span>::</span>
|
|
25
|
+
<% end %>
|
|
26
|
+
</li>
|
|
27
|
+
<% end %>
|
|
28
|
+
</ol>
|
|
29
|
+
<% end %>
|
|
30
|
+
|
|
31
|
+
<h1 id="<%= h klass.aref %>" class="anchor-link <%= klass.type %>">
|
|
32
|
+
<%= klass.type %> <%= klass.full_name %>
|
|
33
|
+
</h1>
|
|
34
|
+
|
|
35
|
+
<section class="description">
|
|
36
|
+
<%= klass.description %>
|
|
37
|
+
</section>
|
|
38
|
+
|
|
39
|
+
<%- klass.each_section do |section, constants, attributes| %>
|
|
40
|
+
<section id="<%= section.aref %>" class="documentation-section anchor-link">
|
|
41
|
+
<%- if section.title then %>
|
|
42
|
+
<header class="documentation-section-title">
|
|
43
|
+
<h2>
|
|
44
|
+
<a href="#<%= section.aref %>"><%= section.title %></a>
|
|
45
|
+
</h2>
|
|
46
|
+
</header>
|
|
47
|
+
<%- end %>
|
|
48
|
+
|
|
49
|
+
<%- if section.comment then %>
|
|
50
|
+
<div>
|
|
51
|
+
<%= section.description %>
|
|
52
|
+
</div>
|
|
53
|
+
<%- end %>
|
|
54
|
+
|
|
55
|
+
<%- unless constants.empty? then %>
|
|
56
|
+
<section class="constants-list">
|
|
57
|
+
<header>
|
|
58
|
+
<h3 id="constants"><a href="#constants">Constants</a></h3>
|
|
59
|
+
</header>
|
|
60
|
+
<dl>
|
|
61
|
+
<%- constants.each do |const| %>
|
|
62
|
+
<dt id="<%= const.name %>"><%= const.name %></dt>
|
|
63
|
+
<%- if const.comment then %>
|
|
64
|
+
<dd>
|
|
65
|
+
<%- if const.mixin_from then %>
|
|
66
|
+
<div class="mixin-from">
|
|
67
|
+
Included from <a href="<%= klass.aref_to(const.mixin_from.path) %>"><%= const.mixin_from.full_name %></a>
|
|
68
|
+
</div>
|
|
69
|
+
<%- end %>
|
|
70
|
+
<%= const.description.strip %>
|
|
71
|
+
</dd>
|
|
72
|
+
<%- else %>
|
|
73
|
+
<dd class="missing-docs">(Not documented)</dd>
|
|
74
|
+
<%- end %>
|
|
75
|
+
<%- end %>
|
|
76
|
+
</dl>
|
|
77
|
+
</section>
|
|
78
|
+
<%- end %>
|
|
79
|
+
|
|
80
|
+
<%- unless attributes.empty? then %>
|
|
81
|
+
<section class="attribute-method-details method-section">
|
|
82
|
+
<header>
|
|
83
|
+
<h3 id="attributes"><a href="#attributes">Attributes</a></h3>
|
|
84
|
+
</header>
|
|
85
|
+
|
|
86
|
+
<%- attributes.each do |attrib| %>
|
|
87
|
+
<div id="<%= attrib.aref %>" class="method-detail anchor-link">
|
|
88
|
+
<div class="method-heading attribute-method-heading">
|
|
89
|
+
<a href="#<%= attrib.aref %>" title="Link to this attribute">
|
|
90
|
+
<span class="method-name"><%= h attrib.name %></span>
|
|
91
|
+
<span class="attribute-access-type">[<%= attrib.rw %>]</span>
|
|
92
|
+
</a>
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
|
+
<div class="method-description">
|
|
96
|
+
<%- if attrib.mixin_from then %>
|
|
97
|
+
<div class="mixin-from">
|
|
98
|
+
<%= attrib.singleton ? "Extended" : "Included" %> from <a href="<%= klass.aref_to(attrib.mixin_from.path) %>"><%= attrib.mixin_from.full_name %></a>
|
|
99
|
+
</div>
|
|
100
|
+
<%- end %>
|
|
101
|
+
<%- if attrib.comment then %>
|
|
102
|
+
<%= attrib.description.strip %>
|
|
103
|
+
<%- else %>
|
|
104
|
+
<p class="missing-docs">(Not documented)</p>
|
|
105
|
+
<%- end %>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
<%- end %>
|
|
109
|
+
</section>
|
|
110
|
+
<%- end %>
|
|
111
|
+
|
|
112
|
+
<%- klass.methods_by_type(section).each do |type, visibilities|
|
|
113
|
+
next if visibilities.empty?
|
|
114
|
+
visibilities.each do |visibility, methods|
|
|
115
|
+
next if methods.empty? %>
|
|
116
|
+
<section id="<%= visibility %>-<%= type %>-<%= section.aref %>-method-details" class="method-section anchor-link">
|
|
117
|
+
<header>
|
|
118
|
+
<h3 id="<%= visibility %>-<%= type %>-methods"><a href="#<%= visibility %>-<%= type %>-methods"><%= visibility.to_s.capitalize %> <%= type.capitalize %> Methods</a></h3>
|
|
119
|
+
</header>
|
|
120
|
+
|
|
121
|
+
<%- methods.each do |method| %>
|
|
122
|
+
<div id="<%= method.aref %>" class="method-detail anchor-link <%= method.is_alias_for ? "method-alias" : '' %>">
|
|
123
|
+
<div class="method-header">
|
|
124
|
+
<%- if (call_seq = method.call_seq) then %>
|
|
125
|
+
<%- call_seq.strip.split("\n").each_with_index do |call_seq, i| %>
|
|
126
|
+
<div class="method-heading">
|
|
127
|
+
<a href="#<%= method.aref %>" title="Link to this method">
|
|
128
|
+
<span class="method-callseq">
|
|
129
|
+
<%= h(call_seq.strip.
|
|
130
|
+
gsub( /^\w+\./m, '')).
|
|
131
|
+
gsub(/(.*)[-=]>/, '\1→') %>
|
|
132
|
+
</span>
|
|
133
|
+
</a>
|
|
134
|
+
</div>
|
|
135
|
+
<%- end %>
|
|
136
|
+
<%- elsif method.has_call_seq? then %>
|
|
137
|
+
<div class="method-heading">
|
|
138
|
+
<a href="#<%= method.aref %>" title="Link to this method">
|
|
139
|
+
<span class="method-name"><%= h method.name %></span>
|
|
140
|
+
</a>
|
|
141
|
+
</div>
|
|
142
|
+
<%- else %>
|
|
143
|
+
<div class="method-heading">
|
|
144
|
+
<a href="#<%= method.aref %>" title="Link to this method">
|
|
145
|
+
<span class="method-name"><%= h method.name %></span>
|
|
146
|
+
<span class="method-args"><%= h method.param_seq %></span>
|
|
147
|
+
</a>
|
|
148
|
+
</div>
|
|
149
|
+
<%- end %>
|
|
150
|
+
</div>
|
|
151
|
+
|
|
152
|
+
<%- if method.token_stream %>
|
|
153
|
+
<div class="method-controls">
|
|
154
|
+
<details class="method-source-toggle">
|
|
155
|
+
<summary>Source</summary>
|
|
156
|
+
</details>
|
|
157
|
+
</div>
|
|
158
|
+
<%- end %>
|
|
159
|
+
|
|
160
|
+
<%- unless method.skip_description? then %>
|
|
161
|
+
<div class="method-description">
|
|
162
|
+
<%- if method.token_stream then %>
|
|
163
|
+
<div class="method-source-code" id="<%= method.html_name %>-source">
|
|
164
|
+
<pre class="<%= method.source_language %>" data-language="<%= method.source_language %>"><%= method.markup_code %></pre>
|
|
165
|
+
</div>
|
|
166
|
+
<%- end %>
|
|
167
|
+
<%- if method.mixin_from then %>
|
|
168
|
+
<div class="mixin-from">
|
|
169
|
+
<%= method.singleton ? "Extended" : "Included" %> from <a href="<%= klass.aref_to(method.mixin_from.path) %>"><%= method.mixin_from.full_name %></a>
|
|
170
|
+
</div>
|
|
171
|
+
<%- end %>
|
|
172
|
+
<%- if method.comment then %>
|
|
173
|
+
<%= method.description.strip %>
|
|
174
|
+
<%- else %>
|
|
175
|
+
<p class="missing-docs">(Not documented)</p>
|
|
176
|
+
<%- end %>
|
|
177
|
+
<%- if method.calls_super then %>
|
|
178
|
+
<div class="method-calls-super">
|
|
179
|
+
Calls superclass method
|
|
180
|
+
<%=
|
|
181
|
+
method.superclass_method ?
|
|
182
|
+
method.formatter.link(method.superclass_method.full_name, method.superclass_method.full_name) : nil
|
|
183
|
+
%>
|
|
184
|
+
</div>
|
|
185
|
+
<%- end %>
|
|
186
|
+
</div>
|
|
187
|
+
<%- end %>
|
|
188
|
+
|
|
189
|
+
<%- unless method.aliases.empty? then %>
|
|
190
|
+
<div class="aliases">
|
|
191
|
+
Also aliased as: <%= method.aliases.map do |aka|
|
|
192
|
+
if aka.parent then # HACK lib/rexml/encodings
|
|
193
|
+
%{<a href="#{klass.aref_to aka.path}">#{h aka.name}</a>}
|
|
194
|
+
else
|
|
195
|
+
h aka.name
|
|
196
|
+
end
|
|
197
|
+
end.join ", " %>
|
|
198
|
+
</div>
|
|
199
|
+
<%- end %>
|
|
200
|
+
|
|
201
|
+
<%- if method.is_alias_for then %>
|
|
202
|
+
<div class="aliases">
|
|
203
|
+
Alias for: <a href="<%= klass.aref_to method.is_alias_for.path %>"><%= h method.is_alias_for.name %></a>
|
|
204
|
+
</div>
|
|
205
|
+
<%- end %>
|
|
206
|
+
</div>
|
|
207
|
+
|
|
208
|
+
<%- end %>
|
|
209
|
+
</section>
|
|
210
|
+
<%- end
|
|
211
|
+
end %>
|
|
212
|
+
</section>
|
|
213
|
+
<%- end %>
|
|
214
|
+
</main>
|
|
215
|
+
|
|
216
|
+
<%= render '_aside_toc.rhtml' %>
|
|
217
|
+
|
|
218
|
+
<%= render '_footer.rhtml' %>
|
|
219
|
+
</body>
|