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
@@ -119,8 +119,8 @@ this is language independent.
119
119
  <h3 class="section-bar">Methods</h3>
120
120
 
121
121
  <div class="name-list">
122
- <a href="#M000134">add_text</a>&nbsp;&nbsp;
123
- <a href="#M000133">new</a>&nbsp;&nbsp;
122
+ <a href="#M000158">add_text</a>&nbsp;&nbsp;
123
+ <a href="#M000157">new</a>&nbsp;&nbsp;
124
124
  </div>
125
125
  </div>
126
126
 
@@ -142,19 +142,19 @@ this is language independent.
142
142
  <div id="methods">
143
143
  <h3 class="section-bar">Public Class methods</h3>
144
144
 
145
- <div id="method-M000133" class="method-detail">
146
- <a name="M000133"></a>
145
+ <div id="method-M000157" class="method-detail">
146
+ <a name="M000157"></a>
147
147
 
148
148
  <div class="method-heading">
149
- <a href="#M000133" class="method-signature">
149
+ <a href="#M000157" class="method-signature">
150
150
  <span class="method-name">new</span><span class="method-args">(input, properties={})</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('M000133-source');return false;">[Source]</a></p>
157
- <div class="method-source-code" id="M000133-source">
156
+ onclick="toggleCode('M000157-source');return false;">[Source]</a></p>
157
+ <div class="method-source-code" id="M000157-source">
158
158
  <pre>
159
159
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 408</span>
160
160
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">input</span>, <span class="ruby-identifier">properties</span>={})
@@ -168,19 +168,19 @@ this is language independent.
168
168
 
169
169
  <h3 class="section-bar">Public Instance methods</h3>
170
170
 
171
- <div id="method-M000134" class="method-detail">
172
- <a name="M000134"></a>
171
+ <div id="method-M000158" class="method-detail">
172
+ <a name="M000158"></a>
173
173
 
174
174
  <div class="method-heading">
175
- <a href="#M000134" class="method-signature">
175
+ <a href="#M000158" class="method-signature">
176
176
  <span class="method-name">add_text</span><span class="method-args">(src, text)</span>
177
177
  </a>
178
178
  </div>
179
179
 
180
180
  <div class="method-description">
181
181
  <p><a class="source-toggle" href="#"
182
- onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
183
- <div class="method-source-code" id="M000134-source">
182
+ onclick="toggleCode('M000158-source');return false;">[Source]</a></p>
183
+ <div class="method-source-code" id="M000158-source">
184
184
  <pre>
185
185
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 420</span>
186
186
  <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,16 +80,16 @@
80
80
  <h3 class="section-bar">Methods</h3>
81
81
 
82
82
  <div class="name-list">
83
- <a href="#M000131">add_expr_debug</a>&nbsp;&nbsp;
84
- <a href="#M000130">add_expr_escaped</a>&nbsp;&nbsp;
85
- <a href="#M000129">add_expr_literal</a>&nbsp;&nbsp;
86
- <a href="#M000132">add_postamble</a>&nbsp;&nbsp;
87
- <a href="#M000124">add_preamble</a>&nbsp;&nbsp;
88
- <a href="#M000128">add_stmt</a>&nbsp;&nbsp;
89
- <a href="#M000127">add_text</a>&nbsp;&nbsp;
90
- <a href="#M000125">escape_text</a>&nbsp;&nbsp;
91
- <a href="#M000126">escaped_expr</a>&nbsp;&nbsp;
92
- <a href="#M000123">init_generator</a>&nbsp;&nbsp;
83
+ <a href="#M000155">add_expr_debug</a>&nbsp;&nbsp;
84
+ <a href="#M000154">add_expr_escaped</a>&nbsp;&nbsp;
85
+ <a href="#M000153">add_expr_literal</a>&nbsp;&nbsp;
86
+ <a href="#M000156">add_postamble</a>&nbsp;&nbsp;
87
+ <a href="#M000148">add_preamble</a>&nbsp;&nbsp;
88
+ <a href="#M000152">add_stmt</a>&nbsp;&nbsp;
89
+ <a href="#M000151">add_text</a>&nbsp;&nbsp;
90
+ <a href="#M000149">escape_text</a>&nbsp;&nbsp;
91
+ <a href="#M000150">escaped_expr</a>&nbsp;&nbsp;
92
+ <a href="#M000147">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-M000131" class="method-detail">
122
- <a name="M000131"></a>
121
+ <div id="method-M000155" class="method-detail">
122
+ <a name="M000155"></a>
123
123
 
124
124
  <div class="method-heading">
