erbook 8.0.0 → 9.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/bin/erbook CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/ruby -w
1
+ #!/usr/bin/env ruby
2
2
  #
3
3
  # * The standard input stream will be read if an input file is not specified.
4
4
  #
@@ -49,7 +49,7 @@
49
49
  <dd>
50
50
  <ul>
51
51
 
52
- <li><a href="#M000052">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="#M000064">to_s</a></li>
61
+ <li><a href="#M000054">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="M000052">
135
+ <div class="title" id="M000046">
136
136
 
137
- <a name="M000052"></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('M000052_source')" id="l_M000052_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/aeaff38e68b16f53360682a1f9770747dd84ecb6/lib/erbook/document.rb#L42" target="_blank" class="github_url">on GitHub</a>
171
+ | <a href="http://github.com/sunaku/erbook/blob/eda493a151e7b55d041d0a094c586e2c22aa63cc/lib/erbook/document.rb#L42" target="_blank" class="github_url">on GitHub</a>
172
172
 
173
173
  </p>
174
- <div id="M000052_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>
@@ -215,7 +215,7 @@ specification file.
215
215
  <span class="ruby-comment cmt"># Handles the method call from a node</span>
216
216
  <span class="ruby-comment cmt"># placeholder in the input document.</span>
217
217
  <span class="ruby-comment cmt">#</span>
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>
218
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sandbox</span>.<span class="ruby-identifier">__node_handler__</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>
219
219
  <span class="ruby-identifier">node</span> = <span class="ruby-constant">Node</span>.<span class="ruby-identifier">new</span>(
220
220
  <span class="ruby-identifier">:type</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">node_type</span>,
221
221
  <span class="ruby-identifier">:definition</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>],
@@ -287,7 +287,7 @@ specification file.
287
287
  <span class="ruby-comment cmt"># does not accept a block until Ruby 1.9</span>
288
288
  <span class="ruby-identifier">file</span>, <span class="ruby-identifier">line</span> = <span class="ruby-keyword kw">__FILE__</span>, <span class="ruby-keyword kw">__LINE__</span>; <span class="ruby-identifier">eval</span> <span class="ruby-node">%{
289
289
  def sandbox.#{type} *node_args, &amp;node_content
290
- __node_impl__ #{type.inspect}, *node_args, &amp;node_content
290
+ __node_handler__ #{type.inspect}, *node_args, &amp;node_content
291
291
  end
292
292
  }</span>, <span class="ruby-identifier">binding</span>, <span class="ruby-identifier">file</span>, <span class="ruby-identifier">line</span>
293
293
  <span class="ruby-keyword kw">end</span>
@@ -297,7 +297,7 @@ specification file.
297
297
  <span class="ruby-ivar">@processed_document</span> = <span class="ruby-identifier">template</span>.<span class="ruby-identifier">buffer</span>
298
298
 
299
299
  <span class="ruby-comment cmt"># chain block-level nodes together for local navigation</span>
300
- <span class="ruby-identifier">block_nodes</span> = <span class="ruby-ivar">@nodes</span>.<span class="ruby-identifier">select</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">n</span><span class="ruby-operator">|</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">anchor?</span> }
300
+ <span class="ruby-identifier">block_nodes</span> = <span class="ruby-ivar">@nodes</span>.<span class="ruby-identifier">select</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">n</span><span class="ruby-operator">|</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">chain?</span> }
301
301
 
302
302
  <span class="ruby-identifier">require</span> <span class="ruby-value str">'enumerator'</span>
