erbook 7.1.1 → 7.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/doc/HelloWorld.input CHANGED
@@ -1,37 +1,30 @@
1
- <% $style = "border-left: thick dotted #D3D3D3; padding-left: 1em;" %>
2
- <% hello "Pretentious", 1, 2, 3 do %>
1
+ % $style = "border-left: thick dotted #D3D3D3; padding-left: 1em;"
2
+
3
+ %|hello "Pretentious", 1, 2, 3
3
4
  <big>I'm</big> the very first node, oh _yes_ I am! *sneer*
4
5
 
5
- <% hello "Bashful", 4, 5, 6 do %>
6
+ %|hello "Bashful", 4, 5, 6
6
7
  Hi, I... *hide*
7
8
 
8
- <% hello "Hopeful", rand do %>
9
+ %|hello "Hopeful", rand
9
10
  *sigh*
10
11
 
11
- <% hello "Confused", (rand * rand) do %>
12
+ %|hello "Confused", (rand * rand)
12
13
  Huh?
13
- <% end %>
14
- <% end %>
15
14
 
16
- <% hello "Raving", __FILE__ do %>
15
+ %|hello "Raving", __FILE__
17
16
  Oh it's *on* now! You're going *down*!
18
- <% end %>
19
- <% end %>
20
17
 
21
- <% hello "Sleepy", Time.now do %>
18
+ %|hello "Sleepy", Time.now
22
19
  *yawn* Just five more minutes...
23
20
 
24
- <% hello "Peaceful", Dir.pwd do %>
21
+ %|hello "Peaceful", Dir.pwd
25
22
  So _be_ happy my friend, *happy*!
26
23
 
27
- <%= hello "Lonely (as you can see, I have no block)" %>
28
- <% end %>
29
- <% end %>
30
- <% end %>
24
+ %= hello "Lonely (as you can see, I have no block)"
31
25
 
32
- <% hello "Snappy" do %>
26
+ %|hello "Snappy"
33
27
  Zip! Zap! Wake up, you sap!
34
28
  _Whoo I'm wild!_ ;-)
35
- <% end %>
36
29
 
37
- <%= hello "Independent (no block, no parents, I am _free_!)" %>
30
+ %= hello "Independent (no block, no parents, I am _free_!)"
data/doc/HelloWorld.spec CHANGED
@@ -37,6 +37,7 @@ nodes:
37
37
  number: true
38
38
  silent: false
39
39
  output: |
40
+
40
41
  <h3><%= @node.type %> #<%= @node.index %>: <%= @node.name.inspect %></h3>
41
42
 
42
43
  My name is <%= @node.name.inspect %> and these are my properties:
Binary file
@@ -49,7 +49,7 @@
49
49
  <dd>
50
50
  <ul>
51
51
 
52
- <li><a href="#M000024">to_s</a></li>
52
+ <li><a href="#M000062">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="M000024">
74
+ <div class="title" id="M000062">
75
75
 
76
- <a name="M000024"></a><b>to_s</b>()
76
+ <a name="M000062"></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('M000024_source')" id="l_M000024_source">show</a>
92
+ Source: <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">show</a>
93
93
 
94
- | <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/document.rb#L241" target="_blank" class="github_url">on GitHub</a>
94
+ | <a href="http://github.com/sunaku/erbook/blob/5089c2c413ceae00ec4d0eae22d9d71c50281a2f/lib/erbook/document.rb#L241" target="_blank" class="github_url">on GitHub</a>
95
95
 
96
96
  </p>
97
- <div id="M000024_source" class="dyn-source">
97
+ <div id="M000062_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>
@@ -49,7 +49,7 @@
49
49
  <dd>
50
50
  <ul>
51
51
 
52
- <li><a href="#M000010">new</a></li>
52
+ <li><a href="#M000046">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="#M000023">to_s</a></li>
61
+ <li><a href="#M000057">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="M000010">
135
+ <div class="title" id="M000046">
136
136
 
137
- <a name="M000010"></a><b>new</b>(format_name, input_text, input_file, options = {})
137
+ <a name="M000046"></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('M000010_source')" id="l_M000010_source">show</a>
169
+ Source: <a href="javascript:toggleSource('M000046_source')" id="l_M000046_source">show</a>
170
170
 
