erubis 2.4.1 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. data/{CHANGES → CHANGES.txt} +59 -3
  2. data/MIT-LICENSE +1 -1
  3. data/README.txt +5 -5
  4. data/benchmark/bench.rb +2 -2
  5. data/bin/erubis +2 -2
  6. data/contrib/erubis +46 -46
  7. data/contrib/inline-require +2 -2
  8. data/doc-api/classes/Erubis.html +5 -1
  9. data/doc-api/classes/Erubis/ArrayEnhancer.html +12 -12
  10. data/doc-api/classes/Erubis/BiPatternEnhancer.html +12 -12
  11. data/doc-api/classes/Erubis/CGenerator.html +60 -60
  12. data/doc-api/classes/Erubis/Context.html +42 -42
  13. data/doc-api/classes/Erubis/DeleteIndentEnhancer.html +6 -6
  14. data/doc-api/classes/Erubis/Engine.html +30 -30
  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/HeaderFooterEnhancer.html +12 -12
  18. data/doc-api/classes/Erubis/Helpers.html +6 -1
  19. data/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +762 -0
  20. data/doc-api/classes/Erubis/Helpers/RailsHelper.html +12 -18
  21. data/doc-api/classes/Erubis/Helpers/RailsHelper/PreprocessingEruby.html +2 -2
  22. data/doc-api/classes/Erubis/JavaGenerator.html +54 -54
  23. data/doc-api/classes/Erubis/JavascriptGenerator.html +60 -60
  24. data/doc-api/classes/Erubis/Main.html +19 -19
  25. data/doc-api/classes/Erubis/NoTextEnhancer.html +6 -6
  26. data/doc-api/classes/Erubis/OptimizedEruby.html +6 -6
  27. data/doc-api/classes/Erubis/OptimizedGenerator.html +72 -72
  28. data/doc-api/classes/Erubis/OptimizedXmlEruby.html +6 -6
  29. data/doc-api/classes/Erubis/PercentLineEnhancer.html +6 -6
  30. data/doc-api/classes/Erubis/PhpGenerator.html +54 -54
  31. data/doc-api/classes/Erubis/PrintEnabledEnhancer.html +20 -20
  32. data/doc-api/classes/Erubis/PrintOutEnhancer.html +30 -30
  33. data/doc-api/classes/Erubis/RubyEvaluator.html +18 -18
  34. data/doc-api/classes/Erubis/StringBufferEnhancer.html +12 -12
  35. data/doc-api/classes/Erubis/TinyEruby.html +24 -24
  36. data/doc-api/classes/Erubis/XmlHelper.html +30 -30
  37. data/doc-api/created.rid +1 -1
  38. data/doc-api/files/README_txt.html +6 -7
  39. data/doc-api/files/erubis/context_rb.html +1 -1
  40. data/doc-api/files/erubis/converter_rb.html +1 -1
  41. data/doc-api/files/erubis/engine/ec_rb.html +1 -1
  42. data/doc-api/files/erubis/engine/ejava_rb.html +1 -1
  43. data/doc-api/files/erubis/engine/ejavascript_rb.html +1 -1
  44. data/doc-api/files/erubis/engine/enhanced_rb.html +1 -1
  45. data/doc-api/files/erubis/engine/eperl_rb.html +1 -1
  46. data/doc-api/files/erubis/engine/ephp_rb.html +1 -1
  47. data/doc-api/files/erubis/engine/eruby_rb.html +1 -1
  48. data/doc-api/files/erubis/engine/escheme_rb.html +1 -1
  49. data/doc-api/files/erubis/engine/optimized_rb.html +1 -1
  50. data/doc-api/files/erubis/engine_rb.html +1 -1
  51. data/doc-api/files/erubis/enhancer_rb.html +1 -1
  52. data/doc-api/files/erubis/error_rb.html +1 -1
  53. data/doc-api/files/erubis/evaluator_rb.html +1 -1
  54. data/doc-api/files/erubis/generator_rb.html +1 -1
  55. data/doc-api/files/erubis/helper_rb.html +1 -1
  56. data/doc-api/files/erubis/helpers/rails_form_helper_rb.html +107 -0
  57. data/doc-api/files/erubis/helpers/rails_helper_rb.html +2 -2
  58. data/doc-api/files/erubis/local-setting_rb.html +1 -1
  59. data/doc-api/files/erubis/main_rb.html +1 -1
  60. data/doc-api/files/erubis/tiny_rb.html +1 -1
  61. data/doc-api/files/erubis_rb.html +2 -2
  62. data/doc-api/fr_class_index.html +1 -0
  63. data/doc-api/fr_file_index.html +1 -0
  64. data/doc-api/fr_method_index.html +162 -138
  65. data/doc/users-guide.html +157 -62
  66. data/lib/erubis.rb +4 -4
  67. data/lib/erubis/context.rb +2 -2
  68. data/lib/erubis/converter.rb +2 -2
  69. data/lib/erubis/engine.rb +2 -2
  70. data/lib/erubis/engine/ec.rb +2 -2
  71. data/lib/erubis/engine/ejava.rb +2 -2
  72. data/lib/erubis/engine/ejavascript.rb +2 -2
  73. data/lib/erubis/engine/enhanced.rb +2 -2
  74. data/lib/erubis/engine/eperl.rb +2 -2
  75. data/lib/erubis/engine/ephp.rb +2 -2
  76. data/lib/erubis/engine/eruby.rb +2 -2
  77. data/lib/erubis/engine/escheme.rb +2 -2
  78. data/lib/erubis/engine/optimized.rb +2 -2
  79. data/lib/erubis/enhancer.rb +2 -2
  80. data/lib/erubis/error.rb +2 -2
  81. data/lib/erubis/evaluator.rb +2 -2
  82. data/lib/erubis/generator.rb +2 -2
  83. data/lib/erubis/helper.rb +2 -2
  84. data/lib/erubis/helpers/rails_form_helper.rb +190 -0
  85. data/lib/erubis/helpers/rails_helper.rb +63 -28
  86. data/lib/erubis/local-setting.rb +2 -2
  87. data/lib/erubis/main.rb +2 -2
  88. data/lib/erubis/tiny.rb +2 -2
  89. data/test/assert-text-equal.rb +2 -2
  90. data/test/test-engines.rb +2 -2
  91. data/test/test-enhancers.rb +2 -2
  92. data/test/test-erubis.rb +2 -2
  93. data/test/test-main.rb +2 -2
  94. data/test/test-users-guide.rb +2 -2
  95. data/test/test.rb +2 -2
  96. data/test/testutil.rb +2 -2
  97. metadata +53 -44
  98. data/test/data/users-guide/stderr.log +0 -3
