erubis 2.6.2 → 2.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +16 -5
- data/MIT-LICENSE +1 -1
- data/README.txt +2 -2
- data/benchmark/bench.rb +2 -2
- data/bin/erubis +4 -4
- data/contrib/erubis +3349 -5
- data/contrib/inline-require +2 -2
- data/doc-api/classes/Erubis.html +1 -1
- data/doc-api/classes/Erubis/ArrayEnhancer.html +12 -12
- data/doc-api/classes/Erubis/Basic/Converter.html +24 -24
- data/doc-api/classes/Erubis/BiPatternEnhancer.html +12 -12
- data/doc-api/classes/Erubis/CGenerator.html +60 -60
- data/doc-api/classes/Erubis/Converter.html +27 -27
- data/doc-api/classes/Erubis/DeleteIndentEnhancer.html +6 -6
- data/doc-api/classes/Erubis/ErboutEnhancer.html +12 -12
- data/doc-api/classes/Erubis/EscapeEnhancer.html +6 -6
- data/doc-api/classes/Erubis/Evaluator.html +19 -19
- data/doc-api/classes/Erubis/HeaderFooterEnhancer.html +12 -12
- data/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +150 -150
- data/doc-api/classes/Erubis/Helpers/RailsHelper.html +49 -49
- data/doc-api/classes/Erubis/Helpers/RailsHelper/TemplateConverter.html +12 -12
- data/doc-api/classes/Erubis/InterpolationEnhancer.html +30 -30
- data/doc-api/classes/Erubis/JavaGenerator.html +54 -54
- data/doc-api/classes/Erubis/JavascriptGenerator.html +60 -60
- data/doc-api/classes/Erubis/NoTextEnhancer.html +6 -6
- data/doc-api/classes/Erubis/OptimizedGenerator.html +72 -72
- data/doc-api/classes/Erubis/PI/Ec.html +6 -6
- data/doc-api/classes/Erubis/PI/Ejavascript.html +6 -6
- data/doc-api/classes/Erubis/PI/Eperl.html +6 -6
- data/doc-api/classes/Erubis/PI/Ephp.html +6 -6
- data/doc-api/classes/Erubis/PI/Eruby.html +6 -6
- data/doc-api/classes/Erubis/PI/Escheme.html +6 -6
- data/doc-api/classes/Erubis/PI/TinyEruby.html +24 -24
- data/doc-api/classes/Erubis/PercentLineEnhancer.html +6 -6
- data/doc-api/classes/Erubis/PerlGenerator.html +54 -54
- data/doc-api/classes/Erubis/PhpGenerator.html +54 -54
- data/doc-api/classes/Erubis/PreprocessingEruby.html +12 -12
- data/doc-api/classes/Erubis/PreprocessingHelper.html +22 -22
- data/doc-api/classes/Erubis/PrintEnabledEnhancer.html +20 -20
- data/doc-api/classes/Erubis/PrintOutEnhancer.html +30 -30
- data/doc-api/classes/Erubis/RubyEvaluator.html +18 -18
- data/doc-api/classes/Erubis/RubyGenerator.html +48 -48
- data/doc-api/classes/Erubis/SchemeGenerator.html +60 -60
- data/doc-api/classes/Erubis/SimplifyEnhancer.html +7 -7
- data/doc-api/classes/Erubis/StdoutEnhancer.html +12 -12
- data/doc-api/classes/Erubis/StringBufferEnhancer.html +12 -12
- data/doc-api/classes/Erubis/TinyEruby.html +24 -24
- data/doc-api/classes/Erubis/XmlHelper.html +30 -30
- data/doc-api/created.rid +1 -1
- data/doc-api/files/README_txt.html +3 -3
- data/doc-api/files/erubis/context_rb.html +1 -1
- data/doc-api/files/erubis/converter_rb.html +1 -1
- data/doc-api/files/erubis/engine/ec_rb.html +1 -1
- data/doc-api/files/erubis/engine/ejava_rb.html +1 -1
- data/doc-api/files/erubis/engine/ejavascript_rb.html +1 -1
- data/doc-api/files/erubis/engine/enhanced_rb.html +1 -1
- data/doc-api/files/erubis/engine/eperl_rb.html +1 -1
- data/doc-api/files/erubis/engine/ephp_rb.html +1 -1
- data/doc-api/files/erubis/engine/eruby_rb.html +1 -1
- data/doc-api/files/erubis/engine/escheme_rb.html +1 -1
- data/doc-api/files/erubis/engine/optimized_rb.html +1 -1
- data/doc-api/files/erubis/engine_rb.html +1 -1
- data/doc-api/files/erubis/enhancer_rb.html +1 -1
- data/doc-api/files/erubis/error_rb.html +1 -1
- data/doc-api/files/erubis/evaluator_rb.html +1 -1
- data/doc-api/files/erubis/generator_rb.html +1 -1
- data/doc-api/files/erubis/helper_rb.html +1 -1
- data/doc-api/files/erubis/helpers/rails_form_helper_rb.html +1 -1
- data/doc-api/files/erubis/helpers/rails_helper_rb.html +1 -1
- data/doc-api/files/erubis/local-setting_rb.html +1 -1
- data/doc-api/files/erubis/main_rb.html +2 -2
- data/doc-api/files/erubis/preprocessing_rb.html +1 -1
- data/doc-api/files/erubis/tiny_rb.html +1 -1
- data/doc-api/files/erubis_rb.html +1 -1
- data/doc-api/fr_method_index.html +188 -188
- data/doc/users-guide.html +5 -5
- data/lib/erubis.rb +3 -3
- data/lib/erubis/context.rb +2 -2
- data/lib/erubis/converter.rb +2 -2
- data/lib/erubis/engine.rb +2 -2
- data/lib/erubis/engine/ec.rb +2 -2
- data/lib/erubis/engine/ejava.rb +2 -2
- data/lib/erubis/engine/ejavascript.rb +2 -2
- data/lib/erubis/engine/enhanced.rb +2 -2
- data/lib/erubis/engine/eperl.rb +2 -2
- data/lib/erubis/engine/ephp.rb +2 -2
- data/lib/erubis/engine/eruby.rb +2 -2
- data/lib/erubis/engine/escheme.rb +2 -2
- data/lib/erubis/engine/optimized.rb +2 -2
- data/lib/erubis/enhancer.rb +2 -2
- data/lib/erubis/error.rb +2 -2
- data/lib/erubis/evaluator.rb +2 -2
- data/lib/erubis/generator.rb +2 -2
- data/lib/erubis/helper.rb +2 -2
- data/lib/erubis/helpers/rails_form_helper.rb +2 -2
- data/lib/erubis/helpers/rails_helper.rb +2 -2
- data/lib/erubis/local-setting.rb +2 -2
- data/lib/erubis/main.rb +8 -7
- data/lib/erubis/preprocessing.rb +2 -2
- data/lib/erubis/tiny.rb +2 -2
- data/test/assert-text-equal.rb +2 -2
- data/test/data/users-guide/stderr.log +3 -0
- data/test/test-engines.rb +2 -2
- data/test/test-enhancers.rb +2 -2
- data/test/test-erubis.rb +2 -2
- data/test/test-main.rb +43 -16
- data/test/test-users-guide.rb +2 -2
- data/test/test.rb +2 -2
- data/test/testutil.rb +2 -2
- metadata +5 -10
- data/test/assert-text-equal.rbc +0 -0
- data/test/hoge.rb +0 -5
- data/test/test-engines.rbc +0 -0
- data/test/test-erubis.rbc +0 -0
- data/test/test-users-guide.rbc +0 -0
- data/test/test.rbc +0 -0
- data/test/testutil.rbc +0 -0
@@ -80,15 +80,15 @@
|
|
80
80
|
<h3 class="section-bar">Methods</h3>
|
81
81
|
|
82
82
|
<div class="name-list">
|
83
|
-
<a href="#
|
84
|
-
<a href="#
|
85
|
-
<a href="#
|
86
|
-
<a href="#
|
87
|
-
<a href="#
|
88
|
-
<a href="#
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
83
|
+
<a href="#M000122">add_expr_debug</a>
|
84
|
+
<a href="#M000121">add_expr_escaped</a>
|
85
|
+
<a href="#M000120">add_expr_literal</a>
|
86
|
+
<a href="#M000124">add_postamble</a>
|
87
|
+
<a href="#M000117">add_preamble</a>
|
88
|
+
<a href="#M000123">add_stmt</a>
|
89
|
+
<a href="#M000119">add_text</a>
|
90
|
+
<a href="#M000118">escape_text</a>
|
91
|
+
<a href="#M000116">init_generator</a>
|
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-
|
121
|
-
<a name="
|
120
|
+
<div id="method-M000122" class="method-detail">
|
121
|
+
<a name="M000122"></a>
|
122
122
|
|
123
123
|
<div class="method-heading">
|
124
|
-
<a href="#
|
124
|
+
<a href="#M000122" 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('
|
132
|
-
<div class="method-source-code" id="
|
131
|
+
onclick="toggleCode('M000122-source');return false;">[Source]</a></p>
|
132
|
+
<div class="method-source-code" id="M000122-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-
|
146
|
-
<a name="
|
145
|
+
<div id="method-M000121" class="method-detail">
|
146
|
+
<a name="M000121"></a>
|
147
147
|
|
148
148
|
<div class="method-heading">
|
149
|
-
<a href="#
|
149
|
+
<a href="#M000121" 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('
|
157
|
-
<div class="method-source-code" id="
|
156
|
+
onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
|
157
|
+
<div class="method-source-code" id="M000121-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-
|
169
|
-
<a name="
|
168
|
+
<div id="method-M000120" class="method-detail">
|
169
|
+
<a name="M000120"></a>
|
170
170
|
|
171
171
|
<div class="method-heading">
|
172
|
-
<a href="#
|
172
|
+
<a href="#M000120" 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('
|
180
|
-
<div class="method-source-code" id="
|
179
|
+
onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
|
180
|
+
<div class="method-source-code" id="M000120-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-
|
193
|
-
<a name="
|
192
|
+
<div id="method-M000124" class="method-detail">
|
193
|
+
<a name="M000124"></a>
|
194
194
|
|
195
195
|
<div class="method-heading">
|
196
|
-
<a href="#
|
196
|
+
<a href="#M000124" 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('
|
204
|
-
<div class="method-source-code" id="
|
203
|
+
onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
|
204
|
+
<div class="method-source-code" id="M000124-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-
|
216
|
-
<a name="
|
215
|
+
<div id="method-M000117" class="method-detail">
|
216
|
+
<a name="M000117"></a>
|
217
217
|
|
218
218
|
<div class="method-heading">
|
219
|
-
<a href="#
|
219
|
+
<a href="#M000117" 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('
|
227
|
-
<div class="method-source-code" id="
|
226
|
+
onclick="toggleCode('M000117-source');return false;">[Source]</a></p>
|
227
|
+
<div class="method-source-code" id="M000117-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-
|
239
|
-
<a name="
|
238
|
+
<div id="method-M000123" class="method-detail">
|
239
|
+
<a name="M000123"></a>
|
240
240
|
|
241
241
|
<div class="method-heading">
|
242
|
-
<a href="#
|
242
|
+
<a href="#M000123" 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('
|
250
|
-
<div class="method-source-code" id="
|
249
|
+
onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
|
250
|
+
<div class="method-source-code" id="M000123-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-
|
269
|
-
<a name="
|
268
|
+
<div id="method-M000119" class="method-detail">
|
269
|
+
<a name="M000119"></a>
|
270
270
|
|
271
271
|
<div class="method-heading">
|
272
|
-
<a href="#
|
272
|
+
<a href="#M000119" 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('
|
280
|
-
<div class="method-source-code" id="
|
279
|
+
onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
|
280
|
+
<div class="method-source-code" id="M000119-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-
|
292
|
-
<a name="
|
291
|
+
<div id="method-M000118" class="method-detail">
|
292
|
+
<a name="M000118"></a>
|
293
293
|
|
294
294
|
<div class="method-heading">
|
295
|
-
<a href="#
|
295
|
+
<a href="#M000118" 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('
|
303
|
-
<div class="method-source-code" id="
|
302
|
+
onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
|
303
|
+
<div class="method-source-code" id="M000118-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-
|
315
|
-
<a name="
|
314
|
+
<div id="method-M000116" class="method-detail">
|
315
|
+
<a name="M000116"></a>
|
316
316
|
|
317
317
|
<div class="method-heading">
|
318
|
-
<a href="#
|
318
|
+
<a href="#M000116" 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('
|
326
|
-
<div class="method-source-code" id="
|
325
|
+
onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
|
326
|
+
<div class="method-source-code" id="M000116-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>={})
|
@@ -94,8 +94,8 @@ for preprocessing
|
|
94
94
|
<h3 class="section-bar">Methods</h3>
|
95
95
|
|
96
96
|
<div class="name-list">
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
97
|
+
<a href="#M000201">add_expr_escaped</a>
|
98
|
+
<a href="#M000200">new</a>
|
99
99
|
</div>
|
100
100
|
</div>
|
101
101
|
|
@@ -117,19 +117,19 @@ for preprocessing
|
|
117
117
|
<div id="methods">
|
118
118
|
<h3 class="section-bar">Public Class methods</h3>
|
119
119
|
|
120
|
-
<div id="method-
|
121
|
-
<a name="
|
120
|
+
<div id="method-M000200" class="method-detail">
|
121
|
+
<a name="M000200"></a>
|
122
122
|
|
123
123
|
<div class="method-heading">
|
124
|
-
<a href="#
|
124
|
+
<a href="#M000200" class="method-signature">
|
125
125
|
<span class="method-name">new</span><span class="method-args">(input, params={})</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('
|
132
|
-
<div class="method-source-code" id="
|
131
|
+
onclick="toggleCode('M000200-source');return false;">[Source]</a></p>
|
132
|
+
<div class="method-source-code" id="M000200-source">
|
133
133
|
<pre>
|
134
134
|
<span class="ruby-comment cmt"># File erubis/preprocessing.rb, line 18</span>
|
135
135
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">input</span>, <span class="ruby-identifier">params</span>={})
|
@@ -145,19 +145,19 @@ for preprocessing
|
|
145
145
|
|
146
146
|
<h3 class="section-bar">Public Instance methods</h3>
|
147
147
|
|
148
|
-
<div id="method-
|
149
|
-
<a name="
|
148
|
+
<div id="method-M000201" class="method-detail">
|
149
|
+
<a name="M000201"></a>
|
150
150
|
|
151
151
|
<div class="method-heading">
|
152
|
-
<a href="#
|
152
|
+
<a href="#M000201" class="method-signature">
|
153
153
|
<span class="method-name">add_expr_escaped</span><span class="method-args">(src, code)</span>
|
154
154
|
</a>
|
155
155
|
</div>
|
156
156
|
|
157
157
|
<div class="method-description">
|
158
158
|
<p><a class="source-toggle" href="#"
|
159
|
-
onclick="toggleCode('
|
160
|
-
<div class="method-source-code" id="
|
159
|
+
onclick="toggleCode('M000201-source');return false;">[Source]</a></p>
|
160
|
+
<div class="method-source-code" id="M000201-source">
|
161
161
|
<pre>
|
162
162
|
<span class="ruby-comment cmt"># File erubis/preprocessing.rb, line 25</span>
|
163
163
|
<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>)
|
@@ -86,10 +86,10 @@ helper methods for preprocessing
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
89
|
+
<a href="#M000141">_?</a>
|
90
|
+
<a href="#M000140">_P</a>
|
91
|
+
<a href="#M000142">_decode</a>
|
92
|
+
<a href="#M000139">_p</a>
|
93
93
|
</div>
|
94
94
|
</div>
|
95
95
|
|
@@ -111,8 +111,8 @@ helper methods for preprocessing
|
|
111
111
|
<div id="methods">
|
112
112
|
<h3 class="section-bar">Public Instance methods</h3>
|
113
113
|
|
114
|
-
<div id="method-
|
115
|
-
<a name="
|
114
|
+
<div id="method-M000141" class="method-detail">
|
115
|
+
<a name="M000141"></a>
|
116
116
|
|
117
117
|
<div class="method-heading">
|
118
118
|
<span class="method-name">_?</span><span class="method-args">(arg)</span>
|
@@ -120,24 +120,24 @@ helper methods for preprocessing
|
|
120
120
|
|
121
121
|
<div class="method-description">
|
122
122
|
<p>
|
123
|
-
Alias for <a href="PreprocessingHelper.html#
|
123
|
+
Alias for <a href="PreprocessingHelper.html#M000139">_p</a>
|
124
124
|
</p>
|
125
125
|
</div>
|
126
126
|
</div>
|
127
127
|
|
128
|
-
<div id="method-
|
129
|
-
<a name="
|
128
|
+
<div id="method-M000140" class="method-detail">
|
129
|
+
<a name="M000140"></a>
|
130
130
|
|
131
131
|
<div class="method-heading">
|
132
|
-
<a href="#
|
132
|
+
<a href="#M000140" class="method-signature">
|
133
133
|
<span class="method-name">_P</span><span class="method-args">(arg)</span>
|
134
134
|
</a>
|
135
135
|
</div>
|
136
136
|
|
137
137
|
<div class="method-description">
|
138
138
|
<p><a class="source-toggle" href="#"
|
139
|
-
onclick="toggleCode('
|
140
|
-
<div class="method-source-code" id="
|
139
|
+
onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
|
140
|
+
<div class="method-source-code" id="M000140-source">
|
141
141
|
<pre>
|
142
142
|
<span class="ruby-comment cmt"># File erubis/preprocessing.rb, line 43</span>
|
143
143
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_P</span>(<span class="ruby-identifier">arg</span>)
|
@@ -148,19 +148,19 @@ Alias for <a href="PreprocessingHelper.html#M000062">_p</a>
|
|
148
148
|
</div>
|
149
149
|
</div>
|
150
150
|
|
151
|
-
<div id="method-
|
152
|
-
<a name="
|
151
|
+
<div id="method-M000142" class="method-detail">
|
152
|
+
<a name="M000142"></a>
|
153
153
|
|
154
154
|
<div class="method-heading">
|
155
|
-
<a href="#
|
155
|
+
<a href="#M000142" class="method-signature">
|
156
156
|
<span class="method-name">_decode</span><span class="method-args">(arg)</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('
|
163
|
-
<div class="method-source-code" id="
|
162
|
+
onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
|
163
|
+
<div class="method-source-code" id="M000142-source">
|
164
164
|
<pre>
|
165
165
|
<span class="ruby-comment cmt"># File erubis/preprocessing.rb, line 49</span>
|
166
166
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_decode</span>(<span class="ruby-identifier">arg</span>)
|
@@ -174,19 +174,19 @@ Alias for <a href="PreprocessingHelper.html#M000062">_p</a>
|
|
174
174
|
</div>
|
175
175
|
</div>
|
176
176
|
|
177
|
-
<div id="method-
|
178
|
-
<a name="
|
177
|
+
<div id="method-M000139" class="method-detail">
|
178
|
+
<a name="M000139"></a>
|
179
179
|
|
180
180
|
<div class="method-heading">
|
181
|
-
<a href="#
|
181
|
+
<a href="#M000139" class="method-signature">
|
182
182
|
<span class="method-name">_p</span><span class="method-args">(arg)</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('
|
189
|
-
<div class="method-source-code" id="
|
188
|
+
onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
|
189
|
+
<div class="method-source-code" id="M000139-source">
|
190
190
|
<pre>
|
191
191
|
<span class="ruby-comment cmt"># File erubis/preprocessing.rb, line 39</span>
|
192
192
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_p</span>(<span class="ruby-identifier">arg</span>)
|
@@ -74,11 +74,11 @@
|
|
74
74
|
|
75
75
|
<div id="description">
|
76
76
|
<p>
|
77
|
-
enable <a href="PrintEnabledEnhancer.html#
|
77
|
+
enable <a href="PrintEnabledEnhancer.html#M000149">print</a> function
|
78
78
|
</p>
|
79
79
|
<p>
|
80
80
|
Notice: use Eruby#evaluate() and don‘t use Eruby#result() to be
|
81
|
-
enable <a href="PrintEnabledEnhancer.html#
|
81
|
+
enable <a href="PrintEnabledEnhancer.html#M000149">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="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
96
|
+
<a href="#M000148">add_preamble</a>
|
97
|
+
<a href="#M000150">evaluate</a>
|
98
|
+
<a href="#M000149">print</a>
|
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-
|
121
|
-
<a name="
|
120
|
+
<div id="method-M000148" class="method-detail">
|
121
|
+
<a name="M000148"></a>
|
122
122
|
|
123
123
|
<div class="method-heading">
|
124
|
-
<a href="#
|
124
|
+
<a href="#M000148" 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('
|
132
|
-
<div class="method-source-code" id="
|
131
|
+
onclick="toggleCode('M000148-source');return false;">[Source]</a></p>
|
132
|
+
<div class="method-source-code" id="M000148-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-
|
145
|
-
<a name="
|
144
|
+
<div id="method-M000150" class="method-detail">
|
145
|
+
<a name="M000150"></a>
|
146
146
|
|
147
147
|
<div class="method-heading">
|
148
|
-
<a href="#
|
148
|
+
<a href="#M000150" 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('
|
156
|
-
<div class="method-source-code" id="
|
155
|
+
onclick="toggleCode('M000150-source');return false;">[Source]</a></p>
|
156
|
+
<div class="method-source-code" id="M000150-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-
|
176
|
-
<a name="
|
175
|
+
<div id="method-M000149" class="method-detail">
|
176
|
+
<a name="M000149"></a>
|
177
177
|
|
178
178
|
<div class="method-heading">
|
179
|
-
<a href="#
|
179
|
+
<a href="#M000149" 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('
|
187
|
-
<div class="method-source-code" id="
|
186
|
+
onclick="toggleCode('M000149-source');return false;">[Source]</a></p>
|
187
|
+
<div class="method-source-code" id="M000149-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>)
|