125
- <a href="#M000131" class="method-signature">
125
+ <a href="#M000155" 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('M000131-source');return false;">[Source]</a></p>
133
- <div class="method-source-code" id="M000131-source">
132
+ onclick="toggleCode('M000155-source');return false;">[Source]</a></p>
133
+ <div class="method-source-code" id="M000155-source">
134
134
  <pre>
135
135
  <span class="ruby-comment cmt"># File erubis/engine/ec.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>)
@@ -147,19 +147,19 @@
147
147
  </div>
148
148
  </div>
149
149
 
150
- <div id="method-M000130" class="method-detail">
151
- <a name="M000130"></a>
150
+ <div id="method-M000154" class="method-detail">
151
+ <a name="M000154"></a>
152
152
 
153
153
  <div class="method-heading">
154
- <a href="#M000130" class="method-signature">
154
+ <a href="#M000154" class="method-signature">
155
155
  <span class="method-name">add_expr_escaped</span><span class="method-args">(src, code)</span>
156
156
  </a>
157
157
  </div>
158
158
 
159
159
  <div class="method-description">
160
160
  <p><a class="source-toggle" href="#"
161
- onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
162
- <div class="method-source-code" id="M000130-source">
161
+ onclick="toggleCode('M000154-source');return false;">[Source]</a></p>
162
+ <div class="method-source-code" id="M000154-source">
163
163
  <pre>
164
164
  <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 68</span>
165
165
  <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>)
@@ -171,19 +171,19 @@
171
171
  </div>
172
172
  </div>
173
173
 
174
- <div id="method-M000129" class="method-detail">
175
- <a name="M000129"></a>
174
+ <div id="method-M000153" class="method-detail">
175
+ <a name="M000153"></a>
176
176
 
177
177
  <div class="method-heading">
178
- <a href="#M000129" class="method-signature">
178
+ <a href="#M000153" class="method-signature">
179
179
  <span class="method-name">add_expr_literal</span><span class="method-args">(src, code)</span>
180
180
  </a>
181
181
  </div>
182
182
 
183
183
  <div class="method-description">
184
184
  <p><a class="source-toggle" href="#"
185
- onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
186
- <div class="method-source-code" id="M000129-source">
185
+ onclick="toggleCode('M000153-source');return false;">[Source]</a></p>
186
+ <div class="method-source-code" id="M000153-source">
187
187
  <pre>
188
188
  <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 63</span>
189
189
  <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>)
@@ -195,19 +195,19 @@
195
195
  </div>
196
196
  </div>
197
197
 
198
- <div id="method-M000132" class="method-detail">
199
- <a name="M000132"></a>
198
+ <div id="method-M000156" class="method-detail">
199
+ <a name="M000156"></a>
200
200
 
201
201
  <div class="method-heading">
202
- <a href="#M000132" class="method-signature">
202
+ <a href="#M000156" class="method-signature">
203
203
  <span class="method-name">add_postamble</span><span class="method-args">(src)</span>
204
204
  </a>
205
205
  </div>
206
206
 
207
207
  <div class="method-description">
208
208
  <p><a class="source-toggle" href="#"
209
- onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
210
- <div class="method-source-code" id="M000132-source">
209
+ onclick="toggleCode('M000156-source');return false;">[Source]</a></p>
210
+ <div class="method-source-code" id="M000156-source">
211
211
  <pre>
212
212
  <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 83</span>
213
213
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
@@ -218,19 +218,19 @@
218
218
  </div>
219
219
  </div>
220
220
 
221
- <div id="method-M000124" class="method-detail">
222
- <a name="M000124"></a>
221
+ <div id="method-M000148" class="method-detail">
222
+ <a name="M000148"></a>
223
223
 
224
224
  <div class="method-heading">
225
- <a href="#M000124" class="method-signature">
225
+ <a href="#M000148" class="method-signature">
226
226
  <span class="method-name">add_preamble</span><span class="method-args">(src)</span>
227
227
  </a>
228
228
  </div>
229
229
 
230
230
  <div class="method-description">
231
231
  <p><a class="source-toggle" href="#"
232
- onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
233
- <div class="method-source-code" id="M000124-source">
232
+ onclick="toggleCode('M000148-source');return false;">[Source]</a></p>
233
+ <div class="method-source-code" id="M000148-source">
234
234
  <pre>
235
235
  <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 31</span>
236
236
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
@@ -241,19 +241,19 @@
241
241
  </div>
242
242
  </div>
243
243
 
244
- <div id="method-M000128" class="method-detail">
245
- <a name="M000128"></a>
244
+ <div id="method-M000152" class="method-detail">
245
+ <a name="M000152"></a>
246
246
 