303
303
  <span class="ruby-identifier">block_nodes</span>.<span class="ruby-identifier">each_cons</span>(<span class="ruby-value">2</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">a</span>, <span class="ruby-identifier">b</span><span class="ruby-operator">|</span>
@@ -334,9 +334,16 @@ specification file.
334
334
  <span class="ruby-identifier">actual_output</span>[<span class="ruby-identifier">c</span>.<span class="ruby-identifier">output</span>] = <span class="ruby-identifier">actual_output_by_node</span>[<span class="ruby-identifier">c</span>]
335
335
 
336
336
  <span class="ruby-keyword kw">else</span>
337
- <span class="ruby-comment cmt"># pull block-level child out of paragraph tag added by Maruku</span>
338
- <span class="ruby-identifier">actual_output</span>.<span class="ruby-identifier">sub!</span> <span class="ruby-node">%r/(&lt;p&gt;\s*)?#{Regexp.quote c.output}/</span> <span class="ruby-keyword kw">do</span>
339
- <span class="ruby-identifier">actual_output_by_node</span>[<span class="ruby-identifier">c</span>] <span class="ruby-operator">+</span> <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">to_s</span>
337
+ <span class="ruby-comment cmt"># remove &lt;p&gt; around block-level child (added by Markdown)</span>
338
+ <span class="ruby-identifier">actual_output</span>.<span class="ruby-identifier">sub!</span> <span class="ruby-node">%r{(&lt;p&gt;\s*)?#{
339
+ Regexp.quote c.output
340
+ }(\s*&lt;/p&gt;)?}</span> <span class="ruby-keyword kw">do</span>
341
+ <span class="ruby-identifier">actual_output_by_node</span>[<span class="ruby-identifier">c</span>] <span class="ruby-operator">+</span>
342
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$1</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">$2</span>
343
+ <span class="ruby-value str">''</span>
344
+ <span class="ruby-keyword kw">else</span>
345
+ [<span class="ruby-identifier">$1</span>, <span class="ruby-identifier">$2</span>].<span class="ruby-identifier">join</span>
346
+ <span class="ruby-keyword kw">end</span>
340
347
  <span class="ruby-keyword kw">end</span>
341
348
  <span class="ruby-keyword kw">end</span>
342
349
  <span class="ruby-keyword kw">end</span>
@@ -374,9 +381,9 @@ specification file.
374
381
  <div class="sectiontitle">Instance Public methods</div>
375
382
 
376
383
  <div class="method">
377
- <div class="title" id="M000064">
384
+ <div class="title" id="M000054">
378
385
 
379
- <a name="M000064"></a><b>to_s</b>()
386
+ <a name="M000054"></a><b>to_s</b>()
380
387
 
381
388
  </div>
382
389
 
@@ -392,13 +399,13 @@ Returns the output of this document.
392
399
 
393
400
  <div class="sourcecode">
394
401
  <p class="source-link">
395
- Source: <a href="javascript:toggleSource('M000064_source')" id="l_M000064_source">show</a>
402
+ Source: <a href="javascript:toggleSource('M000054_source')" id="l_M000054_source">show</a>
396
403
 
397
- | <a href="http://github.com/sunaku/erbook/blob/aeaff38e68b16f53360682a1f9770747dd84ecb6/lib/erbook/document.rb#L239" target="_blank" class="github_url">on GitHub</a>
404
+ | <a href="http://github.com/sunaku/erbook/blob/eda493a151e7b55d041d0a094c586e2c22aa63cc/lib/erbook/document.rb#L246" target="_blank" class="github_url">on GitHub</a>
398
405
 
399
406
  </p>
400
- <div id="M000064_source" class="dyn-source">
401
- <pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 239</span>
407
+ <div id="M000054_source" class="dyn-source">
408
+ <pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 246</span>
402
409
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
403
410
  <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>).
404
411
  <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>))
@@ -45,11 +45,11 @@
45
45
  <div class="sectiontitle">Methods</div>
46
46
  <dl class="methods">
47
47
 
48
- <dt>A</dt>
48
+ <dt>C</dt>
49
49
  <dd>
50
50
  <ul>
51
51
 
52
- <li><a href="#M000068">anchor?</a></li>
52
+ <li><a href="#M000060">chain?</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="#M000069">inline?</a></li>
61
+ <li><a href="#M000061">inline?</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="#M000067">ordinal_number?</a></li>
70
+ <li><a href="#M000059">ordinal_number?</a></li>
71
71
 
72
72
  </ul>
73
73
  </dd>
@@ -76,9 +76,9 @@
76
76
  <dd>
77
77
  <ul>
78
78
 
79
- <li><a href="#M000066">section_number?</a>,</li>
79
+ <li><a href="#M000058">section_number?</a>,</li>
80
80
 
81
- <li><a href="#M000070">silent?</a></li>
81
+ <li><a href="#M000062">silent?</a></li>
82
82
 