171
- | <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/document.rb#L42" target="_blank" class="github_url">on GitHub</a>
171
+ | <a href="http://github.com/sunaku/erbook/blob/5089c2c413ceae00ec4d0eae22d9d71c50281a2f/lib/erbook/document.rb#L42" target="_blank" class="github_url">on GitHub</a>
172
172
 
173
173
  </p>
174
- <div id="M000010_source" class="dyn-source">
174
+ <div id="M000046_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>
@@ -209,29 +209,27 @@ specification file.
209
209
  <span class="ruby-identifier">:@stack</span> =<span class="ruby-operator">&gt;</span> [], <span class="ruby-comment cmt"># stack for all nodes</span>
210
210
  }.<span class="ruby-identifier">each_pair</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">sandbox</span>.<span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span>) }
211
211
 
212
+ <span class="ruby-comment cmt">#:stopdoc:</span>
213
+
212
214
  <span class="ruby-comment cmt">##</span>
213
215
  <span class="ruby-comment cmt"># Handles the method call from a node</span>
214
216
  <span class="ruby-comment cmt"># placeholder in the input document.</span>
215
217
  <span class="ruby-comment cmt">#</span>
216
218
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sandbox</span>.<span class="ruby-identifier">__node_impl__</span> <span class="ruby-identifier">node_type</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">node_args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">node_content</span>
217
219
  <span class="ruby-identifier">node</span> = <span class="ruby-constant">Node</span>.<span class="ruby-identifier">new</span>(
218
- <span class="ruby-identifier">:type</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">node_type</span>,
219
- <span class="ruby-identifier">:defn</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@format</span>[<span class="ruby-value str">'nodes'</span>][<span class="ruby-identifier">node_type</span>],
220
- <span class="ruby-identifier">:args</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">node_args</span>,
221
- <span class="ruby-identifier">:children</span> =<span class="ruby-operator">&gt;</span> [],
222
-
223
- <span class="ruby-comment cmt"># omit erbook internals from the stack trace</span>
224
- <span class="ruby-identifier">:trace</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">caller</span>.<span class="ruby-identifier">reject</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
225
- [<span class="ruby-identifier">$0</span>, <span class="ruby-constant">ERBook</span><span class="ruby-operator">::</span><span class="ruby-constant">INSTALL</span>].<span class="ruby-identifier">any?</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">t</span>.<span class="ruby-identifier">index</span>(<span class="ruby-identifier">f</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span> }
226
- }
220
+ <span class="ruby-identifier">:type</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">node_type</span>,
221
+ <span class="ruby-identifier">:defn</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@format</span>[<span class="ruby-value str">'nodes'</span>][<span class="ruby-identifier">node_type</span>],
222
+ <span class="ruby-identifier">:args</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">node_args</span>,
223
+ <span class="ruby-identifier">:trace</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">caller</span>,
224
+ <span class="ruby-identifier">:children</span> =<span class="ruby-operator">&gt;</span> []
227
225
  )
228
226
  <span class="ruby-ivar">@nodes</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">node</span>
229
227
  <span class="ruby-ivar">@nodes_by_type</span>[<span class="ruby-identifier">node</span>.<span class="ruby-identifier">type</span>] <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">node</span>
230
228
 
231
229
  <span class="ruby-comment cmt"># calculate occurrence number for this node</span>
232
230
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">defn</span>[<span class="ruby-value str">'number'</span>]
233
- <span class="ruby-ivar">@count</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">h</span>,<span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>[<span class="ruby-identifier">k</span>] = []}
234
- <span class="ruby-identifier">node</span>.<span class="ruby-identifier">number</span> = (<span class="ruby-ivar">@count</span>[<span class="ruby-identifier">node</span>.<span class="ruby-identifier">type</span>] <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">node</span>).<span class="ruby-identifier">length</span>
231
+ <span class="ruby-ivar">@count_by_type</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">h</span>,<span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-value">0</span> }
232
+ <span class="ruby-identifier">node</span>.<span class="ruby-identifier">number</span> = (<span class="ruby-ivar">@count_by_type</span>[<span class="ruby-identifier">node</span>.<span class="ruby-identifier">type</span>] <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>)
235
233
  <span class="ruby-keyword kw">end</span>
236
234
 
237
235
  <span class="ruby-comment cmt"># assign node family</span>
@@ -272,6 +270,8 @@ specification file.
272
270
  <span class="ruby-keyword kw">nil</span>