@@ -95,7 +95,7 @@ code
95
95
  <h3 class="section-bar">Methods</h3>
96
96
 
97
97
  <div class="name-list">
98
- <a href="#M000189">add_expr_debug</a>&nbsp;&nbsp;
98
+ <a href="#M000213">add_expr_debug</a>&nbsp;&nbsp;
99
99
  </div>
100
100
  </div>
101
101
 
@@ -124,19 +124,19 @@ code
124
124
  <div id="methods">
125
125
  <h3 class="section-bar">Public Instance methods</h3>
126
126
 
127
- <div id="method-M000189" class="method-detail">
128
- <a name="M000189"></a>
127
+ <div id="method-M000213" class="method-detail">
128
+ <a name="M000213"></a>
129
129
 
130
130
  <div class="method-heading">
131
- <a href="#M000189" class="method-signature">
131
+ <a href="#M000213" class="method-signature">
132
132
  <span class="method-name">add_expr_debug</span><span class="method-args">(src, code)</span>
133
133
  </a>
134
134
  </div>
135
135
 
136
136
  <div class="method-description">
137
137
  <p><a class="source-toggle" href="#"
138
- onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
139
- <div class="method-source-code" id="M000189-source">
138
+ onclick="toggleCode('M000213-source');return false;">[Source]</a></p>
139
+ <div class="method-source-code" id="M000213-source">
140
140
  <pre>
141
141
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 121</span>
142
142
  <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>)
@@ -92,7 +92,7 @@ this is language-independent.
92
92
  <h3 class="section-bar">Methods</h3>
93
93
 
94
94
  <div class="name-list">
95
- <a href="#M000157">add_text</a>&nbsp;&nbsp;
95
+ <a href="#M000181">add_text</a>&nbsp;&nbsp;
96
96
  </div>
