erubis 2.6.2 → 2.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. data/CHANGES.txt +16 -5
  2. data/MIT-LICENSE +1 -1
  3. data/README.txt +2 -2
  4. data/benchmark/bench.rb +2 -2
  5. data/bin/erubis +4 -4
  6. data/contrib/erubis +3349 -5
  7. data/contrib/inline-require +2 -2
  8. data/doc-api/classes/Erubis.html +1 -1
  9. data/doc-api/classes/Erubis/ArrayEnhancer.html +12 -12
  10. data/doc-api/classes/Erubis/Basic/Converter.html +24 -24
  11. data/doc-api/classes/Erubis/BiPatternEnhancer.html +12 -12
  12. data/doc-api/classes/Erubis/CGenerator.html +60 -60
  13. data/doc-api/classes/Erubis/Converter.html +27 -27
  14. data/doc-api/classes/Erubis/DeleteIndentEnhancer.html +6 -6
  15. data/doc-api/classes/Erubis/ErboutEnhancer.html +12 -12
  16. data/doc-api/classes/Erubis/EscapeEnhancer.html +6 -6
  17. data/doc-api/classes/Erubis/Evaluator.html +19 -19
  18. data/doc-api/classes/Erubis/HeaderFooterEnhancer.html +12 -12
  19. data/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +150 -150
  20. data/doc-api/classes/Erubis/Helpers/RailsHelper.html +49 -49
  21. data/doc-api/classes/Erubis/Helpers/RailsHelper/TemplateConverter.html +12 -12
  22. data/doc-api/classes/Erubis/InterpolationEnhancer.html +30 -30
  23. data/doc-api/classes/Erubis/JavaGenerator.html +54 -54
  24. data/doc-api/classes/Erubis/JavascriptGenerator.html +60 -60
  25. data/doc-api/classes/Erubis/NoTextEnhancer.html +6 -6
  26. data/doc-api/classes/Erubis/OptimizedGenerator.html +72 -72
  27. data/doc-api/classes/Erubis/PI/Ec.html +6 -6
  28. data/doc-api/classes/Erubis/PI/Ejavascript.html +6 -6
  29. data/doc-api/classes/Erubis/PI/Eperl.html +6 -6
  30. data/doc-api/classes/Erubis/PI/Ephp.html +6 -6
  31. data/doc-api/classes/Erubis/PI/Eruby.html +6 -6
  32. data/doc-api/classes/Erubis/PI/Escheme.html +6 -6
  33. data/doc-api/classes/Erubis/PI/TinyEruby.html +24 -24
  34. data/doc-api/classes/Erubis/PercentLineEnhancer.html +6 -6
  35. data/doc-api/classes/Erubis/PerlGenerator.html +54 -54
  36. data/doc-api/classes/Erubis/PhpGenerator.html +54 -54
  37. data/doc-api/classes/Erubis/PreprocessingEruby.html +12 -12
  38. data/doc-api/classes/Erubis/PreprocessingHelper.html +22 -22
  39. data/doc-api/classes/Erubis/PrintEnabledEnhancer.html +20 -20
  40. data/doc-api/classes/Erubis/PrintOutEnhancer.html +30 -30
  41. data/doc-api/classes/Erubis/RubyEvaluator.html +18 -18
  42. data/doc-api/classes/Erubis/RubyGenerator.html +48 -48
  43. data/doc-api/classes/Erubis/SchemeGenerator.html +60 -60
  44. data/doc-api/classes/Erubis/SimplifyEnhancer.html +7 -7
  45. data/doc-api/classes/Erubis/StdoutEnhancer.html +12 -12
  46. data/doc-api/classes/Erubis/StringBufferEnhancer.html +12 -12
  47. data/doc-api/classes/Erubis/TinyEruby.html +24 -24
  48. data/doc-api/classes/Erubis/XmlHelper.html +30 -30
  49. data/doc-api/created.rid +1 -1
  50. data/doc-api/files/README_txt.html +3 -3
  51. data/doc-api/files/erubis/context_rb.html +1 -1
  52. data/doc-api/files/erubis/converter_rb.html +1 -1
  53. data/doc-api/files/erubis/engine/ec_rb.html +1 -1
  54. data/doc-api/files/erubis/engine/ejava_rb.html +1 -1
  55. data/doc-api/files/erubis/engine/ejavascript_rb.html +1 -1
  56. data/doc-api/files/erubis/engine/enhanced_rb.html +1 -1
  57. data/doc-api/files/erubis/engine/eperl_rb.html +1 -1
  58. data/doc-api/files/erubis/engine/ephp_rb.html +1 -1
  59. data/doc-api/files/erubis/engine/eruby_rb.html +1 -1
  60. data/doc-api/files/erubis/engine/escheme_rb.html +1 -1
  61. data/doc-api/files/erubis/engine/optimized_rb.html +1 -1
  62. data/doc-api/files/erubis/engine_rb.html +1 -1
  63. data/doc-api/files/erubis/enhancer_rb.html +1 -1
  64. data/doc-api/files/erubis/error_rb.html +1 -1
  65. data/doc-api/files/erubis/evaluator_rb.html +1 -1
  66. data/doc-api/files/erubis/generator_rb.html +1 -1
  67. data/doc-api/files/erubis/helper_rb.html +1 -1
  68. data/doc-api/files/erubis/helpers/rails_form_helper_rb.html +1 -1
  69. data/doc-api/files/erubis/helpers/rails_helper_rb.html +1 -1
  70. data/doc-api/files/erubis/local-setting_rb.html +1 -1
  71. data/doc-api/files/erubis/main_rb.html +2 -2
  72. data/doc-api/files/erubis/preprocessing_rb.html +1 -1
  73. data/doc-api/files/erubis/tiny_rb.html +1 -1
  74. data/doc-api/files/erubis_rb.html +1 -1
  75. data/doc-api/fr_method_index.html +188 -188
  76. data/doc/users-guide.html +5 -5
  77. data/lib/erubis.rb +3 -3
  78. data/lib/erubis/context.rb +2 -2
  79. data/lib/erubis/converter.rb +2 -2
  80. data/lib/erubis/engine.rb +2 -2
  81. data/lib/erubis/engine/ec.rb +2 -2
  82. data/lib/erubis/engine/ejava.rb +2 -2
  83. data/lib/erubis/engine/ejavascript.rb +2 -2
  84. data/lib/erubis/engine/enhanced.rb +2 -2
  85. data/lib/erubis/engine/eperl.rb +2 -2
  86. data/lib/erubis/engine/ephp.rb +2 -2
  87. data/lib/erubis/engine/eruby.rb +2 -2
  88. data/lib/erubis/engine/escheme.rb +2 -2
  89. data/lib/erubis/engine/optimized.rb +2 -2
  90. data/lib/erubis/enhancer.rb +2 -2
  91. data/lib/erubis/error.rb +2 -2
  92. data/lib/erubis/evaluator.rb +2 -2
  93. data/lib/erubis/generator.rb +2 -2
  94. data/lib/erubis/helper.rb +2 -2
  95. data/lib/erubis/helpers/rails_form_helper.rb +2 -2
  96. data/lib/erubis/helpers/rails_helper.rb +2 -2
  97. data/lib/erubis/local-setting.rb +2 -2
  98. data/lib/erubis/main.rb +8 -7
  99. data/lib/erubis/preprocessing.rb +2 -2
  100. data/lib/erubis/tiny.rb +2 -2
  101. data/test/assert-text-equal.rb +2 -2
  102. data/test/data/users-guide/stderr.log +3 -0
  103. data/test/test-engines.rb +2 -2
  104. data/test/test-enhancers.rb +2 -2
  105. data/test/test-erubis.rb +2 -2
  106. data/test/test-main.rb +43 -16
  107. data/test/test-users-guide.rb +2 -2
  108. data/test/test.rb +2 -2
  109. data/test/testutil.rb +2 -2
  110. metadata +5 -10
  111. data/test/assert-text-equal.rbc +0 -0
  112. data/test/hoge.rb +0 -5
  113. data/test/test-engines.rbc +0 -0
  114. data/test/test-erubis.rbc +0 -0
  115. data/test/test-users-guide.rbc +0 -0
  116. data/test/test.rbc +0 -0
  117. data/test/testutil.rbc +0 -0