247
247
  <div class="method-heading">
248
- <a href="#M000128" class="method-signature">
248
+ <a href="#M000152" class="method-signature">
249
249
  <span class="method-name">add_stmt</span><span class="method-args">(src, code)</span>
250
250
  </a>
251
251
  </div>
252
252
 
253
253
  <div class="method-description">
254
254
  <p><a class="source-toggle" href="#"
255
- onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
256
- <div class="method-source-code" id="M000128-source">
255
+ onclick="toggleCode('M000152-source');return false;">[Source]</a></p>
256
+ <div class="method-source-code" id="M000152-source">
257
257
  <pre>
258
258
  <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 59</span>
259
259
  <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>)
@@ -264,19 +264,19 @@
264
264
  </div>
265
265
  </div>
266
266
 
267
- <div id="method-M000127" class="method-detail">
268
- <a name="M000127"></a>
267
+ <div id="method-M000151" class="method-detail">
268
+ <a name="M000151"></a>
269
269
 
270
270
  <div class="method-heading">
271
- <a href="#M000127" class="method-signature">
271
+ <a href="#M000151" class="method-signature">
272
272
  <span class="method-name">add_text</span><span class="method-args">(src, text)</span>
273
273
  </a>
274
274
  </div>
275
275
 
276
276
  <div class="method-description">
277
277
  <p><a class="source-toggle" href="#"
278
- onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
279
- <div class="method-source-code" id="M000127-source">
278
+ onclick="toggleCode('M000151-source');return false;">[Source]</a></p>
279
+ <div class="method-source-code" id="M000151-source">
280
280
  <pre>
281
281
  <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 45</span>
282
282
  <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>)
@@ -297,19 +297,19 @@
297
297
  </div>
298
298
  </div>
299
299
 
300
- <div id="method-M000125" class="method-detail">
301
- <a name="M000125"></a>
300
+ <div id="method-M000149" class="method-detail">
301
+ <a name="M000149"></a>
302
302
 
303
303
  <div class="method-heading">
304
- <a href="#M000125" class="method-signature">
304
+ <a href="#M000149" class="method-signature">
305
305
  <span class="method-name">escape_text</span><span class="method-args">(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('M000125-source');return false;">[Source]</a></p>
312
- <div class="method-source-code" id="M000125-source">
311
+ onclick="toggleCode('M000149-source');return false;">[Source]</a></p>
312
+ <div class="method-source-code" id="M000149-source">
313
313
  <pre>
314
314
  <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 35</span>
315
315
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>)
@@ -322,19 +322,19 @@
322
322
  </div>
323
323
  </div>
324
324
 
325
- <div id="method-M000126" class="method-detail">
326
- <a name="M000126"></a>
325
+ <div id="method-M000150" class="method-detail">
326
+ <a name="M000150"></a>
327
327
 
328
328
  <div class="method-heading">
329
- <a href="#M000126" class="method-signature">
329
+ <a href="#M000150" class="method-signature">
330
330
  <span class="method-name">escaped_expr</span><span class="method-args">(code)</span>
331
331
  </a>
332
332
  </div>
333
333
 
334
334
  <div class="method-description">
335
335
  <p><a class="source-toggle" href="#"
336
- onclick="toggleCode('M000126-source');return false;">[Source]</a></p>
337
- <div class="method-source-code" id="M000126-source">
336
+ onclick="toggleCode('M000150-source');return false;">[Source]</a></p>
337
+ <div class="method-source-code" id="M000150-source">
338
338
  <pre>
339
339
  <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 41</span>
340
340
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escaped_expr</span>(<span class="ruby-identifier">code</span>)
@@ -345,19 +345,19 @@
345
345
  </div>
346
346
  </div>
347
347
 
348
- <div id="method-M000123" class="method-detail">
349
- <a name="M000123"></a>
348
+ <div id="method-M000147" class="method-detail">
349
+ <a name="M000147"></a>
350
350
 
351
351
  <div class="method-heading">
352
- <a href="#M000123" class="method-signature">
352
+ <a href="#M000147" class="method-signature">
353
353
  <span class="method-name">init_generator</span><span class="method-args">(properties={})</span>
354
354
  </a>
355
355
  </div>
356
356
 
357
357
  <div class="method-description">
358
358
  <p><a class="source-toggle" href="#"
359
- onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
360
- <div class="method-source-code" id="M000123-source">
359
+ onclick="toggleCode('M000147-source');return false;">[Source]</a></p>
360
+ <div class="method-source-code" id="M000147-source">
361
361
  <pre>