97
97
  </div>
98
98
 
@@ -114,19 +114,19 @@ this is language-independent.
114
114
  <div id="methods">
115
115
  <h3 class="section-bar">Public Instance methods</h3>
116
116
 
117
- <div id="method-M000157" class="method-detail">
118
- <a name="M000157"></a>
117
+ <div id="method-M000181" class="method-detail">
118
+ <a name="M000181"></a>
119
119
 
120
120
  <div class="method-heading">
121
- <a href="#M000157" class="method-signature">
121
+ <a href="#M000181" class="method-signature">
122
122
  <span class="method-name">add_text</span><span class="method-args">(src, text)</span>
123
123
  </a>
124
124
  </div>
125
125
 
126
126
  <div class="method-description">
127
127
  <p><a class="source-toggle" href="#"
128
- onclick="toggleCode('M000157-source');return false;">[Source]</a></p>
129
- <div class="method-source-code" id="M000157-source">
128
+ onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
129
+ <div class="method-source-code" id="M000181-source">
130
130
  <pre>
131
131
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 446</span>
132
132
  <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,15 +80,15 @@
80
80
  <h3 class="section-bar">Methods</h3>
81
81
 
82
82
  <div class="name-list">
83
- <a href="#M000120">add_expr_debug</a>&nbsp;&nbsp;
84
- <a href="#M000119">add_expr_escaped</a>&nbsp;&nbsp;
85
- <a href="#M000118">add_expr_literal</a>&nbsp;&nbsp;
86
- <a href="#M000122">add_postamble</a>&nbsp;&nbsp;
87
- <a href="#M000115">add_preamble</a>&nbsp;&nbsp;
88
- <a href="#M000121">add_stmt</a>&nbsp;&nbsp;
89
- <a href="#M000117">add_text</a>&nbsp;&nbsp;
90
- <a href="#M000116">escape_text</a>&nbsp;&nbsp;
91
- <a href="#M000114">init_generator</a>&nbsp;&nbsp;
83
+ <a href="#M000144">add_expr_debug</a>&nbsp;&nbsp;
84
+ <a href="#M000143">add_expr_escaped</a>&nbsp;&nbsp;
85
+ <a href="#M000142">add_expr_literal</a>&nbsp;&nbsp;
86
+ <a href="#M000146">add_postamble</a>&nbsp;&nbsp;
87
+ <a href="#M000139">add_preamble</a>&nbsp;&nbsp;
88
+ <a href="#M000145">add_stmt</a>&nbsp;&nbsp;
89
+ <a href="#M000141">add_text</a>&nbsp;&nbsp;
90
+ <a href="#M000140">escape_text</a>&nbsp;&nbsp;
91
+ <a href="#M000138">init_generator</a>&nbsp;&nbsp;
92
92
  </div>
93
93
  </div>
94
94
 
@@ -117,19 +117,19 @@
117
117
  <div id="methods">
118
118
  <h3 class="section-bar">Public Instance methods</h3>
119
119
 
120
- <div id="method-M000120" class="method-detail">
121
- <a name="M000120"></a>
120
+ <div id="method-M000144" class="method-detail">
121
+ <a name="M000144"></a>
122
122
 
123
123
  <div class="method-heading">
124
- <a href="#M000120" class="method-signature">
124
+ <a href="#M000144" class="method-signature">
125
125
  <span class="method-name">add_expr_debug</span><span class="method-args">(src, code)</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('M000120-source');return false;">[Source]</a></p>
132
- <div class="method-source-code" id="M000120-source">
131
+ onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
132
+ <div class="method-source-code" id="M000144-source">
133
133
  <pre>
134
134
  <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 47</span>
135
135
  <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>)
@@ -142,19 +142,19 @@
142
142
  </div>
143
143
  </div>
144
144
 
145
- <div id="method-M000119" class="method-detail">
146
- <a name="M000119"></a>
145
+ <div id="method-M000143" class="method-detail">
146
+ <a name="M000143"></a>
147
147
 
148
148
  <div class="method-heading">
149
- <a href="#M000119" class="method-signature">
149
+ <a href="#M000143" class="method-signature">
150
150
  <span class="method-name">add_expr_escaped</span><span class="method-args">(src, code)</span>
151
151
  </a>
152
152
  </div>
153
153
 
