erbook 7.1.0 → 7.1.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.
- data/doc/api/classes/ERBook/Document.html +10 -10
- data/doc/api/classes/ERBook/Document/Node.html +5 -5
- data/doc/api/classes/ERBook/Template.html +20 -20
- data/doc/api/classes/ERBook/Template/Sandbox.html +5 -5
- data/doc/api/classes/RDoc/AnyMethod.html +20 -20
- data/doc/api/classes/RDoc/TopLevel.html +30 -30
- data/doc/api/classes/String.html +10 -10
- data/doc/api/created.rid +1 -1
- data/doc/api/files/lib/erbook/to_xhtml_rb.html +3 -3
- data/doc/api/files/lib/erbook_rb.html +1 -1
- data/doc/api/panel/search_index.js +1 -1
- data/doc/api/panel/tree.js +1 -1
- data/doc/formats.erb +10 -9
- data/doc/history.erb +38 -8
- data/doc/index.html +4330 -0
- data/doc/intro.erb +29 -64
- data/doc/setup.erb +45 -2
- data/doc/usage.erb +7 -4
- data/fmt/xhtml.yaml +67 -71
- data/lib/erbook.rb +3 -3
- metadata +9 -8
- data/doc/index.xhtml +0 -3945
@@ -49,7 +49,7 @@
|
|
49
49
|
<dd>
|
50
50
|
<ul>
|
51
51
|
|
52
|
-
<li><a href="#
|
52
|
+
<li><a href="#M000010">new</a></li>
|
53
53
|
|
54
54
|
</ul>
|
55
55
|
</dd>
|
@@ -58,7 +58,7 @@
|
|
58
58
|
<dd>
|
59
59
|
<ul>
|
60
60
|
|
61
|
-
<li><a href="#
|
61
|
+
<li><a href="#M000023">to_s</a></li>
|
62
62
|
|
63
63
|
</ul>
|
64
64
|
</dd>
|
@@ -132,9 +132,9 @@ All nodes in the document arranged by node type.
|
|
132
132
|
<div class="sectiontitle">Class Public methods</div>
|
133
133
|
|
134
134
|
<div class="method">
|
135
|
-
<div class="title" id="
|
135
|
+
<div class="title" id="M000010">
|
136
136
|
|
137
|
-
<a name="
|
137
|
+
<a name="M000010"></a><b>new</b>(format_name, input_text, input_file, options = {})
|
138
138
|
|
139
139
|
</div>
|
140
140
|
|
@@ -166,12 +166,12 @@ specification file.
|
|
166
166
|
|
167
167
|
<div class="sourcecode">
|
168
168
|
<p class="source-link">
|
169
|
-
Source: <a href="javascript:toggleSource('
|
169
|
+
Source: <a href="javascript:toggleSource('M000010_source')" id="l_M000010_source">show</a>
|
170
170
|
|
171
171
|
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/document.rb#L42" target="_blank" class="github_url">on GitHub</a>
|
172
172
|
|
173
173
|
</p>
|
174
|
-
<div id="
|
174
|
+
<div id="M000010_source" class="dyn-source">
|
175
175
|
<pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 42</span>
|
176
176
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">format_name</span>, <span class="ruby-identifier">input_text</span>, <span class="ruby-identifier">input_file</span>, <span class="ruby-identifier">options</span> = {}
|
177
177
|
<span class="ruby-comment cmt"># process format specification</span>
|
@@ -362,9 +362,9 @@ specification file.
|
|
362
362
|
<div class="sectiontitle">Instance Public methods</div>
|
363
363
|
|
364
364
|
<div class="method">
|
365
|
-
<div class="title" id="
|
365
|
+
<div class="title" id="M000023">
|
366
366
|
|
367
|
-
<a name="
|
367
|
+
<a name="M000023"></a><b>to_s</b>()
|
368
368
|
|
369
369
|
</div>
|
370
370
|
|
@@ -380,12 +380,12 @@ Returns the output of this document.
|
|
380
380
|
|
381
381
|
<div class="sourcecode">
|
382
382
|
<p class="source-link">
|
383
|
-
Source: <a href="javascript:toggleSource('
|
383
|
+
Source: <a href="javascript:toggleSource('M000023_source')" id="l_M000023_source">show</a>
|
384
384
|
|
385
385
|
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/document.rb#L227" target="_blank" class="github_url">on GitHub</a>
|
386
386
|
|
387
387
|
</p>
|
388
|
-
<div id="
|
388
|
+
<div id="M000023_source" class="dyn-source">
|
389
389
|
<pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 227</span>
|
390
390
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span><span class="ruby-identifier">to_s</span>
|
391
391
|
<span class="ruby-constant">Template</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">"#{@format_file}:output"</span>, <span class="ruby-ivar">@format</span>[<span class="ruby-value str">'output'</span>].<span class="ruby-identifier">to_s</span>).
|
@@ -49,7 +49,7 @@
|
|
49
49
|
<dd>
|
50
50
|
<ul>
|
51
51
|
|
52
|
-
<li><a href="#
|
52
|
+
<li><a href="#M000024">to_s</a></li>
|
53
53
|
|
54
54
|
</ul>
|
55
55
|
</dd>
|
@@ -71,9 +71,9 @@
|
|
71
71
|
<div class="sectiontitle">Instance Public methods</div>
|
72
72
|
|
73
73
|
<div class="method">
|
74
|
-
<div class="title" id="
|
74
|
+
<div class="title" id="M000024">
|
75
75
|
|
76
|
-
<a name="
|
76
|
+
<a name="M000024"></a><b>to_s</b>()
|
77
77
|
|
78
78
|
</div>
|
79
79
|
|
@@ -89,12 +89,12 @@ Returns the output of this node.
|
|
89
89
|
|
90
90
|
<div class="sourcecode">
|
91
91
|
<p class="source-link">
|
92
|
-
Source: <a href="javascript:toggleSource('
|
92
|
+
Source: <a href="javascript:toggleSource('M000024_source')" id="l_M000024_source">show</a>
|
93
93
|
|
94
94
|
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/document.rb#L241" target="_blank" class="github_url">on GitHub</a>
|
95
95
|
|
96
96
|
</p>
|
97
|
-
<div id="
|
97
|
+
<div id="M000024_source" class="dyn-source">
|
98
98
|
<pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 241</span>
|
99
99
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
100
100
|
<span class="ruby-identifier">defn</span>[<span class="ruby-value str">'silent'</span>] <span class="ruby-operator">?</span> <span class="ruby-value str">''</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">output</span>
|
@@ -58,7 +58,7 @@ sandboxing for isolated template rendering.
|
|
58
58
|
<dd>
|
59
59
|
<ul>
|
60
60
|
|
61
|
-
<li><a href="#
|
61
|
+
<li><a href="#M000003">buffer</a></li>
|
62
62
|
|
63
63
|
</ul>
|
64
64
|
</dd>
|
@@ -67,7 +67,7 @@ sandboxing for isolated template rendering.
|
|
67
67
|
<dd>
|
68
68
|
<ul>
|
69
69
|
|
70
|
-
<li><a href="#
|
70
|
+
<li><a href="#M000000">new</a></li>
|
71
71
|
|
72
72
|
</ul>
|
73
73
|
</dd>
|
@@ -76,9 +76,9 @@ sandboxing for isolated template rendering.
|
|
76
76
|
<dd>
|
77
77
|
<ul>
|
78
78
|
|
79
|
-
<li><a href="#
|
79
|
+
<li><a href="#M000002">render</a>,</li>
|
80
80
|
|
81
|
-
<li><a href="#
|
81
|
+
<li><a href="#M000005">render_with</a></li>
|
82
82
|
|
83
83
|
</ul>
|
84
84
|
</dd>
|
@@ -120,9 +120,9 @@ sandboxing for isolated template rendering.
|
|
120
120
|
<div class="sectiontitle">Class Public methods</div>
|
121
121
|
|
122
122
|
<div class="method">
|
123
|
-
<div class="title" id="
|
123
|
+
<div class="title" id="M000000">
|
124
124
|
|
125
|
-
<a name="
|
125
|
+
<a name="M000000"></a><b>new</b>(source, input, unindent = true, safe_level = nil)
|
126
126
|
|
127
127
|
</div>
|
128
128
|
|
@@ -151,12 +151,12 @@ traces; so that the user can better determine the source of an error.
|
|
151
151
|
|
152
152
|
<div class="sourcecode">
|
153
153
|
<p class="source-link">
|
154
|
-
Source: <a href="javascript:toggleSource('
|
154
|
+
Source: <a href="javascript:toggleSource('M000000_source')" id="l_M000000_source">show</a>
|
155
155
|
|
156
156
|
| <a href="http://github.com/sunaku/erbook/blob/2b6f0dba66f674e479ef2cdeb7530389bf2af169/lib/erbook/template.rb#L33" target="_blank" class="github_url">on GitHub</a>
|
157
157
|
|
158
158
|
</p>
|
159
|
-
<div id="
|
159
|
+
<div id="M000000_source" class="dyn-source">
|
160
160
|
<pre><span class="ruby-comment cmt"># File lib/erbook/template.rb, line 33</span>
|
161
161
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">source</span>, <span class="ruby-identifier">input</span>, <span class="ruby-identifier">unindent</span> = <span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">safe_level</span> = <span class="ruby-keyword kw">nil</span>
|
162
162
|
<span class="ruby-keyword kw">super</span> <span class="ruby-identifier">input</span>,
|
@@ -184,9 +184,9 @@ traces; so that the user can better determine the source of an error.
|
|
184
184
|
<div class="sectiontitle">Instance Public methods</div>
|
185
185
|
|
186
186
|
<div class="method">
|
187
|
-
<div class="title" id="
|
187
|
+
<div class="title" id="M000003">
|
188
188
|
|
189
|
-
<a name="
|
189
|
+
<a name="M000003"></a><b>buffer</b>()
|
190
190
|
|
191
191
|
</div>
|
192
192
|
|
@@ -202,12 +202,12 @@ Returns the result of template evaluation thus far.
|
|
202
202
|
|
203
203
|
<div class="sourcecode">
|
204
204
|
<p class="source-link">
|
205
|
-
Source: <a href="javascript:toggleSource('
|
205
|
+
Source: <a href="javascript:toggleSource('M000003_source')" id="l_M000003_source">show</a>
|
206
206
|
|
207
207
|
| <a href="http://github.com/sunaku/erbook/blob/2b6f0dba66f674e479ef2cdeb7530389bf2af169/lib/erbook/template.rb#L64" target="_blank" class="github_url">on GitHub</a>
|
208
208
|
|
209
209
|
</p>
|
210
|
-
<div id="
|
210
|
+
<div id="M000003_source" class="dyn-source">
|
211
211
|
<pre><span class="ruby-comment cmt"># File lib/erbook/template.rb, line 64</span>
|
212
212
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">buffer</span>
|
213
213
|
<span class="ruby-ivar">@sandbox</span>.<span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-identifier">:@buffer</span>)
|
@@ -218,9 +218,9 @@ Returns the result of template evaluation thus far.
|
|
218
218
|
</div>
|
219
219
|
|
220
220
|
<div class="method">
|
221
|
-
<div class="title" id="
|
221
|
+
<div class="title" id="M000002">
|
222
222
|
|
223
|
-
<a name="
|
223
|
+
<a name="M000002"></a><b>render</b>()
|
224
224
|
|
225
225
|
</div>
|
226
226
|
|
@@ -239,12 +239,12 @@ If no context is given, then the sandbox of this template is used.
|
|
239
239
|
|
240
240
|
<div class="sourcecode">
|
241
241
|
<p class="source-link">
|
242
|
-
Source: <a href="javascript:toggleSource('
|
242
|
+
Source: <a href="javascript:toggleSource('M000002_source')" id="l_M000002_source">show</a>
|
243
243
|
|
244
244
|
| <a href="http://github.com/sunaku/erbook/blob/2b6f0dba66f674e479ef2cdeb7530389bf2af169/lib/erbook/template.rb#L57" target="_blank" class="github_url">on GitHub</a>
|
245
245
|
|
246
246
|
</p>
|
247
|
-
<div id="
|
247
|
+
<div id="M000002_source" class="dyn-source">
|
248
248
|
<pre><span class="ruby-comment cmt"># File lib/erbook/template.rb, line 57</span>
|
249
249
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>
|
250
250
|
<span class="ruby-keyword kw">super</span> <span class="ruby-ivar">@sandbox</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-value str">'binding'</span>)
|
@@ -255,9 +255,9 @@ If no context is given, then the sandbox of this template is used.
|
|
255
255
|
</div>
|
256
256
|
|
257
257
|
<div class="method">
|
258
|
-
<div class="title" id="
|
258
|
+
<div class="title" id="M000005">
|
259
259
|
|
260
|
-
<a name="
|
260
|
+
<a name="M000005"></a><b>render_with</b>(inst_vars = {})
|
261
261
|
|
262
262
|
</div>
|
263
263
|
|
@@ -275,12 +275,12 @@ given instance variables, whose names must be prefixed with
|
|
275
275
|
|
276
276
|
<div class="sourcecode">
|
277
277
|
<p class="source-link">
|
278
|
-
Source: <a href="javascript:toggleSource('
|
278
|
+
Source: <a href="javascript:toggleSource('M000005_source')" id="l_M000005_source">show</a>
|
279
279
|
|
280
280
|
| <a href="http://github.com/sunaku/erbook/blob/2b6f0dba66f674e479ef2cdeb7530389bf2af169/lib/erbook/template.rb#L72" target="_blank" class="github_url">on GitHub</a>
|
281
281
|
|
282
282
|
</p>
|
283
|
-
<div id="
|
283
|
+
<div id="M000005_source" class="dyn-source">
|
284
284
|
<pre><span class="ruby-comment cmt"># File lib/erbook/template.rb, line 72</span>
|
285
285
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_with</span> <span class="ruby-identifier">inst_vars</span> = {}
|
286
286
|
<span class="ruby-identifier">old_sandbox</span> = <span class="ruby-ivar">@sandbox</span>
|
@@ -56,7 +56,7 @@ Environment for template evaluation.
|
|
56
56
|
<dd>
|
57
57
|
<ul>
|
58
58
|
|
59
|
-
<li><a href="#
|
59
|
+
<li><a href="#M000006">__block_content__</a></li>
|
60
60
|
|
61
61
|
</ul>
|
62
62
|
</dd>
|
@@ -78,9 +78,9 @@ Environment for template evaluation.
|
|
78
78
|
<div class="sectiontitle">Instance Public methods</div>
|
79
79
|
|
80
80
|
<div class="method">
|
81
|
-
<div class="title" id="
|
81
|
+
<div class="title" id="M000006">
|
82
82
|
|
83
|
-
<a name="
|
83
|
+
<a name="M000006"></a><b>__block_content__</b>(*block_args)
|
84
84
|
|
85
85
|
</div>
|
86
86
|
|
@@ -98,12 +98,12 @@ returns the result of invoking the given block inside an array.
|
|
98
98
|
|
99
99
|
<div class="sourcecode">
|
100
100
|
<p class="source-link">
|
101
|
-
Source: <a href="javascript:toggleSource('
|
101
|
+
Source: <a href="javascript:toggleSource('M000006_source')" id="l_M000006_source">show</a>
|
102
102
|
|
103
103
|
| <a href="http://github.com/sunaku/erbook/blob/2b6f0dba66f674e479ef2cdeb7530389bf2af169/lib/erbook/template.rb#L100" target="_blank" class="github_url">on GitHub</a>
|
104
104
|
|
105
105
|
</p>
|
106
|
-
<div id="
|
106
|
+
<div id="M000006_source" class="dyn-source">
|
107
107
|
<pre><span class="ruby-comment cmt"># File lib/erbook/template.rb, line 100</span>
|
108
108
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__block_content__</span> <span class="ruby-operator">*</span><span class="ruby-identifier">block_args</span>
|
109
109
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'block must be given'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block_given?</span>
|
@@ -49,7 +49,7 @@
|
|
49
49
|
<dd>
|
50
50
|
<ul>
|
51
51
|
|
52
|
-
<li><a href="#
|
52
|
+
<li><a href="#M000021">comment_html</a></li>
|
53
53
|
|
54
54
|
</ul>
|
55
55
|
</dd>
|
@@ -58,7 +58,7 @@
|
|
58
58
|
<dd>
|
59
59
|
<ul>
|
60
60
|
|
61
|
-
<li><a href="#
|
61
|
+
<li><a href="#M000020">decl</a></li>
|
62
62
|
|
63
63
|
</ul>
|
64
64
|
</dd>
|
@@ -67,7 +67,7 @@
|
|
67
67
|
<dd>
|
68
68
|
<ul>
|
69
69
|
|
70
|
-
<li><a href="#
|
70
|
+
<li><a href="#M000019">full_name</a></li>
|
71
71
|
|
72
72
|
</ul>
|
73
73
|
</dd>
|
@@ -76,7 +76,7 @@
|
|
76
76
|
<dd>
|
77
77
|
<ul>
|
78
78
|
|
79
|
-
<li><a href="#
|
79
|
+
<li><a href="#M000022">top_level</a></li>
|
80
80
|
|
81
81
|
</ul>
|
82
82
|
</dd>
|
@@ -98,9 +98,9 @@
|
|
98
98
|
<div class="sectiontitle">Instance Public methods</div>
|
99
99
|
|
100
100
|
<div class="method">
|
101
|
-
<div class="title" id="
|
101
|
+
<div class="title" id="M000021">
|
102
102
|
|
103
|
-
<a name="
|
103
|
+
<a name="M000021"></a><b>comment_html</b>()
|
104
104
|
|
105
105
|
</div>
|
106
106
|
|
@@ -116,12 +116,12 @@ Returns a HTML version of this method’s comment.
|
|
116
116
|
|
117
117
|
<div class="sourcecode">
|
118
118
|
<p class="source-link">
|
119
|
-
Source: <a href="javascript:toggleSource('
|
119
|
+
Source: <a href="javascript:toggleSource('M000021_source')" id="l_M000021_source">show</a>
|
120
120
|
|
121
121
|
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L116" target="_blank" class="github_url">on GitHub</a>
|
122
122
|
|
123
123
|
</p>
|
124
|
-
<div id="
|
124
|
+
<div id="M000021_source" class="dyn-source">
|
125
125
|
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 116</span>
|
126
126
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">comment_html</span>
|
127
127
|
<span class="ruby-constant">DummyMarkup</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">markup</span> <span class="ruby-identifier">comment</span>
|
@@ -132,9 +132,9 @@ Returns a HTML version of this method’s comment.
|
|
132
132
|
</div>
|
133
133
|
|
134
134
|
<div class="method">
|
135
|
-
<div class="title" id="
|
135
|
+
<div class="title" id="M000020">
|
136
136
|
|
137
|
-
<a name="
|
137
|
+
<a name="M000020"></a><b>decl</b>()
|
138
138
|
|
139
139
|
</div>
|
140
140
|
|
@@ -150,12 +150,12 @@ Returns a complete method declaration with block parameters and all.
|
|
150
150
|
|
151
151
|
<div class="sourcecode">
|
152
152
|
<p class="source-link">
|
153
|
-
Source: <a href="javascript:toggleSource('
|
153
|
+
Source: <a href="javascript:toggleSource('M000020_source')" id="l_M000020_source">show</a>
|
154
154
|
|
155
155
|
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L102" target="_blank" class="github_url">on GitHub</a>
|
156
156
|
|
157
157
|
</p>
|
158
|
-
<div id="
|
158
|
+
<div id="M000020_source" class="dyn-source">
|
159
159
|
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 102</span>
|
160
160
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">decl</span>
|
161
161
|
<span class="ruby-identifier">a</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">dup</span>
|
@@ -173,9 +173,9 @@ Returns a complete method declaration with block parameters and all.
|
|
173
173
|
</div>
|
174
174
|
|
175
175
|
<div class="method">
|
176
|
-
<div class="title" id="
|
176
|
+
<div class="title" id="M000019">
|
177
177
|
|
178
|
-
<a name="
|
178
|
+
<a name="M000019"></a><b>full_name</b>()
|
179
179
|
|
180
180
|
</div>
|
181
181
|
|
@@ -191,12 +191,12 @@ Returns the fully qualified name of this method.
|
|
191
191
|
|
192
192
|
<div class="sourcecode">
|
193
193
|
<p class="source-link">
|
194
|
-
Source: <a href="javascript:toggleSource('
|
194
|
+
Source: <a href="javascript:toggleSource('M000019_source')" id="l_M000019_source">show</a>
|
195
195
|
|
196
196
|
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L95" target="_blank" class="github_url">on GitHub</a>
|
197
197
|
|
198
198
|
</p>
|
199
|
-
<div id="
|
199
|
+
<div id="M000019_source" class="dyn-source">
|
200
200
|
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 95</span>
|
201
201
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">full_name</span>
|
202
202
|
[<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">full_name</span>, <span class="ruby-identifier">name</span>].<span class="ruby-identifier">join</span>(<span class="ruby-identifier">singleton</span> <span class="ruby-value">? </span><span class="ruby-value str">'::'</span> <span class="ruby-operator">:</span> <span class="ruby-value str">'#'</span>)
|
@@ -207,9 +207,9 @@ Returns the fully qualified name of this method.
|
|
207
207
|
</div>
|
208
208
|
|
209
209
|
<div class="method">
|
210
|
-
<div class="title" id="
|
210
|
+
<div class="title" id="M000022">
|
211
211
|
|
212
|
-
<a name="
|
212
|
+
<a name="M000022"></a><b>top_level</b>()
|
213
213
|
|
214
214
|
</div>
|
215
215
|
|
@@ -226,12 +226,12 @@ contains this method.
|
|
226
226
|
|
227
227
|
<div class="sourcecode">
|
228
228
|
<p class="source-link">
|
229
|
-
Source: <a href="javascript:toggleSource('
|
229
|
+
Source: <a href="javascript:toggleSource('M000022_source')" id="l_M000022_source">show</a>
|
230
230
|
|
231
231
|
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L123" target="_blank" class="github_url">on GitHub</a>
|
232
232
|
|
233
233
|
</p>
|
234
|
-
<div id="
|
234
|
+
<div id="M000022_source" class="dyn-source">
|
235
235
|
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 123</span>
|
236
236
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">top_level</span>
|
237
237
|
<span class="ruby-identifier">n</span> = <span class="ruby-identifier">parent</span>
|
@@ -49,11 +49,11 @@
|
|
49
49
|
<dd>
|
50
50
|
<ul>
|
51
51
|
|
52
|
-
<li><a href="#
|
52
|
+
<li><a href="#M000013">all_classes</a>,</li>
|
53
53
|
|
54
|
-
<li><a href="#
|
54
|
+
<li><a href="#M000015">all_methods</a>,</li>
|
55
55
|
|
56
|
-
<li><a href="#
|
56
|
+
<li><a href="#M000014">all_modules</a></li>
|
57
57
|
|
58
58
|
</ul>
|
59
59
|
</dd>
|
@@ -62,9 +62,9 @@
|
|
62
62
|
<dd>
|
63
63
|
<ul>
|
64
64
|
|
65
|
-
<li><a href="#
|
65
|
+
<li><a href="#M000017">parse</a>,</li>
|
66
66
|
|
67
|
-
<li><a href="#
|
67
|
+
<li><a href="#M000018">parse_file</a></li>
|
68
68
|
|
69
69
|
</ul>
|
70
70
|
</dd>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
<dd>
|
74
74
|
<ul>
|
75
75
|
|
76
|
-
<li><a href="#
|
76
|
+
<li><a href="#M000016">refresh_all_classes_and_modules</a></li>
|
77
77
|
|
78
78
|
</ul>
|
79
79
|
</dd>
|
@@ -95,9 +95,9 @@
|
|
95
95
|
<div class="sectiontitle">Class Public methods</div>
|
96
96
|
|
97
97
|
<div class="method">
|
98
|
-
<div class="title" id="
|
98
|
+
<div class="title" id="M000013">
|
99
99
|
|
100
|
-
<a name="
|
100
|
+
<a name="M000013"></a><b>all_classes</b>()
|
101
101
|
|
102
102
|
</div>
|
103
103
|
|
@@ -113,12 +113,12 @@ Returns an array of all classes recorded thus far.
|
|
113
113
|
|
114
114
|
<div class="sourcecode">
|
115
115
|
<p class="source-link">
|
116
|
-
Source: <a href="javascript:toggleSource('
|
116
|
+
Source: <a href="javascript:toggleSource('M000013_source')" id="l_M000013_source">show</a>
|
117
117
|
|
118
118
|
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L16" target="_blank" class="github_url">on GitHub</a>
|
119
119
|
|
120
120
|
</p>
|
121
|
-
<div id="
|
121
|
+
<div id="M000013_source" class="dyn-source">
|
122
122
|
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 16</span>
|
123
123
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">all_classes</span>
|
124
124
|
<span class="ruby-ivar">@all_classes</span>.<span class="ruby-identifier">values</span>
|
@@ -129,9 +129,9 @@ Returns an array of all classes recorded thus far.
|
|
129
129
|
</div>
|
130
130
|
|
131
131
|
<div class="method">
|
132
|
-
<div class="title" id="
|
132
|
+
<div class="title" id="M000015">
|
133
133
|
|
134
|
-
<a name="
|
134
|
+
<a name="M000015"></a><b>all_methods</b>()
|
135
135
|
|
136
136
|
</div>
|
137
137
|
|
@@ -148,12 +148,12 @@ representing all methods recorded thus far.
|
|
148
148
|
|
149
149
|
<div class="sourcecode">
|
150
150
|
<p class="source-link">
|
151
|
-
Source: <a href="javascript:toggleSource('
|
151
|
+
Source: <a href="javascript:toggleSource('M000015_source')" id="l_M000015_source">show</a>
|
152
152
|
|
153
153
|
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L31" target="_blank" class="github_url">on GitHub</a>
|
154
154
|
|
155
155
|
</p>
|
156
|
-
<div id="
|
156
|
+
<div id="M000015_source" class="dyn-source">
|
157
157
|
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 31</span>
|
158
158
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">all_methods</span>
|
159
159
|
<span class="ruby-identifier">all_classes_and_modules</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">method_list</span> }.<span class="ruby-identifier">flatten</span>
|
@@ -164,9 +164,9 @@ representing all methods recorded thus far.
|
|
164
164
|
</div>
|
165
165
|
|
166
166
|
<div class="method">
|
167
|
-
<div class="title" id="
|
167
|
+
<div class="title" id="M000014">
|
168
168
|
|
169
|
-
<a name="
|
169
|
+
<a name="M000014"></a><b>all_modules</b>()
|
170
170
|
|
171
171
|
</div>
|
172
172
|
|
@@ -182,12 +182,12 @@ Returns an array of all modules recorded thus far.
|
|
182
182
|
|
183
183
|
<div class="sourcecode">
|
184
184
|
<p class="source-link">
|
185
|
-
Source: <a href="javascript:toggleSource('
|
185
|
+
Source: <a href="javascript:toggleSource('M000014_source')" id="l_M000014_source">show</a>
|
186
186
|
|
187
187
|
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L23" target="_blank" class="github_url">on GitHub</a>
|
188
188
|
|
189
189
|
</p>
|
190
|
-
<div id="
|
190
|
+
<div id="M000014_source" class="dyn-source">
|
191
191
|
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 23</span>
|
192
192
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">all_modules</span>
|
193
193
|
<span class="ruby-ivar">@all_modules</span>.<span class="ruby-identifier">values</span>
|
@@ -198,9 +198,9 @@ Returns an array of all modules recorded thus far.
|
|
198
198
|
</div>
|
199
199
|
|
200
200
|
<div class="method">
|
201
|
-
<div class="title" id="
|
201
|
+
<div class="title" id="M000017">
|
202
202
|
|
203
|
-
<a name="
|
203
|
+
<a name="M000017"></a><b>parse</b>(code_string, file_name = __FILE__)
|
204
204
|
|
205
205
|
</div>
|
206
206
|
|
@@ -226,12 +226,12 @@ string! :-(
|
|
226
226
|
|
227
227
|
<div class="sourcecode">
|
228
228
|
<p class="source-link">
|
229
|
-
Source: <a href="javascript:toggleSource('
|
229
|
+
Source: <a href="javascript:toggleSource('M000017_source')" id="l_M000017_source">show</a>
|
230
230
|
|
231
231
|
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L65" target="_blank" class="github_url">on GitHub</a>
|
232
232
|
|
233
233
|
</p>
|
234
|
-
<div id="
|
234
|
+
<div id="M000017_source" class="dyn-source">
|
235
235
|
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 65</span>
|
236
236
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">code_string</span>, <span class="ruby-identifier">file_name</span> = <span class="ruby-keyword kw">__FILE__</span>
|
237
237
|
<span class="ruby-identifier">tl</span> = <span class="ruby-constant">TopLevel</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">file_name</span>)
|
@@ -250,9 +250,9 @@ string! :-(
|
|
250
250
|
</div>
|
251
251
|
|
252
252
|
<div class="method">
|
253
|
-
<div class="title" id="
|
253
|
+
<div class="title" id="M000018">
|
254
254
|
|
255
|
-
<a name="
|
255
|
+
<a name="M000018"></a><b>parse_file</b>(file_name)
|
256
256
|
|
257
257
|
</div>
|
258
258
|
|
@@ -277,12 +277,12 @@ extension. Otherwise, <a href="../RDoc.html">RDoc</a> will ignore the file!
|
|
277
277
|
|
278
278
|
<div class="sourcecode">
|
279
279
|
<p class="source-link">
|
280
|
-
Source: <a href="javascript:toggleSource('
|
280
|
+
Source: <a href="javascript:toggleSource('M000018_source')" id="l_M000018_source">show</a>
|
281
281
|
|
282
282
|
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L86" target="_blank" class="github_url">on GitHub</a>
|
283
283
|
|
284
284
|
</p>
|
285
|
-
<div id="
|
285
|
+
<div id="M000018_source" class="dyn-source">
|
286
286
|
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 86</span>
|
287
287
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parse_file</span> <span class="ruby-identifier">file_name</span>
|
288
288
|
<span class="ruby-identifier">parse</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">file_name</span>), <span class="ruby-identifier">file_name</span>
|
@@ -293,9 +293,9 @@ extension. Otherwise, <a href="../RDoc.html">RDoc</a> will ignore the file!
|
|
293
293
|
</div>
|
294
294
|
|
295
295
|
<div class="method">
|
296
|
-
<div class="title" id="
|
296
|
+
<div class="title" id="M000016">
|
297
297
|
|
298
|
-
<a name="
|
298
|
+
<a name="M000016"></a><b>refresh_all_classes_and_modules</b>()
|
299
299
|
|
300
300
|
</div>
|
301
301
|
|
@@ -312,12 +312,12 @@ Update the return value of the all_classes_and_modules() method to
|
|
312
312
|
|
313
313
|
<div class="sourcecode">
|
314
314
|
<p class="source-link">
|
315
|
-
Source: <a href="javascript:toggleSource('
|
315
|
+
Source: <a href="javascript:toggleSource('M000016_source')" id="l_M000016_source">show</a>
|
316
316
|
|
317
317
|
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L39" target="_blank" class="github_url">on GitHub</a>
|
318
318
|
|
319
319
|
</p>
|
320
|
-
<div id="
|
320
|
+
<div id="M000016_source" class="dyn-source">
|
321
321
|
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 39</span>
|
322
322
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">refresh_all_classes_and_modules</span>
|
323
323
|
<span class="ruby-identifier">visit</span> = <span class="ruby-identifier">lambda</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">node</span><span class="ruby-operator">|</span>
|