@@ -80,16 +80,16 @@
80
80
  <h3 class="section-bar">Methods</h3>
81
81
 
82
82
  <div class="name-list">
83
- <a href="#M000177">add_expr_debug</a>&nbsp;&nbsp;
84
- <a href="#M000176">add_expr_escaped</a>&nbsp;&nbsp;
85
- <a href="#M000175">add_expr_literal</a>&nbsp;&nbsp;
86
- <a href="#M000172">add_indent</a>&nbsp;&nbsp;
87
- <a href="#M000178">add_postamble</a>&nbsp;&nbsp;
88
- <a href="#M000170">add_preamble</a>&nbsp;&nbsp;
89
- <a href="#M000174">add_stmt</a>&nbsp;&nbsp;
90
- <a href="#M000173">add_text</a>&nbsp;&nbsp;
91
- <a href="#M000171">escape_text</a>&nbsp;&nbsp;
92
- <a href="#M000169">init_generator</a>&nbsp;&nbsp;
83
+ <a href="#M000168">add_expr_debug</a>&nbsp;&nbsp;
84
+ <a href="#M000167">add_expr_escaped</a>&nbsp;&nbsp;
85
+ <a href="#M000166">add_expr_literal</a>&nbsp;&nbsp;
86
+ <a href="#M000163">add_indent</a>&nbsp;&nbsp;
87
+ <a href="#M000169">add_postamble</a>&nbsp;&nbsp;
88
+ <a href="#M000161">add_preamble</a>&nbsp;&nbsp;
89
+ <a href="#M000165">add_stmt</a>&nbsp;&nbsp;
90
+ <a href="#M000164">add_text</a>&nbsp;&nbsp;
91
+ <a href="#M000162">escape_text</a>&nbsp;&nbsp;
92
+ <a href="#M000160">init_generator</a>&nbsp;&nbsp;
93
93
  </div>