154
154
  <div class="method-description">
155
155
  <p><a class="source-toggle" href="#"
156
- onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
157
- <div class="method-source-code" id="M000119-source">
156
+ onclick="toggleCode('M000143-source');return false;">[Source]</a></p>
157
+ <div class="method-source-code" id="M000143-source">
158
158
  <pre>
159
159
  <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 43</span>
160
160
  <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>)
@@ -165,19 +165,19 @@
165
165
  </div>
166
166
  </div>
167
167
 
168
- <div id="method-M000118" class="method-detail">
169
- <a name="M000118"></a>
168
+ <div id="method-M000142" class="method-detail">
169
+ <a name="M000142"></a>
170
170
 
171
171
  <div class="method-heading">
172
- <a href="#M000118" class="method-signature">
172
+ <a href="#M000142" class="method-signature">
173
173
  <span class="method-name">add_expr_literal</span><span class="method-args">(src, code)</span>
174
174
  </a>
175
175
  </div>
176
176
 
177
177
  <div class="method-description">
178
178
  <p><a class="source-toggle" href="#"
179
- onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
180
- <div class="method-source-code" id="M000118-source">
179
+ onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
180
+ <div class="method-source-code" id="M000142-source">
181
181
  <pre>
182
182
  <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 38</span>
183
183
  <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>)
@@ -189,19 +189,19 @@
189
189
  </div>
190
190
  </div>
191
191
 
192
- <div id="method-M000122" class="method-detail">
193
- <a name="M000122"></a>
192
+ <div id="method-M000146" class="method-detail">
193
+ <a name="M000146"></a>
194
194
 
195
195
  <div class="method-heading">
196
- <a href="#M000122" class="method-signature">
196
+ <a href="#M000146" class="method-signature">
197
197
  <span class="method-name">add_postamble</span><span class="method-args">(src)</span>
198
198
  </a>
199
199
  </div>
200
200
 
201
201
  <div class="method-description">
202
202
  <p><a class="source-toggle" href="#"
203
- onclick="toggleCode('M000122-source');return false;">[Source]</a></p>
204
- <div class="method-source-code" id="M000122-source">
203
+ onclick="toggleCode('M000146-source');return false;">[Source]</a></p>
204
+ <div class="method-source-code" id="M000146-source">
205
205
  <pre>
206
206
  <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 64</span>
207
207
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
@@ -212,19 +212,19 @@
212
212
  </div>
213
213
  </div>
214
214
 
215
- <div id="method-M000115" class="method-detail">
216
- <a name="M000115"></a>
215
+ <div id="method-M000139" class="method-detail">
216
+ <a name="M000139"></a>
217
217
 
218
218
  <div class="method-heading">
219
- <a href="#M000115" class="method-signature">
219
+ <a href="#M000139" class="method-signature">
220
220
  <span class="method-name">add_preamble</span><span class="method-args">(src)</span>
221
221
  </a>
222
222
  </div>
223
223
 
224
224
  <div class="method-description">
225
225
  <p><a class="source-toggle" href="#"
226
- onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
227
- <div class="method-source-code" id="M000115-source">
226
+ onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
227
+ <div class="method-source-code" id="M000139-source">
228
228
  <pre>
229
229
  <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 26</span>
230
230
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
@@ -235,19 +235,19 @@
235
235
  </div>
236
236
  </div>
237
237
 
238
- <div id="method-M000121" class="method-detail">
239
- <a name="M000121"></a>
238
+ <div id="method-M000145" class="method-detail">
239
+ <a name="M000145"></a>
240
240
 
241
241
  <div class="method-heading">
242
- <a href="#M000121" class="method-signature">
242
+ <a href="#M000145" class="method-signature">
243
243
  <span class="method-name">add_stmt</span><span class="method-args">(src, code)</span>
244
244
  </a>
245
245
  </div>
246
246
 
247
247
  <div class="method-description">
248
248
  <p><a class="source-toggle" href="#"
249
- onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
250
- <div class="method-source-code" id="M000121-source">
249
+ onclick="toggleCode('M000145-source');return false;">[Source]</a></p>
250
+ <div class="method-source-code" id="M000145-source">
251
251
  <pre>
252
252
  <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 53</span>
253
253
  <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>)