362
362
  <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 24</span>
363
363
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_generator</span>(<span class="ruby-identifier">properties</span>={})
@@ -112,13 +112,13 @@ ex.
112
112
  <h3 class="section-bar">Methods</h3>
113
113
 
114
114
  <div class="name-list">
115
- <a href="#M000183">[]</a>&nbsp;&nbsp;
116
- <a href="#M000184">[]=</a>&nbsp;&nbsp;
117
- <a href="#M000186">each</a>&nbsp;&nbsp;
118
- <a href="#M000185">keys</a>&nbsp;&nbsp;
119
- <a href="#M000182">new</a>&nbsp;&nbsp;
120
- <a href="#M000187">to_hash</a>&nbsp;&nbsp;
121
- <a href="#M000188">update</a>&nbsp;&nbsp;
115
+ <a href="#M000207">[]</a>&nbsp;&nbsp;
116
+ <a href="#M000208">[]=</a>&nbsp;&nbsp;
117
+ <a href="#M000210">each</a>&nbsp;&nbsp;
118
+ <a href="#M000209">keys</a>&nbsp;&nbsp;
119
+ <a href="#M000206">new</a>&nbsp;&nbsp;
120
+ <a href="#M000211">to_hash</a>&nbsp;&nbsp;
121
+ <a href="#M000212">update</a>&nbsp;&nbsp;
122
122
  </div>
123
123
  </div>
124
124
 
@@ -147,19 +147,19 @@ ex.
147
147
  <div id="methods">
148
148
  <h3 class="section-bar">Public Class methods</h3>
149
149
 
150
- <div id="method-M000182" class="method-detail">
151
- <a name="M000182"></a>
150
+ <div id="method-M000206" class="method-detail">
151
+ <a name="M000206"></a>
152
152
 
153
153
  <div class="method-heading">
154
- <a href="#M000182" class="method-signature">
154
+ <a href="#M000206" class="method-signature">
155
155
  <span class="method-name">new</span><span class="method-args">(hash=nil)</span>
156
156
  </a>
157
157
  </div>
158
158
 
159
159
  <div class="method-description">
160
160
  <p><a class="source-toggle" href="#"
161
- onclick="toggleCode('M000182-source');return false;">[Source]</a></p>
162
- <div class="method-source-code" id="M000182-source">
161
+ onclick="toggleCode('M000206-source');return false;">[Source]</a></p>
162
+ <div class="method-source-code" id="M000206-source">
163
163
  <pre>
164
164
  <span class="ruby-comment cmt"># File erubis/context.rb, line 34</span>
165
165
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">hash</span>=<span class="ruby-keyword kw">nil</span>)
@@ -174,19 +174,19 @@ ex.
174
174
 
175
175
  <h3 class="section-bar">Public Instance methods</h3>
176
176
 
177
- <div id="method-M000183" class="method-detail">
178
- <a name="M000183"></a>
177
+ <div id="method-M000207" class="method-detail">
178
+ <a name="M000207"></a>
179
179
 
180
180
  <div class="method-heading">
181
- <a href="#M000183" class="method-signature">
181
+ <a href="#M000207" class="method-signature">
182
182
  <span class="method-name">[]</span><span class="method-args">(key)</span>
183
183
  </a>
184
184
  </div>
185
185
 
186
186
  <div class="method-description">
187
187
  <p><a class="source-toggle" href="#"
188
- onclick="toggleCode('M000183-source');return false;">[Source]</a></p>
189
- <div class="method-source-code" id="M000183-source">
188
+ onclick="toggleCode('M000207-source');return false;">[Source]</a></p>
189
+ <div class="method-source-code" id="M000207-source">
190
190
  <pre>
191
191
  <span class="ruby-comment cmt"># File erubis/context.rb, line 40</span>
192
192
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
@@ -197,19 +197,19 @@ ex.
197
197
  </div>
198
198
  </div>
199
199
 
200
- <div id="method-M000184" class="method-detail">
201
- <a name="M000184"></a>
200
+ <div id="method-M000208" class="method-detail">
201
+ <a name="M000208"></a>
202
202
 
203
203
  <div class="method-heading">
204
- <a href="#M000184" class="method-signature">
204
+ <a href="#M000208" class="method-signature">
205
205
  <span class="method-name">[]=</span><span class="method-args">(key, value)</span>
206
206
  </a>
207
207
  </div>
208
208
 
209
209
  <div class="method-description">
210
210
  <p><a class="source-toggle" href="#"