94
94
  </div>
95
95
 
@@ -118,19 +118,19 @@
118
118
  <div id="methods">
119
119
  <h3 class="section-bar">Public Instance methods</h3>
120
120
 
121
- <div id="method-M000177" class="method-detail">
122
- <a name="M000177"></a>
121
+ <div id="method-M000168" class="method-detail">
122
+ <a name="M000168"></a>
123
123
 
124
124
  <div class="method-heading">
125
- <a href="#M000177" class="method-signature">
125
+ <a href="#M000168" class="method-signature">
126
126
  <span class="method-name">add_expr_debug</span><span class="method-args">(src, code)</span>
127
127
  </a>
128
128
  </div>
129
129
 
130
130
  <div class="method-description">
131
131
  <p><a class="source-toggle" href="#"
132
- onclick="toggleCode('M000177-source');return false;">[Source]</a></p>
133
- <div class="method-source-code" id="M000177-source">
132
+ onclick="toggleCode('M000168-source');return false;">[Source]</a></p>
133
+ <div class="method-source-code" id="M000168-source">
134
134
  <pre>
135
135
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 73</span>
136
136
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_debug</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -143,19 +143,19 @@
143
143
  </div>
144
144
  </div>
145
145
 
146
- <div id="method-M000176" class="method-detail">
147
- <a name="M000176"></a>
146
+ <div id="method-M000167" class="method-detail">
147
+ <a name="M000167"></a>
148
148
 
149
149
  <div class="method-heading">
150
- <a href="#M000176" class="method-signature">
150
+ <a href="#M000167" class="method-signature">
151
151
  <span class="method-name">add_expr_escaped</span><span class="method-args">(src, code)</span>
152
152
  </a>
153
153
  </div>
154
154
 
155
155
  <div class="method-description">
156
156
  <p><a class="source-toggle" href="#"
157
- onclick="toggleCode('M000176-source');return false;">[Source]</a></p>
158
- <div class="method-source-code" id="M000176-source">
157
+ onclick="toggleCode('M000167-source');return false;">[Source]</a></p>
158
+ <div class="method-source-code" id="M000167-source">
159
159
  <pre>
160
160
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 69</span>
161
161
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_escaped</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -166,19 +166,19 @@
166
166
  </div>
167
167
  </div>
168
168
 
169
- <div id="method-M000175" class="method-detail">
170
- <a name="M000175"></a>
169
+ <div id="method-M000166" class="method-detail">
170
+ <a name="M000166"></a>
171
171
 
172
172
  <div class="method-heading">
173
- <a href="#M000175" class="method-signature">
173
+ <a href="#M000166" class="method-signature">
174
174
  <span class="method-name">add_expr_literal</span><span class="method-args">(src, code)</span>
175
175
  </a>
176
176
  </div>
177
177
 
178
178
  <div class="method-description">
179
179
  <p><a class="source-toggle" href="#"
180
- onclick="toggleCode('M000175-source');return false;">[Source]</a></p>
181
- <div class="method-source-code" id="M000175-source">
180
+ onclick="toggleCode('M000166-source');return false;">[Source]</a></p>
181
+ <div class="method-source-code" id="M000166-source">
182
182
  <pre>
183
183
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 63</span>
184
184
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_literal</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -191,19 +191,19 @@
191
191
  </div>