@@ -265,19 +265,19 @@
265
265
  </div>
266
266
  </div>
267
267
 
268
- <div id="method-M000117" class="method-detail">
269
- <a name="M000117"></a>
268
+ <div id="method-M000141" class="method-detail">
269
+ <a name="M000141"></a>
270
270
 
271
271
  <div class="method-heading">
272
- <a href="#M000117" class="method-signature">
272
+ <a href="#M000141" class="method-signature">
273
273
  <span class="method-name">add_text</span><span class="method-args">(src, text)</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('M000117-source');return false;">[Source]</a></p>
280
- <div class="method-source-code" id="M000117-source">
279
+ onclick="toggleCode('M000141-source');return false;">[Source]</a></p>
280
+ <div class="method-source-code" id="M000141-source">
281
281
  <pre>
282
282
  <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 34</span>
283
283
  <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>)
@@ -288,19 +288,19 @@
288
288
  </div>
289
289
  </div>
290
290
 
291
- <div id="method-M000116" class="method-detail">
292
- <a name="M000116"></a>
291
+ <div id="method-M000140" class="method-detail">
292
+ <a name="M000140"></a>
293
293
 
294
294
  <div class="method-heading">
295
- <a href="#M000116" class="method-signature">
295
+ <a href="#M000140" class="method-signature">
296
296
  <span class="method-name">escape_text</span><span class="method-args">(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('M000116-source');return false;">[Source]</a></p>
303
- <div class="method-source-code" id="M000116-source">
302
+ onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
303
+ <div class="method-source-code" id="M000140-source">
304
304
  <pre>
305
305
  <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 30</span>
306
306
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>)
@@ -311,19 +311,19 @@
311
311
  </div>
312
312
  </div>
313
313
 
314
- <div id="method-M000114" class="method-detail">
315
- <a name="M000114"></a>
314
+ <div id="method-M000138" class="method-detail">
315
+ <a name="M000138"></a>
316
316
 
317
317
  <div class="method-heading">
318
- <a href="#M000114" class="method-signature">
318
+ <a href="#M000138" class="method-signature">
319
319
  <span class="method-name">init_generator</span><span class="method-args">(properties={})</span>
320
320
  </a>
321
321
  </div>
322
322
 
323
323
  <div class="method-description">
324
324
  <p><a class="source-toggle" href="#"
325
- onclick="toggleCode('M000114-source');return false;">[Source]</a></p>
326
- <div class="method-source-code" id="M000114-source">
325
+ onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
326
+ <div class="method-source-code" id="M000138-source">
327
327
  <pre>
328
328
  <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 21</span>
329
329
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_generator</span>(<span class="ruby-identifier">properties</span>={})
@@ -74,11 +74,11 @@
74
74
 
75
75
  <div id="description">
76
76
  <p>
77
- enable <a href="PrintEnabledEnhancer.html#M000136">print</a> function
77
+ enable <a href="PrintEnabledEnhancer.html#M000160">print</a> function
78
78
  </p>
79
79
  <p>
80
80
  Notice: use Eruby#evaluate() and don&#8216;t use Eruby#result() to be
81
- enable <a href="PrintEnabledEnhancer.html#M000136">print</a> function.
81
+ enable <a href="PrintEnabledEnhancer.html#M000160">print</a> function.
82
82
  </p>
83
83
  <p>
84
84
  this is only for <a href="Eruby.html">Eruby</a>.
@@ -93,9 +93,9 @@ this is only for <a href="Eruby.html">Eruby</a>.
93
93
  <h3 class="section-bar">Methods</h3>
94
94
 
95
95
  <div class="name-list">
96
- <a href="#M000135">add_preamble</a>&nbsp;&nbsp;
97
- <a href="#M000137">evaluate</a>&nbsp;&nbsp;
98
- <a href="#M000136">print</a>&nbsp;&nbsp;
96
+ <a href="#M000159">add_preamble</a>&nbsp;&nbsp;
97
+ <a href="#M000161">evaluate</a>&nbsp;&nbsp;
98
+ <a href="#M000160">print</a>&nbsp;&nbsp;
99
99
  </div>
100
100
  </div>
101
101
 
@@ -117,19 +117,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
117
117
  <div id="methods">
118
118
  <h3 class="section-bar">Public Instance methods</h3>