83
83
  </ul>
84
84
  </dd>
@@ -87,7 +87,7 @@
87
87
  <dd>
88
88
  <ul>
89
89
 
90
- <li><a href="#M000065">to_s</a></li>
90
+ <li><a href="#M000055">to_s</a></li>
91
91
 
92
92
  </ul>
93
93
  </dd>
@@ -109,26 +109,33 @@
109
109
  <div class="sectiontitle">Instance Public methods</div>
110
110
 
111
111
  <div class="method">
112
- <div class="title" id="M000068">
112
+ <div class="title" id="M000060">
113
113
 
114
- <a name="M000068"></a><b>anchor?</b>()
114
+ <a name="M000060"></a><b>chain?</b>()
115
115
 
116
116
  </div>
117
117
 
118
+ <div class="description">
119
+ <p>
120
+ Include this node in the previous/next navigation chain?
121
+ </p>
122
+
123
+ </div>
124
+
118
125
 
119
126
 
120
127
 
121
128
  <div class="sourcecode">
122
129
  <p class="source-link">
123
- Source: <a href="javascript:toggleSource('M000068_source')" id="l_M000068_source">show</a>
130
+ Source: <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show</a>
124
131
 
125
- | <a href="http://github.com/sunaku/erbook/blob/aeaff38e68b16f53360682a1f9770747dd84ecb6/lib/erbook/document.rb#L269" target="_blank" class="github_url">on GitHub</a>
132
+ | <a href="http://github.com/sunaku/erbook/blob/eda493a151e7b55d041d0a094c586e2c22aa63cc/lib/erbook/document.rb#L279" target="_blank" class="github_url">on GitHub</a>
126
133
 
127
134
  </p>
128
- <div id="M000068_source" class="dyn-source">
129
- <pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 269</span>
130
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">anchor?</span>
131
- <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">inline?</span> <span class="ruby-keyword kw">and</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">silent?</span>
135
+ <div id="M000060_source" class="dyn-source">
136
+ <pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 279</span>
137
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chain?</span>
138
+ <span class="ruby-identifier">definition</span>[<span class="ruby-value str">'chain'</span>]
132
139
  <span class="ruby-keyword kw">end</span></pre>
133
140
  </div>
134
141
  </div>
@@ -136,9 +143,9 @@
136
143
  </div>
137
144
 
138
145
  <div class="method">
139
- <div class="title" id="M000069">
146
+ <div class="title" id="M000061">
140
147
 
141
- <a name="M000069"></a><b>inline?</b>()
148
+ <a name="M000061"></a><b>inline?</b>()
142
149
 
143
150
  </div>
144
151
 
@@ -147,13 +154,13 @@
147
154
 
148
155
  <div class="sourcecode">
149
156
  <p class="source-link">
150
- Source: <a href="javascript:toggleSource('M000069_source')" id="l_M000069_source">show</a>
157
+ Source: <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show</a>
151
158
 
152
- | <a href="http://github.com/sunaku/erbook/blob/aeaff38e68b16f53360682a1f9770747dd84ecb6/lib/erbook/document.rb#L273" target="_blank" class="github_url">on GitHub</a>
159
+ | <a href="http://github.com/sunaku/erbook/blob/eda493a151e7b55d041d0a094c586e2c22aa63cc/lib/erbook/document.rb#L283" target="_blank" class="github_url">on GitHub</a>
153
160
 
154
161
  </p>
155
- <div id="M000069_source" class="dyn-source">
156
- <pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 273</span>
162
+ <div id="M000061_source" class="dyn-source">
163
+ <pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 283</span>
157
164
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inline?</span>
158
165
  <span class="ruby-identifier">definition</span>[<span class="ruby-value str">'inline'</span>]
159
166
  <span class="ruby-keyword kw">end</span></pre>
@@ -163,9 +170,9 @@
163
170
  </div>
164
171
 
165
172
  <div class="method">
166
- <div class="title" id="M000067">
173
+ <div class="title" id="M000059">
167
174
 
168
- <a name="M000067"></a><b>ordinal_number?</b>()
175
+ <a name="M000059"></a><b>ordinal_number?</b>()
169
176
 
170
177
  </div>
