erubis 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +120 -3
- data/README.txt +1 -1
- data/benchmark/Makefile +6 -0
- data/benchmark/bench.rb +306 -0
- data/benchmark/{erubybench.yaml → bench_context.yaml} +20 -20
- data/benchmark/templates/_footer.html +4 -0
- data/benchmark/{erubybench.rhtml → templates/_header.html} +1 -34
- data/benchmark/templates/bench_erb.rhtml +29 -0
- data/benchmark/templates/bench_erubis.rhtml +29 -0
- data/benchmark/templates/bench_eruby.rhtml +29 -0
- data/bin/erubis +2 -2
- data/contrib/erubis +3 -3114
- data/contrib/erubis-run.rb +132 -0
- data/contrib/inline-require +1 -1
- data/doc-api/classes/{ERB.html → ActionView/Base/ERB.html} +3 -3
- data/doc-api/classes/Erubis.html +8 -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 +14 -14
- data/doc-api/classes/Erubis/CGenerator.html +60 -60
- data/doc-api/classes/Erubis/Context.html +42 -42
- data/doc-api/classes/Erubis/Converter.html +27 -27
- data/doc-api/classes/Erubis/DeleteIndentEnhancer.html +150 -0
- data/doc-api/classes/Erubis/DeleteIndentEruby.html +120 -0
- data/doc-api/classes/Erubis/Engine.html +31 -31
- data/doc-api/classes/Erubis/ErboutEnhancer.html +175 -0
- data/doc-api/classes/Erubis/ErboutEruby.html +120 -0
- data/doc-api/classes/Erubis/Eruby.html +5 -0
- data/doc-api/classes/Erubis/EscapeEnhancer.html +6 -6
- data/doc-api/classes/Erubis/Evaluator.html +19 -19
- data/doc-api/classes/Erubis/FastEruby.html +131 -0
- data/doc-api/classes/Erubis/HeaderFooterEnhancer.html +14 -14
- data/doc-api/classes/Erubis/Helpers/RailsHelper.html +49 -45
- data/doc-api/classes/Erubis/InterpolationEnhancer.html +304 -0
- data/doc-api/classes/Erubis/InterpolationEruby.html +120 -0
- data/doc-api/classes/Erubis/JavaGenerator.html +54 -54
- data/doc-api/classes/Erubis/JavascriptGenerator.html +60 -60
- data/doc-api/classes/Erubis/Main.html +35 -27
- data/doc-api/classes/Erubis/NoCodeEnhancer.html +5 -5
- data/doc-api/classes/Erubis/NoTextEnhancer.html +7 -7
- data/doc-api/classes/Erubis/OptimizedEruby.html +6 -6
- data/doc-api/classes/Erubis/OptimizedGenerator.html +72 -72
- data/doc-api/classes/Erubis/OptimizedXmlEruby.html +6 -6
- data/doc-api/classes/Erubis/PI/Converter.html +18 -18
- data/doc-api/classes/Erubis/PI/Ec.html +6 -6
- data/doc-api/classes/Erubis/PI/Ejava.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 +7 -7
- 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 +8 -8
- data/doc-api/classes/Erubis/PerlGenerator.html +54 -54
- data/doc-api/classes/Erubis/PhpGenerator.html +54 -54
- 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 +12 -12
- 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 +8 -8
- 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 +14 -14
- data/doc-api/created.rid +1 -1
- data/doc-api/files/README_txt.html +4 -4
- data/doc-api/files/erubis/context_rb.html +2 -2
- data/doc-api/files/erubis/converter_rb.html +2 -2
- data/doc-api/files/erubis/engine/ec_rb.html +2 -2
- data/doc-api/files/erubis/engine/ejava_rb.html +2 -2
- data/doc-api/files/erubis/engine/ejavascript_rb.html +2 -2
- data/doc-api/files/erubis/engine/enhanced_rb.html +2 -2
- data/doc-api/files/erubis/engine/eperl_rb.html +2 -2
- data/doc-api/files/erubis/engine/ephp_rb.html +2 -2
- data/doc-api/files/erubis/engine/eruby_rb.html +2 -2
- data/doc-api/files/erubis/engine/escheme_rb.html +2 -2
- data/doc-api/files/erubis/engine/optimized_rb.html +2 -2
- data/doc-api/files/erubis/engine_rb.html +2 -2
- data/doc-api/files/erubis/enhancer_rb.html +2 -2
- data/doc-api/files/erubis/error_rb.html +2 -2
- data/doc-api/files/erubis/evaluator_rb.html +2 -2
- data/doc-api/files/erubis/generator_rb.html +2 -2
- data/doc-api/files/erubis/helper_rb.html +2 -2
- data/doc-api/files/erubis/helpers/rails_helper_rb.html +2 -2
- data/doc-api/files/erubis/local-setting_rb.html +2 -2
- data/doc-api/files/erubis/main_rb.html +2 -2
- data/doc-api/files/erubis/tiny_rb.html +2 -2
- data/doc-api/files/erubis_rb.html +1 -1
- data/doc-api/fr_class_index.html +8 -1
- data/doc-api/fr_method_index.html +166 -158
- data/doc/users-guide.html +623 -215
- data/lib/erubis.rb +2 -2
- data/lib/erubis/context.rb +2 -2
- data/lib/erubis/converter.rb +2 -2
- data/lib/erubis/engine.rb +3 -3
- 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 +17 -2
- data/lib/erubis/engine/eperl.rb +2 -2
- data/lib/erubis/engine/ephp.rb +2 -2
- data/lib/erubis/engine/eruby.rb +10 -2
- data/lib/erubis/engine/escheme.rb +2 -2
- data/lib/erubis/engine/optimized.rb +2 -2
- data/lib/erubis/enhancer.rb +134 -25
- 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_helper.rb +19 -75
- data/lib/erubis/local-setting.rb +2 -2
- data/lib/erubis/main.rb +63 -36
- data/lib/erubis/tiny.rb +2 -2
- data/test/assert-text-equal.rb +2 -2
- data/test/data/users-guide/Example.ejava +55 -0
- data/test/data/users-guide/array_example.result +9 -0
- data/test/data/users-guide/arraybuffer_example.result +9 -0
- data/test/data/users-guide/bipattern-example.rhtml +4 -0
- data/test/data/users-guide/bipattern_example.result +6 -0
- data/test/data/users-guide/context.rb +6 -0
- data/test/data/users-guide/context.yaml +8 -0
- data/test/data/users-guide/escape_example.result +9 -0
- data/test/data/users-guide/example.ec +27 -0
- data/test/data/users-guide/example.ejs +20 -0
- data/test/data/users-guide/example.eperl +18 -0
- data/test/data/users-guide/example.ephp +18 -0
- data/test/data/users-guide/example.eruby +6 -0
- data/test/data/users-guide/example.escheme +28 -0
- data/test/data/users-guide/example1.eruby +6 -0
- data/test/data/users-guide/example1.rb +16 -0
- data/test/data/users-guide/example1.result +16 -0
- data/test/data/users-guide/example10.rb +4 -0
- data/test/data/users-guide/example10.result +17 -0
- data/test/data/users-guide/example10.xhtml +14 -0
- data/test/data/users-guide/example10_x.result +17 -0
- data/test/data/users-guide/example11.php +20 -0
- data/test/data/users-guide/example11.result +23 -0
- data/test/data/users-guide/example11.rhtml +21 -0
- data/test/data/users-guide/example11_C.result +10 -0
- data/test/data/users-guide/example11_N.result +16 -0
- data/test/data/users-guide/example11_U.result +16 -0
- data/test/data/users-guide/example11_php.result +15 -0
- data/test/data/users-guide/example1_x.result +9 -0
- data/test/data/users-guide/example2.eruby +7 -0
- data/test/data/users-guide/example2.rb +10 -0
- data/test/data/users-guide/example2.result +27 -0
- data/test/data/users-guide/example2_trim.result +10 -0
- data/test/data/users-guide/example2_x.result +10 -0
- data/test/data/users-guide/example3.eruby +6 -0
- data/test/data/users-guide/example3.rb +10 -0
- data/test/data/users-guide/example31.result +22 -0
- data/test/data/users-guide/example32.result +4 -0
- data/test/data/users-guide/example3_e.result +8 -0
- data/test/data/users-guide/example4.eruby +3 -0
- data/test/data/users-guide/example4.rb +11 -0
- data/test/data/users-guide/example4.result +10 -0
- data/test/data/users-guide/example4_x.result +5 -0
- data/test/data/users-guide/example5.eruby +6 -0
- data/test/data/users-guide/example5.rb +16 -0
- data/test/data/users-guide/example5.result +7 -0
- data/test/data/users-guide/example6.rb +12 -0
- data/test/data/users-guide/example6.result +7 -0
- data/test/data/users-guide/example7.eruby +8 -0
- data/test/data/users-guide/example71.result +13 -0
- data/test/data/users-guide/example72.result +13 -0
- data/test/data/users-guide/example8.eruby +6 -0
- data/test/data/users-guide/example8_ruby.result +7 -0
- data/test/data/users-guide/example8_yaml.result +7 -0
- data/test/data/users-guide/example9.eruby +3 -0
- data/test/data/users-guide/example9.rb +8 -0
- data/test/data/users-guide/example9.result +9 -0
- data/test/data/users-guide/example91.result +5 -0
- data/test/data/users-guide/example92.result +4 -0
- data/test/data/users-guide/example_c.result +29 -0
- data/test/data/users-guide/example_java.result +56 -0
- data/test/data/users-guide/example_js.result +22 -0
- data/test/data/users-guide/example_perl.result +20 -0
- data/test/data/users-guide/example_php.result +19 -0
- data/test/data/users-guide/example_scheme.result +30 -0
- data/test/data/users-guide/example_scheme_display.result +29 -0
- data/test/data/users-guide/fasteruby.rb +11 -0
- data/test/data/users-guide/fasteruby.result +38 -0
- data/test/data/users-guide/fasteruby.rhtml +15 -0
- data/test/data/users-guide/headerfooter-example.eruby +9 -0
- data/test/data/users-guide/headerfooter-example2.rb +8 -0
- data/test/data/users-guide/headerfooter-example2.rhtml +10 -0
- data/test/data/users-guide/headerfooter_example.result +11 -0
- data/test/data/users-guide/headerfooter_example2.result +13 -0
- data/test/data/users-guide/interpolation_example.result +9 -0
- data/test/data/users-guide/nocode-example.eruby +14 -0
- data/test/data/users-guide/nocode-php.result +20 -0
- data/test/data/users-guide/nocode_example.result +15 -0
- data/test/data/users-guide/normal-eruby-test.eruby +9 -0
- data/test/data/users-guide/normal_eruby_test.result +11 -0
- data/test/data/users-guide/notext-example.eruby +14 -0
- data/test/data/users-guide/notext-example.php +19 -0
- data/test/data/users-guide/notext-php.result +20 -0
- data/test/data/users-guide/notext_example.result +16 -0
- data/test/data/users-guide/percentline-example.rhtml +4 -0
- data/test/data/users-guide/percentline_example.result +7 -0
- data/test/data/users-guide/printenable_example.result +4 -0
- data/test/data/users-guide/printenabled-example.eruby +3 -0
- data/test/data/users-guide/printenabled-example.rb +8 -0
- data/test/data/users-guide/printstatement_example.result +8 -0
- data/test/data/users-guide/simplify_example.result +9 -0
- data/test/data/users-guide/stdout_exmple.result +9 -0
- data/test/data/users-guide/stringbuffer_example.result +9 -0
- data/test/test-engines.rb +2 -2
- data/test/test-enhancers.rb +569 -0
- data/test/test-erubis.rb +3 -380
- data/test/test-main.rb +39 -15
- data/test/test-users-guide.rb +56 -0
- data/test/test.rb +4 -3
- data/test/testutil.rb +2 -2
- metadata +166 -57
- data/benchmark/erubybench-lib.rb +0 -189
- data/benchmark/erubybench.rb +0 -600
- data/bin/notext +0 -154
- data/test/test-notext.rb +0 -27
@@ -95,7 +95,7 @@ code
|
|
95
95
|
<h3 class="section-bar">Methods</h3>
|
96
96
|
|
97
97
|
<div class="name-list">
|
98
|
-
<a href="#
|
98
|
+
<a href="#M000181">add_expr_debug</a>
|
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-
|
128
|
-
<a name="
|
127
|
+
<div id="method-M000181" class="method-detail">
|
128
|
+
<a name="M000181"></a>
|
129
129
|
|
130
130
|
<div class="method-heading">
|
131
|
-
<a href="#
|
131
|
+
<a href="#M000181" 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('
|
139
|
-
<div class="method-source-code" id="
|
138
|
+
onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
|
139
|
+
<div class="method-source-code" id="M000181-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>)
|
@@ -88,9 +88,9 @@ this class converts ’<?rb … ?>’ and
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
91
|
+
<a href="#M000043">convert</a>
|
92
|
+
<a href="#M000044">convert_input</a>
|
93
|
+
<a href="#M000042">init_converter</a>
|
94
94
|
</div>
|
95
95
|
</div>
|
96
96
|
|
@@ -137,19 +137,19 @@ this class converts ’<?rb … ?>’ and
|
|
137
137
|
<div id="methods">
|
138
138
|
<h3 class="section-bar">Public Instance methods</h3>
|
139
139
|
|
140
|
-
<div id="method-
|
141
|
-
<a name="
|
140
|
+
<div id="method-M000043" class="method-detail">
|
141
|
+
<a name="M000043"></a>
|
142
142
|
|
143
143
|
<div class="method-heading">
|
144
|
-
<a href="#
|
144
|
+
<a href="#M000043" class="method-signature">
|
145
145
|
<span class="method-name">convert</span><span class="method-args">(input)</span>
|
146
146
|
</a>
|
147
147
|
</div>
|
148
148
|
|
149
149
|
<div class="method-description">
|
150
150
|
<p><a class="source-toggle" href="#"
|
151
|
-
onclick="toggleCode('
|
152
|
-
<div class="method-source-code" id="
|
151
|
+
onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
|
152
|
+
<div class="method-source-code" id="M000043-source">
|
153
153
|
<pre>
|
154
154
|
<span class="ruby-comment cmt"># File erubis/converter.rb, line 219</span>
|
155
155
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert</span>(<span class="ruby-identifier">input</span>)
|
@@ -161,19 +161,19 @@ this class converts ’<?rb … ?>’ and
|
|
161
161
|
</div>
|
162
162
|
</div>
|
163
163
|
|
164
|
-
<div id="method-
|
165
|
-
<a name="
|
164
|
+
<div id="method-M000042" class="method-detail">
|
165
|
+
<a name="M000042"></a>
|
166
166
|
|
167
167
|
<div class="method-heading">
|
168
|
-
<a href="#
|
168
|
+
<a href="#M000042" class="method-signature">
|
169
169
|
<span class="method-name">init_converter</span><span class="method-args">(properties={})</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('
|
176
|
-
<div class="method-source-code" id="
|
175
|
+
onclick="toggleCode('M000042-source');return false;">[Source]</a></p>
|
176
|
+
<div class="method-source-code" id="M000042-source">
|
177
177
|
<pre>
|
178
178
|
<span class="ruby-comment cmt"># File erubis/converter.rb, line 210</span>
|
179
179
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_converter</span>(<span class="ruby-identifier">properties</span>={})
|
@@ -191,19 +191,19 @@ this class converts ’<?rb … ?>’ and
|
|
191
191
|
|
192
192
|
<h3 class="section-bar">Protected Instance methods</h3>
|
193
193
|
|
194
|
-
<div id="method-
|
195
|
-
<a name="
|
194
|
+
<div id="method-M000044" class="method-detail">
|
195
|
+
<a name="M000044"></a>
|
196
196
|
|
197
197
|
<div class="method-heading">
|
198
|
-
<a href="#
|
198
|
+
<a href="#M000044" class="method-signature">
|
199
199
|
<span class="method-name">convert_input</span><span class="method-args">(codebuf, input)</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('
|
206
|
-
<div class="method-source-code" id="
|
205
|
+
onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
|
206
|
+
<div class="method-source-code" id="M000044-source">
|
207
207
|
<pre>
|
208
208
|
<span class="ruby-comment cmt"># File erubis/converter.rb, line 226</span>
|
209
209
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert_input</span>(<span class="ruby-identifier">codebuf</span>, <span class="ruby-identifier">input</span>)
|
@@ -98,7 +98,7 @@ end
|
|
98
98
|
<h3 class="section-bar">Methods</h3>
|
99
99
|
|
100
100
|
<div class="name-list">
|
101
|
-
<a href="#
|
101
|
+
<a href="#M000053">init_converter</a>
|
102
102
|
</div>
|
103
103
|
</div>
|
104
104
|
|
@@ -127,19 +127,19 @@ end
|
|
127
127
|
<div id="methods">
|
128
128
|
<h3 class="section-bar">Public Instance methods</h3>
|
129
129
|
|
130
|
-
<div id="method-
|
131
|
-
<a name="
|
130
|
+
<div id="method-M000053" class="method-detail">
|
131
|
+
<a name="M000053"></a>
|
132
132
|
|
133
133
|
<div class="method-heading">
|
134
|
-
<a href="#
|
134
|
+
<a href="#M000053" class="method-signature">
|
135
135
|
<span class="method-name">init_converter</span><span class="method-args">(properties={})</span>
|
136
136
|
</a>
|
137
137
|
</div>
|
138
138
|
|
139
139
|
<div class="method-description">
|
140
140
|
<p><a class="source-toggle" href="#"
|
141
|
-
onclick="toggleCode('
|
142
|
-
<div class="method-source-code" id="
|
141
|
+
onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
|
142
|
+
<div class="method-source-code" id="M000053-source">
|
143
143
|
<pre>
|
144
144
|
<span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 110</span>
|
145
145
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_converter</span>(<span class="ruby-identifier">properties</span>={})
|
@@ -98,7 +98,7 @@ end
|
|
98
98
|
<h3 class="section-bar">Methods</h3>
|
99
99
|
|
100
100
|
<div class="name-list">
|
101
|
-
<a href="#
|
101
|
+
<a href="#M000046">init_converter</a>
|
102
102
|
</div>
|
103
103
|
</div>
|
104
104
|
|
@@ -127,19 +127,19 @@ end
|
|
127
127
|
<div id="methods">
|
128
128
|
<h3 class="section-bar">Public Instance methods</h3>
|
129
129
|
|
130
|
-
<div id="method-
|
131
|
-
<a name="
|
130
|
+
<div id="method-M000046" class="method-detail">
|
131
|
+
<a name="M000046"></a>
|
132
132
|
|
133
133
|
<div class="method-heading">
|
134
|
-
<a href="#
|
134
|
+
<a href="#M000046" class="method-signature">
|
135
135
|
<span class="method-name">init_converter</span><span class="method-args">(properties={})</span>
|
136
136
|
</a>
|
137
137
|
</div>
|
138
138
|
|
139
139
|
<div class="method-description">
|
140
140
|
<p><a class="source-toggle" href="#"
|
141
|
-
onclick="toggleCode('
|
142
|
-
<div class="method-source-code" id="
|
141
|
+
onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
|
142
|
+
<div class="method-source-code" id="M000046-source">
|
143
143
|
<pre>
|
144
144
|
<span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 104</span>
|
145
145
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_converter</span>(<span class="ruby-identifier">properties</span>={})
|
@@ -98,7 +98,7 @@ end
|
|
98
98
|
<h3 class="section-bar">Methods</h3>
|
99
99
|
|
100
100
|
<div class="name-list">
|
101
|
-
<a href="#
|
101
|
+
<a href="#M000045">init_converter</a>
|
102
102
|
</div>
|
103
103
|
</div>
|
104
104
|
|
@@ -127,19 +127,19 @@ end
|
|
127
127
|
<div id="methods">
|
128
128
|
<h3 class="section-bar">Public Instance methods</h3>
|
129
129
|
|
130
|
-
<div id="method-
|
131
|
-
<a name="
|
130
|
+
<div id="method-M000045" class="method-detail">
|
131
|
+
<a name="M000045"></a>
|
132
132
|
|
133
133
|
<div class="method-heading">
|
134
|
-
<a href="#
|
134
|
+
<a href="#M000045" class="method-signature">
|
135
135
|
<span class="method-name">init_converter</span><span class="method-args">(properties={})</span>
|
136
136
|
</a>
|
137
137
|
</div>
|
138
138
|
|
139
139
|
<div class="method-description">
|
140
140
|
<p><a class="source-toggle" href="#"
|
141
|
-
onclick="toggleCode('
|
142
|
-
<div class="method-source-code" id="
|
141
|
+
onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
|
142
|
+
<div class="method-source-code" id="M000045-source">
|
143
143
|
<pre>
|
144
144
|
<span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 106</span>
|
145
145
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_converter</span>(<span class="ruby-identifier">properties</span>={})
|
@@ -98,7 +98,7 @@ end
|
|
98
98
|
<h3 class="section-bar">Methods</h3>
|
99
99
|
|
100
100
|
<div class="name-list">
|
101
|
-
<a href="#
|
101
|
+
<a href="#M000052">init_converter</a>
|
102
102
|
</div>
|
103
103
|
</div>
|
104
104
|
|
@@ -127,19 +127,19 @@ end
|
|
127
127
|
<div id="methods">
|
128
128
|
<h3 class="section-bar">Public Instance methods</h3>
|
129
129
|
|
130
|
-
<div id="method-
|
131
|
-
<a name="
|
130
|
+
<div id="method-M000052" class="method-detail">
|
131
|
+
<a name="M000052"></a>
|
132
132
|
|
133
133
|
<div class="method-heading">
|
134
|
-
<a href="#
|
134
|
+
<a href="#M000052" class="method-signature">
|
135
135
|
<span class="method-name">init_converter</span><span class="method-args">(properties={})</span>
|
136
136
|
</a>
|
137
137
|
</div>
|
138
138
|
|
139
139
|
<div class="method-description">
|
140
140
|
<p><a class="source-toggle" href="#"
|
141
|
-
onclick="toggleCode('
|
142
|
-
<div class="method-source-code" id="
|
141
|
+
onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
|
142
|
+
<div class="method-source-code" id="M000052-source">
|
143
143
|
<pre>
|
144
144
|
<span class="ruby-comment cmt"># File erubis/engine/eperl.rb, line 88</span>
|
145
145
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_converter</span>(<span class="ruby-identifier">properties</span>={})
|
@@ -98,7 +98,7 @@ end
|
|
98
98
|
<h3 class="section-bar">Methods</h3>
|
99
99
|
|
100
100
|
<div class="name-list">
|
101
|
-
<a href="#
|
101
|
+
<a href="#M000047">init_converter</a>
|
102
102
|
</div>
|
103
103
|
</div>
|
104
104
|
|
@@ -127,19 +127,19 @@ end
|
|
127
127
|
<div id="methods">
|
128
128
|
<h3 class="section-bar">Public Instance methods</h3>
|
129
129
|
|
130
|
-
<div id="method-
|
131
|
-
<a name="
|
130
|
+
<div id="method-M000047" class="method-detail">
|
131
|
+
<a name="M000047"></a>
|
132
132
|
|
133
133
|
<div class="method-heading">
|
134
|
-
<a href="#
|
134
|
+
<a href="#M000047" class="method-signature">
|
135
135
|
<span class="method-name">init_converter</span><span class="method-args">(properties={})</span>
|
136
136
|
</a>
|
137
137
|
</div>
|
138
138
|
|
139
139
|
<div class="method-description">
|
140
140
|
<p><a class="source-toggle" href="#"
|
141
|
-
onclick="toggleCode('
|
142
|
-
<div class="method-source-code" id="
|
141
|
+
onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
|
142
|
+
<div class="method-source-code" id="M000047-source">
|
143
143
|
<pre>
|
144
144
|
<span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 92</span>
|
145
145
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_converter</span>(<span class="ruby-identifier">properties</span>={})
|
@@ -86,7 +86,7 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000054">init_converter</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -116,21 +116,21 @@
|
|
116
116
|
<div id="methods">
|
117
117
|
<h3 class="section-bar">Public Instance methods</h3>
|
118
118
|
|
119
|
-
<div id="method-
|
120
|
-
<a name="
|
119
|
+
<div id="method-M000054" class="method-detail">
|
120
|
+
<a name="M000054"></a>
|
121
121
|
|
122
122
|
<div class="method-heading">
|
123
|
-
<a href="#
|
123
|
+
<a href="#M000054" class="method-signature">
|
124
124
|
<span class="method-name">init_converter</span><span class="method-args">(properties={})</span>
|
125
125
|
</a>
|
126
126
|
</div>
|
127
127
|
|
128
128
|
<div class="method-description">
|
129
129
|
<p><a class="source-toggle" href="#"
|
130
|
-
onclick="toggleCode('
|
131
|
-
<div class="method-source-code" id="
|
130
|
+
onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
|
131
|
+
<div class="method-source-code" id="M000054-source">
|
132
132
|
<pre>
|
133
|
-
<span class="ruby-comment cmt"># File erubis/engine/eruby.rb, line
|
133
|
+
<span class="ruby-comment cmt"># File erubis/engine/eruby.rb, line 117</span>
|
134
134
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_converter</span>(<span class="ruby-identifier">properties</span>={})
|
135
135
|
<span class="ruby-ivar">@pi</span> = <span class="ruby-value str">'rb'</span>
|
136
136
|
<span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">properties</span>)
|
@@ -98,7 +98,7 @@ end
|
|
98
98
|
<h3 class="section-bar">Methods</h3>
|
99
99
|
|
100
100
|
<div class="name-list">
|
101
|
-
<a href="#
|
101
|
+
<a href="#M000055">init_converter</a>
|
102
102
|
</div>
|
103
103
|
</div>
|
104
104
|
|
@@ -127,19 +127,19 @@ end
|
|
127
127
|
<div id="methods">
|
128
128
|
<h3 class="section-bar">Public Instance methods</h3>
|
129
129
|
|
130
|
-
<div id="method-
|
131
|
-
<a name="
|
130
|
+
<div id="method-M000055" class="method-detail">
|
131
|
+
<a name="M000055"></a>
|
132
132
|
|
133
133
|
<div class="method-heading">
|
134
|
-
<a href="#
|
134
|
+
<a href="#M000055" class="method-signature">
|
135
135
|
<span class="method-name">init_converter</span><span class="method-args">(properties={})</span>
|
136
136
|
</a>
|
137
137
|
</div>
|
138
138
|
|
139
139
|
<div class="method-description">
|
140
140
|
<p><a class="source-toggle" href="#"
|
141
|
-
onclick="toggleCode('
|
142
|
-
<div class="method-source-code" id="
|
141
|
+
onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
|
142
|
+
<div class="method-source-code" id="M000055-source">
|
143
143
|
<pre>
|
144
144
|
<span class="ruby-comment cmt"># File erubis/engine/escheme.rb, line 107</span>
|
145
145
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_converter</span>(<span class="ruby-identifier">properties</span>={})
|
@@ -86,10 +86,10 @@
|
|
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="#M000049">convert</a>
|
90
|
+
<a href="#M000051">evaluate</a>
|
91
|
+
<a href="#M000048">new</a>
|
92
|
+
<a href="#M000050">result</a>
|
93
93
|
</div>
|
94
94
|
</div>
|
95
95
|
|
@@ -137,19 +137,19 @@
|
|
137
137
|
<div id="methods">
|
138
138
|
<h3 class="section-bar">Public Class methods</h3>
|
139
139
|
|
140
|
-
<div id="method-
|
141
|
-
<a name="
|
140
|
+
<div id="method-M000048" class="method-detail">
|
141
|
+
<a name="M000048"></a>
|
142
142
|
|
143
143
|
<div class="method-heading">
|
144
|
-
<a href="#
|
144
|
+
<a href="#M000048" class="method-signature">
|
145
145
|
<span class="method-name">new</span><span class="method-args">(input=nil, options={})</span>
|
146
146
|
</a>
|
147
147
|
</div>
|
148
148
|
|
149
149
|
<div class="method-description">
|
150
150
|
<p><a class="source-toggle" href="#"
|
151
|
-
onclick="toggleCode('
|
152
|
-
<div class="method-source-code" id="
|
151
|
+
onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
|
152
|
+
<div class="method-source-code" id="M000048-source">
|
153
153
|
<pre>
|
154
154
|
<span class="ruby-comment cmt"># File erubis/tiny.rb, line 80</span>
|
155
155
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">input</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">options</span>={})
|
@@ -163,19 +163,19 @@
|
|
163
163
|
|
164
164
|
<h3 class="section-bar">Public Instance methods</h3>
|
165
165
|
|
166
|
-
<div id="method-
|
167
|
-
<a name="
|
166
|
+
<div id="method-M000049" class="method-detail">
|
167
|
+
<a name="M000049"></a>
|
168
168
|
|
169
169
|
<div class="method-heading">
|
170
|
-
<a href="#
|
170
|
+
<a href="#M000049" class="method-signature">
|
171
171
|
<span class="method-name">convert</span><span class="method-args">(input)</span>
|
172
172
|
</a>
|
173
173
|
</div>
|
174
174
|
|
175
175
|
<div class="method-description">
|
176
176
|
<p><a class="source-toggle" href="#"
|
177
|
-
onclick="toggleCode('
|
178
|
-
<div class="method-source-code" id="
|
177
|
+
onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
|
178
|
+
<div class="method-source-code" id="M000049-source">
|
179
179
|
<pre>
|
180
180
|
<span class="ruby-comment cmt"># File erubis/tiny.rb, line 89</span>
|
181
181
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert</span>(<span class="ruby-identifier">input</span>)
|
@@ -217,19 +217,19 @@
|
|
217
217
|
</div>
|
218
218
|
</div>
|
219
219
|
|
220
|
-
<div id="method-
|
221
|
-
<a name="
|
220
|
+
<div id="method-M000051" class="method-detail">
|
221
|
+
<a name="M000051"></a>
|
222
222
|
|
223
223
|
<div class="method-heading">
|
224
|
-
<a href="#
|
224
|
+
<a href="#M000051" class="method-signature">
|
225
225
|
<span class="method-name">evaluate</span><span class="method-args">(_context=Object.new)</span>
|
226
226
|
</a>
|
227
227
|
</div>
|
228
228
|
|
229
229
|
<div class="method-description">
|
230
230
|
<p><a class="source-toggle" href="#"
|
231
|
-
onclick="toggleCode('
|
232
|
-
<div class="method-source-code" id="
|
231
|
+
onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
|
232
|
+
<div class="method-source-code" id="M000051-source">
|
233
233
|
<pre>
|
234
234
|
<span class="ruby-comment cmt"># File erubis/tiny.rb, line 132</span>
|
235
235
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">evaluate</span>(<span class="ruby-identifier">_context</span>=<span class="ruby-constant">Object</span>.<span class="ruby-identifier">new</span>)
|
@@ -245,11 +245,11 @@
|
|
245
245
|
</div>
|
246
246
|
</div>
|
247
247
|
|
248
|
-
<div id="method-
|
249
|
-
<a name="
|
248
|
+
<div id="method-M000050" class="method-detail">
|
249
|
+
<a name="M000050"></a>
|
250
250
|
|
251
251
|
<div class="method-heading">
|
252
|
-
<a href="#
|
252
|
+
<a href="#M000050" class="method-signature">
|
253
253
|
<span class="method-name">result</span><span class="method-args">(_binding=TOPLEVEL_BINDING)</span>
|
254
254
|
</a>
|
255
255
|
</div>
|
@@ -265,8 +265,8 @@ def escape_text(text)
|
|
265
265
|
end
|
266
266
|
</p>
|
267
267
|
<p><a class="source-toggle" href="#"
|
268
|
-
onclick="toggleCode('
|
269
|
-
<div class="method-source-code" id="
|
268
|
+
onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
|
269
|
+
<div class="method-source-code" id="M000050-source">
|
270
270
|
<pre>
|
271
271
|
<span class="ruby-comment cmt"># File erubis/tiny.rb, line 128</span>
|
272
272
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">result</span>(<span class="ruby-identifier">_binding</span>=<span class="ruby-constant">TOPLEVEL_BINDING</span>)
|