119
119
 
120
- <div id="method-M000135" class="method-detail">
121
- <a name="M000135"></a>
120
+ <div id="method-M000159" class="method-detail">
121
+ <a name="M000159"></a>
122
122
 
123
123
  <div class="method-heading">
124
- <a href="#M000135" class="method-signature">
124
+ <a href="#M000159" class="method-signature">
125
125
  <span class="method-name">add_preamble</span><span class="method-args">(src)</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('M000135-source');return false;">[Source]</a></p>
132
- <div class="method-source-code" id="M000135-source">
131
+ onclick="toggleCode('M000159-source');return false;">[Source]</a></p>
132
+ <div class="method-source-code" id="M000159-source">
133
133
  <pre>
134
134
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 128</span>
135
135
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
@@ -141,19 +141,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
141
141
  </div>
142
142
  </div>
143
143
 
144
- <div id="method-M000137" class="method-detail">
145
- <a name="M000137"></a>
144
+ <div id="method-M000161" class="method-detail">
145
+ <a name="M000161"></a>
146
146
 
147
147
  <div class="method-heading">
148
- <a href="#M000137" class="method-signature">
148
+ <a href="#M000161" class="method-signature">
149
149
  <span class="method-name">evaluate</span><span class="method-args">(context=nil)</span>
150
150
  </a>
151
151
  </div>
152
152
 
153
153
  <div class="method-description">
154
154
  <p><a class="source-toggle" href="#"
155
- onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
156
- <div class="method-source-code" id="M000137-source">
155
+ onclick="toggleCode('M000161-source');return false;">[Source]</a></p>
156
+ <div class="method-source-code" id="M000161-source">
157
157
  <pre>
158
158
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 139</span>
159
159
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">evaluate</span>(<span class="ruby-identifier">context</span>=<span class="ruby-keyword kw">nil</span>)
@@ -172,19 +172,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
172
172
  </div>
173
173
  </div>
174
174
 
175
- <div id="method-M000136" class="method-detail">
176
- <a name="M000136"></a>
175
+ <div id="method-M000160" class="method-detail">
176
+ <a name="M000160"></a>
177
177
 
178
178
  <div class="method-heading">
179
- <a href="#M000136" class="method-signature">
179
+ <a href="#M000160" class="method-signature">
180
180
  <span class="method-name">print</span><span class="method-args">(*args)</span>
181
181
  </a>
182
182
  </div>
183
183
 
184
184
  <div class="method-description">
185
185
  <p><a class="source-toggle" href="#"
186
- onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
187
- <div class="method-source-code" id="M000136-source">
186
+ onclick="toggleCode('M000160-source');return false;">[Source]</a></p>
187
+ <div class="method-source-code" id="M000160-source">
188
188
  <pre>
189
189
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 133</span>
190
190
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
@@ -89,11 +89,11 @@ this is only for <a href="Eruby.html">Eruby</a>.
89
89
  <h3 class="section-bar">Methods</h3>
90
90
 
91
91
  <div class="name-list">
92
- <a href="#M000099">add_expr_escaped</a>&nbsp;&nbsp;
93
- <a href="#M000098">add_expr_literal</a>&nbsp;&nbsp;
94
- <a href="#M000100">add_postamble</a>&nbsp;&nbsp;
95
- <a href="#M000096">add_preamble</a>&nbsp;&nbsp;
96
- <a href="#M000097">add_text</a>&nbsp;&nbsp;
92
+ <a href="#M000123">add_expr_escaped</a>&nbsp;&nbsp;
93
+ <a href="#M000122">add_expr_literal</a>&nbsp;&nbsp;
94
+ <a href="#M000124">add_postamble</a>&nbsp;&nbsp;
95
+ <a href="#M000120">add_preamble</a>&nbsp;&nbsp;
96
+ <a href="#M000121">add_text</a>&nbsp;&nbsp;
97
97
  </div>
98
98
  </div>
99
99
 
@@ -115,19 +115,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
115
115
  <div id="methods">
116
116
  <h3 class="section-bar">Public Instance methods</h3>
117
117
 
118
- <div id="method-M000099" class="method-detail">
119
- <a name="M000099"></a>
118
+ <div id="method-M000123" class="method-detail">
119
+ <a name="M000123"></a>
120
120
 