273
271
  <span class="ruby-keyword kw">end</span>
274
272
 
273
+ <span class="ruby-comment cmt">#:startdoc:</span>
274
+
275
275
  <span class="ruby-ivar">@node_defs</span>.<span class="ruby-identifier">each_key</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">type</span><span class="ruby-operator">|</span>
276
276
  <span class="ruby-comment cmt"># XXX: using a string because define_method()</span>
277
277
  <span class="ruby-comment cmt"># does not accept a block until Ruby 1.9</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="M000023">
365
+ <div class="title" id="M000057">
366
366
 
367
- <a name="M000023"></a><b>to_s</b>()
367
+ <a name="M000057"></a><b>to_s</b>()
368
368
 
369
369
  </div>
370
370
 
@@ -380,14 +380,14 @@ 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('M000023_source')" id="l_M000023_source">show</a>
383
+ Source: <a href="javascript:toggleSource('M000057_source')" id="l_M000057_source">show</a>
384
384
 
385
- | <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/document.rb#L227" target="_blank" class="github_url">on GitHub</a>
385
+ | <a href="http://github.com/sunaku/erbook/blob/5089c2c413ceae00ec4d0eae22d9d71c50281a2f/lib/erbook/document.rb#L227" target="_blank" class="github_url">on GitHub</a>
386
386
 
387
387
  </p>
388
- <div id="M000023_source" class="dyn-source">
388
+ <div id="M000057_source" class="dyn-source">
389
389
  <pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 227</span>