192
192
  </div>
193
193
 
194
- <div id="method-M000172" class="method-detail">
195
- <a name="M000172"></a>
194
+ <div id="method-M000163" class="method-detail">
195
+ <a name="M000163"></a>
196
196
 
197
197
  <div class="method-heading">
198
- <a href="#M000172" class="method-signature">
198
+ <a href="#M000163" class="method-signature">
199
199
  <span class="method-name">add_indent</span><span class="method-args">(src, indent)</span>
200
200
  </a>
201
201
  </div>
202
202
 
203
203
  <div class="method-description">
204
204
  <p><a class="source-toggle" href="#"
205
- onclick="toggleCode('M000172-source');return false;">[Source]</a></p>
206
- <div class="method-source-code" id="M000172-source">
205
+ onclick="toggleCode('M000163-source');return false;">[Source]</a></p>
206
+ <div class="method-source-code" id="M000163-source">
207
207
  <pre>
208
208
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 42</span>
209
209
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_indent</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">indent</span>)
@@ -214,19 +214,19 @@
214
214
  </div>
215
215
  </div>
216
216
 
217
- <div id="method-M000178" class="method-detail">
218
- <a name="M000178"></a>
217
+ <div id="method-M000169" class="method-detail">
218
+ <a name="M000169"></a>
219
219
 
220
220
  <div class="method-heading">
221
- <a href="#M000178" class="method-signature">
221
+ <a href="#M000169" class="method-signature">
222
222
  <span class="method-name">add_postamble</span><span class="method-args">(src)</span>
223
223
  </a>
224
224
  </div>
225
225
 
226
226
  <div class="method-description">
227
227
  <p><a class="source-toggle" href="#"
228
- onclick="toggleCode('M000178-source');return false;">[Source]</a></p>
229
- <div class="method-source-code" id="M000178-source">
228
+ onclick="toggleCode('M000169-source');return false;">[Source]</a></p>
229
+ <div class="method-source-code" id="M000169-source">
230
230
  <pre>
231
231
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 79</span>
232
232
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
@@ -242,19 +242,19 @@
242
242
  </div>
243
243
  </div>
244
244
 
245
- <div id="method-M000170" class="method-detail">
246
- <a name="M000170"></a>
245
+ <div id="method-M000161" class="method-detail">
246
+ <a name="M000161"></a>
247
247
 
248
248
  <div class="method-heading">
249
- <a href="#M000170" class="method-signature">
249
+ <a href="#M000161" class="method-signature">
250
250
  <span class="method-name">add_preamble</span><span class="method-args">(src)</span>
251
251
  </a>
252
252
  </div>
253
253
 
254
254
  <div class="method-description">
255
255
  <p><a class="source-toggle" href="#"
256
- onclick="toggleCode('M000170-source');return false;">[Source]</a></p>
257
- <div class="method-source-code" id="M000170-source">
256
+ onclick="toggleCode('M000161-source');return false;">[Source]</a></p>
257
+ <div class="method-source-code" id="M000161-source">
258
258
  <pre>
259
259
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 33</span>
260
260
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
@@ -265,19 +265,19 @@
265
265
  </div>
266
266
  </div>
267
267
 
268
- <div id="method-M000174" class="method-detail">
269
- <a name="M000174"></a>
268
+ <div id="method-M000165" class="method-detail">
269
+ <a name="M000165"></a>
270
270
 
271
271
  <div class="method-heading">
272
- <a href="#M000174" class="method-signature">
272
+ <a href="#M000165" class="method-signature">
273
273
  <span class="method-name">add_stmt</span><span class="method-args">(src, code)</span>
274
274
  </a>
275
275
  </div>
276
276
 
277
277
  <div class="method-description">
278
278
  <p><a class="source-toggle" href="#"
279
- onclick="toggleCode('M000174-source');return false;">[Source]</a></p>
280
- <div class="method-source-code" id="M000174-source">
279
+ onclick="toggleCode('M000165-source');return false;">[Source]</a></p>
280
+ <div class="method-source-code" id="M000165-source">
281
281
  <pre>
282
282
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 59</span>
283
283
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_stmt</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -288,19 +288,19 @@
288
288
  </div>
289
289
  </div>
290
290
 
291
- <div id="method-M000173" class="method-detail">
292
- <a name="M000173"></a>
291
+ <div id="method-M000164" class="method-detail">
292
+ <a name="M000164"></a>
293
293
 
294
294
  <div class="method-heading">