171
178
 
@@ -174,13 +181,13 @@
174
181
 
175
182
  <div class="sourcecode">
176
183
  <p class="source-link">
177
- Source: <a href="javascript:toggleSource('M000067_source')" id="l_M000067_source">show</a>
184
+ Source: <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show</a>
178
185
 
179
- | <a href="http://github.com/sunaku/erbook/blob/aeaff38e68b16f53360682a1f9770747dd84ecb6/lib/erbook/document.rb#L265" target="_blank" class="github_url">on GitHub</a>
186
+ | <a href="http://github.com/sunaku/erbook/blob/eda493a151e7b55d041d0a094c586e2c22aa63cc/lib/erbook/document.rb#L272" target="_blank" class="github_url">on GitHub</a>
180
187
 
181
188
  </p>
182
- <div id="M000067_source" class="dyn-source">
183
- <pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 265</span>
189
+ <div id="M000059_source" class="dyn-source">
190
+ <pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 272</span>
184
191
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ordinal_number?</span>
185
192
  <span class="ruby-constant">Array</span>(<span class="ruby-identifier">definition</span>[<span class="ruby-value str">'number'</span>]).<span class="ruby-identifier">include?</span> <span class="ruby-value str">'ordinal'</span>
186
193
  <span class="ruby-keyword kw">end</span></pre>
@@ -190,9 +197,9 @@
190
197
  </div>
191
198
 
192
199
  <div class="method">
193
- <div class="title" id="M000066">
200
+ <div class="title" id="M000058">
194
201
 
195
- <a name="M000066"></a><b>section_number?</b>()
202
+ <a name="M000058"></a><b>section_number?</b>()
196
203
 
197
204
  </div>
198
205
 
@@ -201,13 +208,13 @@
201
208
 
202
209
  <div class="sourcecode">
203
210
  <p class="source-link">
204
- Source: <a href="javascript:toggleSource('M000066_source')" id="l_M000066_source">show</a>
211
+ Source: <a href="javascript:toggleSource('M000058_source')" id="l_M000058_source">show</a>
205
212
 
206
- | <a href="http://github.com/sunaku/erbook/blob/aeaff38e68b16f53360682a1f9770747dd84ecb6/lib/erbook/document.rb#L261" target="_blank" class="github_url">on GitHub</a>
213
+ | <a href="http://github.com/sunaku/erbook/blob/eda493a151e7b55d041d0a094c586e2c22aa63cc/lib/erbook/document.rb#L268" target="_blank" class="github_url">on GitHub</a>
207
214
 
208
215
  </p>
209
- <div id="M000066_source" class="dyn-source">
210
- <pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 261</span>
216
+ <div id="M000058_source" class="dyn-source">
217
+ <pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 268</span>
211
218
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">section_number?</span>
212
219
  <span class="ruby-constant">Array</span>(<span class="ruby-identifier">definition</span>[<span class="ruby-value str">'number'</span>]).<span class="ruby-identifier">include?</span> <span class="ruby-value str">'section'</span>
213
220
  <span class="ruby-keyword kw">end</span></pre>
@@ -217,9 +224,9 @@
217
224
  </div>
218
225
 
219
226
  <div class="method">
220
- <div class="title" id="M000070">
227
+ <div class="title" id="M000062">
221
228
 
222
- <a name="M000070"></a><b>silent?</b>()
229
+ <a name="M000062"></a><b>silent?</b>()
223
230
 
224
231
  </div>
225
232
 
@@ -228,13 +235,13 @@
228
235
 
229
236
  <div class="sourcecode">
230
237
  <p class="source-link">
231
- Source: <a href="javascript:toggleSource('M000070_source')" id="l_M000070_source">show</a>
238
+ Source: <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">show</a>
232
239
 
233
- | <a href="http://github.com/sunaku/erbook/blob/aeaff38e68b16f53360682a1f9770747dd84ecb6/lib/erbook/document.rb#L277" target="_blank" class="github_url">on GitHub</a>
240
+ | <a href="http://github.com/sunaku/erbook/blob/eda493a151e7b55d041d0a094c586e2c22aa63cc/lib/erbook/document.rb#L287" target="_blank" class="github_url">on GitHub</a>
234
241
 