211
- onclick="toggleCode('M000184-source');return false;">[Source]</a></p>
212
- <div class="method-source-code" id="M000184-source">
211
+ onclick="toggleCode('M000208-source');return false;">[Source]</a></p>
212
+ <div class="method-source-code" id="M000208-source">
213
213
  <pre>
214
214
  <span class="ruby-comment cmt"># File erubis/context.rb, line 44</span>
215
215
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
@@ -220,19 +220,19 @@ ex.
220
220
  </div>
221
221
  </div>
222
222
 
223
- <div id="method-M000186" class="method-detail">
224
- <a name="M000186"></a>
223
+ <div id="method-M000210" class="method-detail">
224
+ <a name="M000210"></a>
225
225
 
226
226
  <div class="method-heading">
227
- <a href="#M000186" class="method-signature">
227
+ <a href="#M000210" class="method-signature">
228
228
  <span class="method-name">each</span><span class="method-args">() {|key, value| ...}</span>
229
229
  </a>
230
230
  </div>
231
231
 
232
232
  <div class="method-description">
233
233
  <p><a class="source-toggle" href="#"
234
- onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
235
- <div class="method-source-code" id="M000186-source">
234
+ onclick="toggleCode('M000210-source');return false;">[Source]</a></p>
235
+ <div class="method-source-code" id="M000210-source">
236
236
  <pre>
237
237
  <span class="ruby-comment cmt"># File erubis/context.rb, line 52</span>
238
238
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>
@@ -247,19 +247,19 @@ ex.
247
247
  </div>
248
248
  </div>
249
249
 
250
- <div id="method-M000185" class="method-detail">
251
- <a name="M000185"></a>
250
+ <div id="method-M000209" class="method-detail">
251
+ <a name="M000209"></a>
252
252
 
253
253
  <div class="method-heading">
254
- <a href="#M000185" class="method-signature">
254
+ <a href="#M000209" class="method-signature">
255
255
  <span class="method-name">keys</span><span class="method-args">()</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('M000185-source');return false;">[Source]</a></p>
262
- <div class="method-source-code" id="M000185-source">
261
+ onclick="toggleCode('M000209-source');return false;">[Source]</a></p>
262
+ <div class="method-source-code" id="M000209-source">
263
263
  <pre>
264
264
  <span class="ruby-comment cmt"># File erubis/context.rb, line 48</span>
265
265
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">keys</span>
@@ -270,19 +270,19 @@ ex.
270
270
  </div>
271
271
  </div>
272
272
 
273
- <div id="method-M000187" class="method-detail">
274
- <a name="M000187"></a>
273
+ <div id="method-M000211" class="method-detail">
274
+ <a name="M000211"></a>
275
275
 
276
276
  <div class="method-heading">
277
- <a href="#M000187" class="method-signature">
277
+ <a href="#M000211" class="method-signature">
278
278
  <span class="method-name">to_hash</span><span class="method-args">()</span>
279
279
  </a>
280
280
  </div>
281
281
 
282
282
  <div class="method-description">
283
283
  <p><a class="source-toggle" href="#"
284
- onclick="toggleCode('M000187-source');return false;">[Source]</a></p>
285
- <div class="method-source-code" id="M000187-source">
284
+ onclick="toggleCode('M000211-source');return false;">[Source]</a></p>
285
+ <div class="method-source-code" id="M000211-source">
286
286
  <pre>
287
287
  <span class="ruby-comment cmt"># File erubis/context.rb, line 60</span>
288
288
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_hash</span>
@@ -295,19 +295,19 @@ ex.
295
295
  </div>
296
296
  </div>
297
297
 
298
- <div id="method-M000188" class="method-detail">
299
- <a name="M000188"></a>
298
+ <div id="method-M000212" class="method-detail">
299
+ <a name="M000212"></a>
300
300
 
301
301
  <div class="method-heading">
302
- <a href="#M000188" class="method-signature">
302
+ <a href="#M000212" class="method-signature">
303
303
  <span class="method-name">update</span><span class="method-args">(context_or_hash)</span>
304
304
  </a>
305
305
  </div>
306
306
 
307
307
  <div class="method-description">
308
308
  <p><a class="source-toggle" href="#"
309
- onclick="toggleCode('M000188-source');return false;">[Source]</a></p>
310
- <div class="method-source-code" id="M000188-source">
309
+ onclick="toggleCode('M000212-source');return false;">[Source]</a></p>
310
+ <div class="method-source-code" id="M000212-source">
311
311
  <pre>
312
312
  <span class="ruby-comment cmt"># File erubis/context.rb, line 66</span>
313
313
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>(<span class="ruby-identifier">context_or_hash</span>)