295
- <a href="#M000173" class="method-signature">
295
+ <a href="#M000164" class="method-signature">
296
296
  <span class="method-name">add_text</span><span class="method-args">(src, text)</span>
297
297
  </a>
298
298
  </div>
299
299
 
300
300
  <div class="method-description">
301
301
  <p><a class="source-toggle" href="#"
302
- onclick="toggleCode('M000173-source');return false;">[Source]</a></p>
303
- <div class="method-source-code" id="M000173-source">
302
+ onclick="toggleCode('M000164-source');return false;">[Source]</a></p>
303
+ <div class="method-source-code" id="M000164-source">
304
304
  <pre>
305
305
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 46</span>
306
306
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_text</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">text</span>)
@@ -320,19 +320,19 @@
320
320
  </div>
321
321
  </div>
322
322
 
323
- <div id="method-M000171" class="method-detail">
324
- <a name="M000171"></a>
323
+ <div id="method-M000162" class="method-detail">
324
+ <a name="M000162"></a>
325
325
 
326
326
  <div class="method-heading">
327
- <a href="#M000171" class="method-signature">
327
+ <a href="#M000162" class="method-signature">
328
328
  <span class="method-name">escape_text</span><span class="method-args">(text)</span>
329
329
  </a>
330
330
  </div>
331
331
 
332
332
  <div class="method-description">
333
333
  <p><a class="source-toggle" href="#"
334
- onclick="toggleCode('M000171-source');return false;">[Source]</a></p>
335
- <div class="method-source-code" id="M000171-source">
334
+ onclick="toggleCode('M000162-source');return false;">[Source]</a></p>
335
+ <div class="method-source-code" id="M000162-source">
336
336
  <pre>
337
337
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 37</span>
338
338
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>)
@@ -344,19 +344,19 @@
344
344
  </div>
345
345
  </div>
346
346
 
347
- <div id="method-M000169" class="method-detail">
348
- <a name="M000169"></a>
347
+ <div id="method-M000160" class="method-detail">
348
+ <a name="M000160"></a>
349
349
 
350
350
  <div class="method-heading">
351
- <a href="#M000169" class="method-signature">
351
+ <a href="#M000160" class="method-signature">
352
352
  <span class="method-name">init_generator</span><span class="method-args">(properties={})</span>
353
353
  </a>
354
354
  </div>
355
355
 
356
356
  <div class="method-description">
357
357
  <p><a class="source-toggle" href="#"
358
- onclick="toggleCode('M000169-source');return false;">[Source]</a></p>
359
- <div class="method-source-code" id="M000169-source">
358
+ onclick="toggleCode('M000160-source');return false;">[Source]</a></p>
359
+ <div class="method-source-code" id="M000160-source">
360
360
  <pre>
361
361
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 25</span>
362
362
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_generator</span>(<span class="ruby-identifier">properties</span>={})
@@ -95,7 +95,7 @@ this is language independent.
95
95
  <h3 class="section-bar">Methods</h3>
96
96
 
97
97
  <div class="name-list">
98
- <a href="#M000189">add_text</a>&nbsp;&nbsp;
98
+ <a href="#M000171">add_text</a>&nbsp;&nbsp;
99
99
  </div>
100
100
  </div>
101
101
 
@@ -117,19 +117,19 @@ this is language independent.
117
117
  <div id="methods">
118
118
  <h3 class="section-bar">Public Instance methods</h3>
119
119
 
120
- <div id="method-M000189" class="method-detail">
121
- <a name="M000189"></a>
120
+ <div id="method-M000171" class="method-detail">
121
+ <a name="M000171"></a>
122
122
 
123
123
  <div class="method-heading">
124
- <a href="#M000189" class="method-signature">
124
+ <a href="#M000171" class="method-signature">
125
125
  <span class="method-name">add_text</span><span class="method-args">(src, text)</span>
126
126
  </a>
127
127
  </div>
128
128
 
129
129
  <div class="method-description">
130
130
  <p><a class="source-toggle" href="#"
131
- onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
132
- <div class="method-source-code" id="M000189-source">
131
+ onclick="toggleCode('M000171-source');return false;">[Source]</a></p>
132
+ <div class="method-source-code" id="M000171-source">
133
133
  <pre>
134
134
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 283</span>
135
135
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_text</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">text</span>)
@@ -80,18 +80,18 @@
80
80
  <h3 class="section-bar">Methods</h3>
81
81
 
82
82
  <div class="name-list">