390
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span><span class="ruby-identifier">to_s</span>
390
+ <span class="ruby-keyword kw">def</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">&quot;#{@format_file}:output&quot;</span>, <span class="ruby-ivar">@format</span>[<span class="ruby-value str">'output'</span>].<span class="ruby-identifier">to_s</span>).
392
392
  <span class="ruby-identifier">render_with</span>(<span class="ruby-ivar">@template_vars</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">:@content</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@processed_document</span>.<span class="ruby-identifier">join</span>))
393
393
  <span class="ruby-keyword kw">end</span></pre>
@@ -56,7 +56,7 @@ Environment for template evaluation.
56
56
  <dd>
57
57
  <ul>
58
58
 
59
- <li><a href="#M000006">__block_content__</a></li>
59
+ <li><a href="#M000043">__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="M000006">
81
+ <div class="title" id="M000043">
82
82
 
83
- <a name="M000006"></a><b>__block_content__</b>(*block_args)
83
+ <a name="M000043"></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('M000006_source')" id="l_M000006_source">show</a>
101
+ Source: <a href="javascript:toggleSource('M000043_source')" id="l_M000043_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="M000006_source" class="dyn-source">
106
+ <div id="M000043_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>
@@ -58,7 +58,7 @@ sandboxing for isolated template rendering.
58
58
  <dd>
59
59
  <ul>
60
60
 
61
- <li><a href="#M000003">buffer</a></li>
61
+ <li><a href="#M000041">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="#M000000">new</a></li>
70
+ <li><a href="#M000039">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="#M000002">render</a>,</li>
79
+ <li><a href="#M000040">render</a>,</li>
80
80
 
81
- <li><a href="#M000005">render_with</a></li>
81
+ <li><a href="#M000042">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="M000000">
123
+ <div class="title" id="M000039">
124
124
 
125
- <a name="M000000"></a><b>new</b>(source, input, unindent = true, safe_level = nil)
125
+ <a name="M000039"></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('M000000_source')" id="l_M000000_source">show</a>
154
+ Source: <a href="javascript:toggleSource('M000039_source')" id="l_M000039_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="M000000_source" class="dyn-source">
159
+ <div id="M000039_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="M000003">
187
+ <div class="title" id="M000041">
188
188
 
189
- <a name="M000003"></a><b>buffer</b>()
189
+ <a name="M000041"></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('M000003_source')" id="l_M000003_source">show</a>
205
+ Source: <a href="javascript:toggleSource('M000041_source')" id="l_M000041_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="M000003_source" class="dyn-source">
210
+ <div id="M000041_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="M000002">
221
+ <div class="title" id="M000040">
222
222
 
223
- <a name="M000002"></a><b>render</b>()
223
+ <a name="M000040"></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('M000002_source')" id="l_M000002_source">show</a>
242
+ Source: <a href="javascript:toggleSource('M000040_source')" id="l_M000040_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="M000002_source" class="dyn-source">
247
+ <div id="M000040_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="M000005">
258
+ <div class="title" id="M000042">
259
259
 
260
- <a name="M000005"></a><b>render_with</b>(inst_vars = {})
260
+ <a name="M000042"></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('M000005_source')" id="l_M000005_source">show</a>
278
+ Source: <a href="javascript:toggleSource('M000042_source')" id="l_M000042_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="M000005_source" class="dyn-source">
283
+ <div id="M000042_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>
@@ -49,7 +49,7 @@
49
49
  <dd>
50
50
  <ul>
51
51
 
52
- <li><a href="#M000021">comment_html</a></li>
52
+ <li><a href="#M000060">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="#M000020">decl</a></li>
61
+ <li><a href="#M000059">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="#M000019">full_name</a></li>
70
+ <li><a href="#M000058">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="#M000022">top_level</a></li>
79
+ <li><a href="#M000061">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="M000021">
101
+ <div class="title" id="M000060">
102
102
 
103
- <a name="M000021"></a><b>comment_html</b>()
103
+ <a name="M000060"></a><b>comment_html</b>()
104
104
 
105
105
  </div>
106
106
 
@@ -116,12 +116,12 @@ Returns a HTML version of this method&#8217;s comment.
116
116
 
117
117
  <div class="sourcecode">
118
118
  <p class="source-link">
119
- Source: <a href="javascript:toggleSource('M000021_source')" id="l_M000021_source">show</a>
119
+ Source: <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show</a>
120
120
 
121
- | <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L116" target="_blank" class="github_url">on GitHub</a>
121
+ | <a href="http://github.com/sunaku/erbook/blob/ef112a9767fa7e4c9b5f535ec992d1a1fd52a4ea/lib/erbook/rdoc.rb#L116" target="_blank" class="github_url">on GitHub</a>
122
122
 
123
123
  </p>
124
- <div id="M000021_source" class="dyn-source">
124
+ <div id="M000060_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&#8217;s comment.
132
132
  </div>
133
133
 
134
134
  <div class="method">
135
- <div class="title" id="M000020">
135
+ <div class="title" id="M000059">
136
136
 
137
- <a name="M000020"></a><b>decl</b>()
137
+ <a name="M000059"></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('M000020_source')" id="l_M000020_source">show</a>
153
+ Source: <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show</a>
154
154
 
155
- | <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L102" target="_blank" class="github_url">on GitHub</a>
155
+ | <a href="http://github.com/sunaku/erbook/blob/ef112a9767fa7e4c9b5f535ec992d1a1fd52a4ea/lib/erbook/rdoc.rb#L102" target="_blank" class="github_url">on GitHub</a>
156
156
 
157
157
  </p>
158
- <div id="M000020_source" class="dyn-source">
158
+ <div id="M000059_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="M000019">
176
+ <div class="title" id="M000058">
177
177
 
178
- <a name="M000019"></a><b>full_name</b>()
178
+ <a name="M000058"></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('M000019_source')" id="l_M000019_source">show</a>
194
+ Source: <a href="javascript:toggleSource('M000058_source')" id="l_M000058_source">show</a>
195
195
 
196
- | <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L95" target="_blank" class="github_url">on GitHub</a>
196
+ | <a href="http://github.com/sunaku/erbook/blob/ef112a9767fa7e4c9b5f535ec992d1a1fd52a4ea/lib/erbook/rdoc.rb#L95" target="_blank" class="github_url">on GitHub</a>
197
197
 
198
198
  </p>
199
- <div id="M000019_source" class="dyn-source">
199
+ <div id="M000058_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="M000022">
210
+ <div class="title" id="M000061">
211
211
 
212
- <a name="M000022"></a><b>top_level</b>()
212
+ <a name="M000061"></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('M000022_source')" id="l_M000022_source">show</a>
229
+ Source: <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show</a>
230
230
 
231
- | <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L123" target="_blank" class="github_url">on GitHub</a>
231
+ | <a href="http://github.com/sunaku/erbook/blob/ef112a9767fa7e4c9b5f535ec992d1a1fd52a4ea/lib/erbook/rdoc.rb#L123" target="_blank" class="github_url">on GitHub</a>
232
232
 
233
233
  </p>
234
- <div id="M000022_source" class="dyn-source">
234
+ <div id="M000061_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>