121
121
  <div class="method-heading">
122
- <a href="#M000099" class="method-signature">
122
+ <a href="#M000123" class="method-signature">
123
123
  <span class="method-name">add_expr_escaped</span><span class="method-args">(src, code)</span>
124
124
  </a>
125
125
  </div>
126
126
 
127
127
  <div class="method-description">
128
128
  <p><a class="source-toggle" href="#"
129
- onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
130
- <div class="method-source-code" id="M000099-source">
129
+ onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
130
+ <div class="method-source-code" id="M000123-source">
131
131
  <pre>
132
132
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 103</span>
133
133
  <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>)
@@ -138,19 +138,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
138
138
  </div>
139
139
  </div>
140
140
 
141
- <div id="method-M000098" class="method-detail">
142
- <a name="M000098"></a>
141
+ <div id="method-M000122" class="method-detail">
142
+ <a name="M000122"></a>
143
143
 
144
144
  <div class="method-heading">
145
- <a href="#M000098" class="method-signature">
145
+ <a href="#M000122" class="method-signature">
146
146
  <span class="method-name">add_expr_literal</span><span class="method-args">(src, code)</span>
147
147
  </a>
148
148
  </div>
149
149
 
150
150
  <div class="method-description">
151
151
  <p><a class="source-toggle" href="#"
152
- onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
153
- <div class="method-source-code" id="M000098-source">
152
+ onclick="toggleCode('M000122-source');return false;">[Source]</a></p>
153
+ <div class="method-source-code" id="M000122-source">
154
154
  <pre>
155
155
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 99</span>
156
156
  <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>)
@@ -161,19 +161,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
161
161
  </div>
162
162
  </div>
163
163
 
164
- <div id="method-M000100" class="method-detail">
165
- <a name="M000100"></a>
164
+ <div id="method-M000124" class="method-detail">
165
+ <a name="M000124"></a>
166
166
 
167
167
  <div class="method-heading">
168
- <a href="#M000100" class="method-signature">
168
+ <a href="#M000124" class="method-signature">
169
169
  <span class="method-name">add_postamble</span><span class="method-args">(src)</span>
170
170
  </a>
171
171
  </div>
172
172
 
173
173
  <div class="method-description">
174
174
  <p><a class="source-toggle" href="#"
175
- onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
176
- <div class="method-source-code" id="M000100-source">
175
+ onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
176
+ <div class="method-source-code" id="M000124-source">
177
177
  <pre>
178
178
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 107</span>
179
179
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
@@ -184,19 +184,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
184
184
  </div>
185
185
  </div>
186
186
 
187
- <div id="method-M000096" class="method-detail">
188
- <a name="M000096"></a>
187
+ <div id="method-M000120" class="method-detail">
188
+ <a name="M000120"></a>
189
189
 
190
190
  <div class="method-heading">
191
- <a href="#M000096" class="method-signature">
191
+ <a href="#M000120" class="method-signature">
192
192
  <span class="method-name">add_preamble</span><span class="method-args">(src)</span>
193
193
  </a>
194
194
  </div>
195
195
 
196
196
  <div class="method-description">
197
197
  <p><a class="source-toggle" href="#"
198
- onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
199
- <div class="method-source-code" id="M000096-source">
198
+ onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
199
+ <div class="method-source-code" id="M000120-source">
200
200
  <pre>
201
201
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 92</span>
202
202
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
@@ -206,19 +206,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
206
206
  </div>
207
207
  </div>
208
208
 
209
- <div id="method-M000097" class="method-detail">
210
- <a name="M000097"></a>
209
+ <div id="method-M000121" class="method-detail">
210
+ <a name="M000121"></a>
211
211
 
212
212
  <div class="method-heading">
213
- <a href="#M000097" class="method-signature">
213
+ <a href="#M000121" class="method-signature">
214
214
  <span class="method-name">add_text</span><span class="method-args">(src, text)</span>
215
215
  </a>
216
216
  </div>
217
217
 
218
218
  <div class="method-description">
219
219
  <p><a class="source-toggle" href="#"
220
- onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
221
- <div class="method-source-code" id="M000097-source">
220
+ onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
221
+ <div class="method-source-code" id="M000121-source">
222
222
  <pre>
223
223
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 95</span>
224
224
  <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>)