83
- <a href="#M000143">add_expr_debug</a>&nbsp;&nbsp;
84
- <a href="#M000142">add_expr_escaped</a>&nbsp;&nbsp;
85
- <a href="#M000141">add_expr_literal</a>&nbsp;&nbsp;
86
- <a href="#M000144">add_postamble</a>&nbsp;&nbsp;
87
- <a href="#M000138">add_preamble</a>&nbsp;&nbsp;
88
- <a href="#M000140">add_stmt</a>&nbsp;&nbsp;
89
- <a href="#M000139">add_text</a>&nbsp;&nbsp;
90
- <a href="#M000134">escape_text</a>&nbsp;&nbsp;
91
- <a href="#M000135">escaped_expr</a>&nbsp;&nbsp;
92
- <a href="#M000133">init_generator</a>&nbsp;&nbsp;
93
- <a href="#M000136">switch_to_expr</a>&nbsp;&nbsp;
94
- <a href="#M000137">switch_to_stmt</a>&nbsp;&nbsp;
83
+ <a href="#M000032">add_expr_debug</a>&nbsp;&nbsp;
84
+ <a href="#M000031">add_expr_escaped</a>&nbsp;&nbsp;
85
+ <a href="#M000030">add_expr_literal</a>&nbsp;&nbsp;
86
+ <a href="#M000033">add_postamble</a>&nbsp;&nbsp;
87
+ <a href="#M000027">add_preamble</a>&nbsp;&nbsp;
88
+ <a href="#M000029">add_stmt</a>&nbsp;&nbsp;
89
+ <a href="#M000028">add_text</a>&nbsp;&nbsp;
90
+ <a href="#M000023">escape_text</a>&nbsp;&nbsp;
91
+ <a href="#M000024">escaped_expr</a>&nbsp;&nbsp;
92
+ <a href="#M000022">init_generator</a>&nbsp;&nbsp;
93
+ <a href="#M000025">switch_to_expr</a>&nbsp;&nbsp;
94
+ <a href="#M000026">switch_to_stmt</a>&nbsp;&nbsp;
95
95
  </div>
96
96
  </div>
97
97
 
@@ -120,19 +120,19 @@
120
120
  <div id="methods">
121
121
  <h3 class="section-bar">Public Instance methods</h3>
122
122
 
123
- <div id="method-M000133" class="method-detail">
124
- <a name="M000133"></a>
123
+ <div id="method-M000022" class="method-detail">
124
+ <a name="M000022"></a>
125
125
 
126
126
  <div class="method-heading">
127
- <a href="#M000133" class="method-signature">
127
+ <a href="#M000022" class="method-signature">
128
128
  <span class="method-name">init_generator</span><span class="method-args">(properties={})</span>
129
129
  </a>
130
130
  </div>
131
131
 
132
132
  <div class="method-description">
133
133
  <p><a class="source-toggle" href="#"
134
- onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
135
- <div class="method-source-code" id="M000133-source">
134
+ onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
135
+ <div class="method-source-code" id="M000022-source">
136
136
  <pre>
137
137
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 21</span>
138
138
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_generator</span>(<span class="ruby-identifier">properties</span>={})
@@ -148,19 +148,19 @@
148
148
 
149
149
  <h3 class="section-bar">Protected Instance methods</h3>
150
150
 
151
- <div id="method-M000143" class="method-detail">
152
- <a name="M000143"></a>
151
+ <div id="method-M000032" class="method-detail">
152
+ <a name="M000032"></a>
153
153
 
154
154
  <div class="method-heading">
155
- <a href="#M000143" class="method-signature">
155
+ <a href="#M000032" class="method-signature">
156
156
  <span class="method-name">add_expr_debug</span><span class="method-args">(src, code)</span>
157
157
  </a>
158
158
  </div>
159
159
 
160
160
  <div class="method-description">
161
161
  <p><a class="source-toggle" href="#"
162
- onclick="toggleCode('M000143-source');return false;">[Source]</a></p>
163
- <div class="method-source-code" id="M000143-source">
162
+ onclick="toggleCode('M000032-source');return false;">[Source]</a></p>
163
+ <div class="method-source-code" id="M000032-source">
164
164
  <pre>
165
165
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 86</span>
166
166
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_debug</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -173,19 +173,19 @@
173
173
  </div>
174
174
  </div>
175
175
 
176
- <div id="method-M000142" class="method-detail">
177
- <a name="M000142"></a>
176
+ <div id="method-M000031" class="method-detail">
177
+ <a name="M000031"></a>
178
178
 
179
179
  <div class="method-heading">