235
242
  </p>
236
- <div id="M000070_source" class="dyn-source">
237
- <pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 277</span>
243
+ <div id="M000062_source" class="dyn-source">
244
+ <pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 287</span>
238
245
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">silent?</span>
239
246
  <span class="ruby-identifier">definition</span>[<span class="ruby-value str">'silent'</span>]
240
247
  <span class="ruby-keyword kw">end</span></pre>
@@ -244,9 +251,9 @@
244
251
  </div>
245
252
 
246
253
  <div class="method">
247
- <div class="title" id="M000065">
254
+ <div class="title" id="M000055">
248
255
 
249
- <a name="M000065"></a><b>to_s</b>()
256
+ <a name="M000055"></a><b>to_s</b>()
250
257
 
251
258
  </div>
252
259
 
@@ -262,13 +269,13 @@ Returns the output of this node.
262
269
 
263
270
  <div class="sourcecode">
264
271
  <p class="source-link">
265
- Source: <a href="javascript:toggleSource('M000065_source')" id="l_M000065_source">show</a>
272
+ Source: <a href="javascript:toggleSource('M000055_source')" id="l_M000055_source">show</a>
266
273
 
267
- | <a href="http://github.com/sunaku/erbook/blob/aeaff38e68b16f53360682a1f9770747dd84ecb6/lib/erbook/document.rb#L253" target="_blank" class="github_url">on GitHub</a>
274
+ | <a href="http://github.com/sunaku/erbook/blob/eda493a151e7b55d041d0a094c586e2c22aa63cc/lib/erbook/document.rb#L260" target="_blank" class="github_url">on GitHub</a>
268
275
 
269
276
  </p>
270
- <div id="M000065_source" class="dyn-source">
271
- <pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 253</span>
277
+ <div id="M000055_source" class="dyn-source">
278
+ <pre><span class="ruby-comment cmt"># File lib/erbook/document.rb, line 260</span>
272
279
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
273
280
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">silent?</span>
274
281
  <span class="ruby-value str">''</span>
@@ -58,7 +58,7 @@ sandboxing for isolated template rendering.
58
58
  <dd>
59
59
  <ul>
60
60
 
61
- <li><a href="#M000047">buffer</a></li>
61
+ <li><a href="#M000043">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="#M000042">new</a></li>
70
+ <li><a href="#M000041">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="#M000046">render</a>,</li>
79
+ <li><a href="#M000042">render</a>,</li>
80
80
 
81
- <li><a href="#M000048">render_with</a></li>
81
+ <li><a href="#M000044">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="M000042">
123
+ <div class="title" id="M000041">
124
124
 
125
- <a name="M000042"></a><b>new</b>(source, input, unindent = true, safe_level = nil)
125
+ <a name="M000041"></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('M000042_source')" id="l_M000042_source">show</a>
154
+ Source: <a href="javascript:toggleSource('M000041_source')" id="l_M000041_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="M000042_source" class="dyn-source">
159
+ <div id="M000041_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="M000047">
187
+ <div class="title" id="M000043">
188
188
 
189
- <a name="M000047"></a><b>buffer</b>()
189
+ <a name="M000043"></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('M000047_source')" id="l_M000047_source">show</a>
205
+ Source: <a href="javascript:toggleSource('M000043_source')" id="l_M000043_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="M000047_source" class="dyn-source">
210
+ <div id="M000043_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="M000046">
221
+ <div class="title" id="M000042">
222
222
 
223
- <a name="M000046"></a><b>render</b>()
223
+ <a name="M000042"></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('M000046_source')" id="l_M000046_source">show</a>
242
+ Source: <a href="javascript:toggleSource('M000042_source')" id="l_M000042_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="M000046_source" class="dyn-source">
247
+ <div id="M000042_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="M000048">
258
+ <div class="title" id="M000044">
259
259
 
260
- <a name="M000048"></a><b>render_with</b>(inst_vars = {})
260
+ <a name="M000044"></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('M000048_source')" id="l_M000048_source">show</a>
278
+ Source: <a href="javascript:toggleSource('M000044_source')" id="l_M000044_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="M000048_source" class="dyn-source">
283
+ <div id="M000044_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>