180
- <a href="#M000142" class="method-signature">
180
+ <a href="#M000031" class="method-signature">
181
181
  <span class="method-name">add_expr_escaped</span><span class="method-args">(src, code)</span>
182
182
  </a>
183
183
  </div>
184
184
 
185
185
  <div class="method-description">
186
186
  <p><a class="source-toggle" href="#"
187
- onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
188
- <div class="method-source-code" id="M000142-source">
187
+ onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
188
+ <div class="method-source-code" id="M000031-source">
189
189
  <pre>
190
190
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 80</span>
191
191
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_escaped</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -198,19 +198,19 @@
198
198
  </div>
199
199
  </div>
200
200
 
201
- <div id="method-M000141" class="method-detail">
202
- <a name="M000141"></a>
201
+ <div id="method-M000030" class="method-detail">
202
+ <a name="M000030"></a>
203
203
 
204
204
  <div class="method-heading">
205
- <a href="#M000141" class="method-signature">
205
+ <a href="#M000030" class="method-signature">
206
206
  <span class="method-name">add_expr_literal</span><span class="method-args">(src, code)</span>
207
207
  </a>
208
208
  </div>
209
209
 
210
210
  <div class="method-description">
211
211
  <p><a class="source-toggle" href="#"
212
- onclick="toggleCode('M000141-source');return false;">[Source]</a></p>
213
- <div class="method-source-code" id="M000141-source">
212
+ onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
213
+ <div class="method-source-code" id="M000030-source">
214
214
  <pre>
215
215
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 74</span>
216
216
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_literal</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -223,19 +223,19 @@
223
223
  </div>
224
224
  </div>
225
225
 
226
- <div id="method-M000144" class="method-detail">
227
- <a name="M000144"></a>
226
+ <div id="method-M000033" class="method-detail">
227
+ <a name="M000033"></a>
228
228
 
229
229
  <div class="method-heading">
230
- <a href="#M000144" class="method-signature">
230
+ <a href="#M000033" class="method-signature">
231
231
  <span class="method-name">add_postamble</span><span class="method-args">(src)</span>
232
232
  </a>
233
233
  </div>
234
234
 
235
235
  <div class="method-description">
236
236
  <p><a class="source-toggle" href="#"
237
- onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
238
- <div class="method-source-code" id="M000144-source">
237
+ onclick="toggleCode('M000033-source');return false;">[Source]</a></p>
238
+ <div class="method-source-code" id="M000033-source">
239
239
  <pre>
240
240
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 92</span>
241
241
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
@@ -247,19 +247,19 @@
247
247
  </div>
248
248
  </div>
249
249
 
250
- <div id="method-M000138" class="method-detail">
251
- <a name="M000138"></a>
250
+ <div id="method-M000027" class="method-detail">
251
+ <a name="M000027"></a>
252
252
 
253
253
  <div class="method-heading">
254
- <a href="#M000138" class="method-signature">
254
+ <a href="#M000027" class="method-signature">
255
255
  <span class="method-name">add_preamble</span><span class="method-args">(src)</span>
256
256
  </a>
257
257
  </div>
258
258
 
259
259
  <div class="method-description">
260
260
  <p><a class="source-toggle" href="#"
261
- onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
262
- <div class="method-source-code" id="M000138-source">
261
+ onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
262
+ <div class="method-source-code" id="M000027-source">
263
263
  <pre>
264
264
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 51</span>
265
265
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
@@ -271,19 +271,19 @@
271
271
  </div>
272
272
  </div>
273
273
 
274
- <div id="method-M000140" class="method-detail">
275
- <a name="M000140"></a>
274
+ <div id="method-M000029" class="method-detail">
275
+ <a name="M000029"></a>
276
276
 
277
277
  <div class="method-heading">
278
- <a href="#M000140" class="method-signature">
278
+ <a href="#M000029" class="method-signature">
279
279
  <span class="method-name">add_stmt</span><span class="method-args">(src, code)</span>
280
280
  </a>
281
281
  </div>
282
282
 
283
283
  <div class="method-description">
284
284
  <p><a class="source-toggle" href="#"
285
- onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
286
- <div class="method-source-code" id="M000140-source">
285
+ onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
286
+ <div class="method-source-code" id="M000029-source">
287
287
  <pre>
288
288
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 67</span>
289
289
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_stmt</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -297,19 +297,19 @@
297
297
  </div>
298
298
  </div>
299
299
 
300
- <div id="method-M000139" class="method-detail">
301
- <a name="M000139"></a>
300
+ <div id="method-M000028" class="method-detail">
301
+ <a name="M000028"></a>
302
302
 
303
303
  <div class="method-heading">
304
- <a href="#M000139" class="method-signature">
304
+ <a href="#M000028" class="method-signature">
305
305
  <span class="method-name">add_text</span><span class="method-args">(src, text)</span>
306
306
  </a>
307
307
  </div>
308
308
 
309
309
  <div class="method-description">
310
310
  <p><a class="source-toggle" href="#"
311
- onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
312
- <div class="method-source-code" id="M000139-source">
311
+ onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
312
+ <div class="method-source-code" id="M000028-source">
313
313
  <pre>
314
314
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 56</span>
315
315
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_text</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">text</span>)
@@ -327,19 +327,19 @@
327
327
  </div>
328
328
  </div>
329
329
 
330
- <div id="method-M000134" class="method-detail">
331
- <a name="M000134"></a>
330
+ <div id="method-M000023" class="method-detail">
331
+ <a name="M000023"></a>
332
332
 
333
333
  <div class="method-heading">
334
- <a href="#M000134" class="method-signature">
334
+ <a href="#M000023" class="method-signature">
335
335
  <span class="method-name">escape_text</span><span class="method-args">(text)</span>
336
336
  </a>
337
337
  </div>
338
338
 
339
339
  <div class="method-description">
340
340
  <p><a class="source-toggle" href="#"
341
- onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
342
- <div class="method-source-code" id="M000134-source">
341
+ onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
342
+ <div class="method-source-code" id="M000023-source">
343
343
  <pre>
344
344
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 30</span>
345
345
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>)
@@ -350,19 +350,19 @@
350
350
  </div>
351
351
  </div>
352
352
 
353
- <div id="method-M000135" class="method-detail">
354
- <a name="M000135"></a>
353
+ <div id="method-M000024" class="method-detail">
354
+ <a name="M000024"></a>
355
355
 
356
356
  <div class="method-heading">
357
- <a href="#M000135" class="method-signature">
357
+ <a href="#M000024" class="method-signature">
358
358
  <span class="method-name">escaped_expr</span><span class="method-args">(code)</span>
359
359
  </a>
360
360
  </div>
361
361
 
362
362
  <div class="method-description">
363
363
  <p><a class="source-toggle" href="#"
364
- onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
365
- <div class="method-source-code" id="M000135-source">
364
+ onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
365
+ <div class="method-source-code" id="M000024-source">
366
366
  <pre>
367
367
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 34</span>
368
368
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escaped_expr</span>(<span class="ruby-identifier">code</span>)
@@ -374,19 +374,19 @@
374
374
  </div>
375
375
  </div>
376
376
 
377
- <div id="method-M000136" class="method-detail">
378
- <a name="M000136"></a>
377
+ <div id="method-M000025" class="method-detail">
378
+ <a name="M000025"></a>
379
379
 
380
380
  <div class="method-heading">
381
- <a href="#M000136" class="method-signature">
381
+ <a href="#M000025" class="method-signature">
382
382
  <span class="method-name">switch_to_expr</span><span class="method-args">(src)</span>
383
383
  </a>
384
384
  </div>
385
385
 
386
386
  <div class="method-description">
387
387
  <p><a class="source-toggle" href="#"
388
- onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
389
- <div class="method-source-code" id="M000136-source">
388
+ onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
389
+ <div class="method-source-code" id="M000025-source">
390
390
  <pre>
391
391
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 39</span>
392
392
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">switch_to_expr</span>(<span class="ruby-identifier">src</span>)
@@ -399,19 +399,19 @@
399
399
  </div>
400
400
  </div>
401
401
 
402
- <div id="method-M000137" class="method-detail">
403
- <a name="M000137"></a>
402
+ <div id="method-M000026" class="method-detail">
403
+ <a name="M000026"></a>
404
404
 
405
405
  <div class="method-heading">
406
- <a href="#M000137" class="method-signature">
406
+ <a href="#M000026" class="method-signature">
407
407
  <span class="method-name">switch_to_stmt</span><span class="method-args">(src)</span>
408
408
  </a>
409
409
  </div>
410
410
 
411
411
  <div class="method-description">
412
412
  <p><a class="source-toggle" href="#"
413
- onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
414
- <div class="method-source-code" id="M000137-source">
413
+ onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
414
+ <div class="method-source-code" id="M000026-source">
415
415
  <pre>
416
416
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 45</span>
417
417
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">switch_to_stmt</span>(<span class="ruby-identifier">src</span>)