erubis 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (220) hide show
  1. data/CHANGES +120 -3
  2. data/README.txt +1 -1
  3. data/benchmark/Makefile +6 -0
  4. data/benchmark/bench.rb +306 -0
  5. data/benchmark/{erubybench.yaml → bench_context.yaml} +20 -20
  6. data/benchmark/templates/_footer.html +4 -0
  7. data/benchmark/{erubybench.rhtml → templates/_header.html} +1 -34
  8. data/benchmark/templates/bench_erb.rhtml +29 -0
  9. data/benchmark/templates/bench_erubis.rhtml +29 -0
  10. data/benchmark/templates/bench_eruby.rhtml +29 -0
  11. data/bin/erubis +2 -2
  12. data/contrib/erubis +3 -3114
  13. data/contrib/erubis-run.rb +132 -0
  14. data/contrib/inline-require +1 -1
  15. data/doc-api/classes/{ERB.html → ActionView/Base/ERB.html} +3 -3
  16. data/doc-api/classes/Erubis.html +8 -1
  17. data/doc-api/classes/Erubis/ArrayEnhancer.html +12 -12
  18. data/doc-api/classes/Erubis/Basic/Converter.html +24 -24
  19. data/doc-api/classes/Erubis/BiPatternEnhancer.html +14 -14
  20. data/doc-api/classes/Erubis/CGenerator.html +60 -60
  21. data/doc-api/classes/Erubis/Context.html +42 -42
  22. data/doc-api/classes/Erubis/Converter.html +27 -27
  23. data/doc-api/classes/Erubis/DeleteIndentEnhancer.html +150 -0
  24. data/doc-api/classes/Erubis/DeleteIndentEruby.html +120 -0
  25. data/doc-api/classes/Erubis/Engine.html +31 -31
  26. data/doc-api/classes/Erubis/ErboutEnhancer.html +175 -0
  27. data/doc-api/classes/Erubis/ErboutEruby.html +120 -0
  28. data/doc-api/classes/Erubis/Eruby.html +5 -0
  29. data/doc-api/classes/Erubis/EscapeEnhancer.html +6 -6
  30. data/doc-api/classes/Erubis/Evaluator.html +19 -19
  31. data/doc-api/classes/Erubis/FastEruby.html +131 -0
  32. data/doc-api/classes/Erubis/HeaderFooterEnhancer.html +14 -14
  33. data/doc-api/classes/Erubis/Helpers/RailsHelper.html +49 -45
  34. data/doc-api/classes/Erubis/InterpolationEnhancer.html +304 -0
  35. data/doc-api/classes/Erubis/InterpolationEruby.html +120 -0
  36. data/doc-api/classes/Erubis/JavaGenerator.html +54 -54
  37. data/doc-api/classes/Erubis/JavascriptGenerator.html +60 -60
  38. data/doc-api/classes/Erubis/Main.html +35 -27
  39. data/doc-api/classes/Erubis/NoCodeEnhancer.html +5 -5
  40. data/doc-api/classes/Erubis/NoTextEnhancer.html +7 -7
  41. data/doc-api/classes/Erubis/OptimizedEruby.html +6 -6
  42. data/doc-api/classes/Erubis/OptimizedGenerator.html +72 -72
  43. data/doc-api/classes/Erubis/OptimizedXmlEruby.html +6 -6
  44. data/doc-api/classes/Erubis/PI/Converter.html +18 -18
  45. data/doc-api/classes/Erubis/PI/Ec.html +6 -6
  46. data/doc-api/classes/Erubis/PI/Ejava.html +6 -6
  47. data/doc-api/classes/Erubis/PI/Ejavascript.html +6 -6
  48. data/doc-api/classes/Erubis/PI/Eperl.html +6 -6
  49. data/doc-api/classes/Erubis/PI/Ephp.html +6 -6
  50. data/doc-api/classes/Erubis/PI/Eruby.html +7 -7
  51. data/doc-api/classes/Erubis/PI/Escheme.html +6 -6
  52. data/doc-api/classes/Erubis/PI/TinyEruby.html +24 -24
  53. data/doc-api/classes/Erubis/PercentLineEnhancer.html +8 -8
  54. data/doc-api/classes/Erubis/PerlGenerator.html +54 -54
  55. data/doc-api/classes/Erubis/PhpGenerator.html +54 -54
  56. data/doc-api/classes/Erubis/PrintEnabledEnhancer.html +20 -20
  57. data/doc-api/classes/Erubis/PrintOutEnhancer.html +30 -30
  58. data/doc-api/classes/Erubis/RubyEvaluator.html +12 -12
  59. data/doc-api/classes/Erubis/RubyGenerator.html +48 -48
  60. data/doc-api/classes/Erubis/SchemeGenerator.html +60 -60
  61. data/doc-api/classes/Erubis/SimplifyEnhancer.html +8 -8
  62. data/doc-api/classes/Erubis/StdoutEnhancer.html +12 -12
  63. data/doc-api/classes/Erubis/StringBufferEnhancer.html +12 -12
  64. data/doc-api/classes/Erubis/TinyEruby.html +24 -24
  65. data/doc-api/classes/Erubis/XmlHelper.html +14 -14
  66. data/doc-api/created.rid +1 -1
  67. data/doc-api/files/README_txt.html +4 -4
  68. data/doc-api/files/erubis/context_rb.html +2 -2
  69. data/doc-api/files/erubis/converter_rb.html +2 -2
  70. data/doc-api/files/erubis/engine/ec_rb.html +2 -2
  71. data/doc-api/files/erubis/engine/ejava_rb.html +2 -2
  72. data/doc-api/files/erubis/engine/ejavascript_rb.html +2 -2
  73. data/doc-api/files/erubis/engine/enhanced_rb.html +2 -2
  74. data/doc-api/files/erubis/engine/eperl_rb.html +2 -2
  75. data/doc-api/files/erubis/engine/ephp_rb.html +2 -2
  76. data/doc-api/files/erubis/engine/eruby_rb.html +2 -2
  77. data/doc-api/files/erubis/engine/escheme_rb.html +2 -2
  78. data/doc-api/files/erubis/engine/optimized_rb.html +2 -2
  79. data/doc-api/files/erubis/engine_rb.html +2 -2
  80. data/doc-api/files/erubis/enhancer_rb.html +2 -2
  81. data/doc-api/files/erubis/error_rb.html +2 -2
  82. data/doc-api/files/erubis/evaluator_rb.html +2 -2
  83. data/doc-api/files/erubis/generator_rb.html +2 -2
  84. data/doc-api/files/erubis/helper_rb.html +2 -2
  85. data/doc-api/files/erubis/helpers/rails_helper_rb.html +2 -2
  86. data/doc-api/files/erubis/local-setting_rb.html +2 -2
  87. data/doc-api/files/erubis/main_rb.html +2 -2
  88. data/doc-api/files/erubis/tiny_rb.html +2 -2
  89. data/doc-api/files/erubis_rb.html +1 -1
  90. data/doc-api/fr_class_index.html +8 -1
  91. data/doc-api/fr_method_index.html +166 -158
  92. data/doc/users-guide.html +623 -215
  93. data/lib/erubis.rb +2 -2
  94. data/lib/erubis/context.rb +2 -2
  95. data/lib/erubis/converter.rb +2 -2
  96. data/lib/erubis/engine.rb +3 -3
  97. data/lib/erubis/engine/ec.rb +2 -2
  98. data/lib/erubis/engine/ejava.rb +2 -2
  99. data/lib/erubis/engine/ejavascript.rb +2 -2
  100. data/lib/erubis/engine/enhanced.rb +17 -2
  101. data/lib/erubis/engine/eperl.rb +2 -2
  102. data/lib/erubis/engine/ephp.rb +2 -2
  103. data/lib/erubis/engine/eruby.rb +10 -2
  104. data/lib/erubis/engine/escheme.rb +2 -2
  105. data/lib/erubis/engine/optimized.rb +2 -2
  106. data/lib/erubis/enhancer.rb +134 -25
  107. data/lib/erubis/error.rb +2 -2
  108. data/lib/erubis/evaluator.rb +2 -2
  109. data/lib/erubis/generator.rb +2 -2
  110. data/lib/erubis/helper.rb +2 -2
  111. data/lib/erubis/helpers/rails_helper.rb +19 -75
  112. data/lib/erubis/local-setting.rb +2 -2
  113. data/lib/erubis/main.rb +63 -36
  114. data/lib/erubis/tiny.rb +2 -2
  115. data/test/assert-text-equal.rb +2 -2
  116. data/test/data/users-guide/Example.ejava +55 -0
  117. data/test/data/users-guide/array_example.result +9 -0
  118. data/test/data/users-guide/arraybuffer_example.result +9 -0
  119. data/test/data/users-guide/bipattern-example.rhtml +4 -0
  120. data/test/data/users-guide/bipattern_example.result +6 -0
  121. data/test/data/users-guide/context.rb +6 -0
  122. data/test/data/users-guide/context.yaml +8 -0
  123. data/test/data/users-guide/escape_example.result +9 -0
  124. data/test/data/users-guide/example.ec +27 -0
  125. data/test/data/users-guide/example.ejs +20 -0
  126. data/test/data/users-guide/example.eperl +18 -0
  127. data/test/data/users-guide/example.ephp +18 -0
  128. data/test/data/users-guide/example.eruby +6 -0
  129. data/test/data/users-guide/example.escheme +28 -0
  130. data/test/data/users-guide/example1.eruby +6 -0
  131. data/test/data/users-guide/example1.rb +16 -0
  132. data/test/data/users-guide/example1.result +16 -0
  133. data/test/data/users-guide/example10.rb +4 -0
  134. data/test/data/users-guide/example10.result +17 -0
  135. data/test/data/users-guide/example10.xhtml +14 -0
  136. data/test/data/users-guide/example10_x.result +17 -0
  137. data/test/data/users-guide/example11.php +20 -0
  138. data/test/data/users-guide/example11.result +23 -0
  139. data/test/data/users-guide/example11.rhtml +21 -0
  140. data/test/data/users-guide/example11_C.result +10 -0
  141. data/test/data/users-guide/example11_N.result +16 -0
  142. data/test/data/users-guide/example11_U.result +16 -0
  143. data/test/data/users-guide/example11_php.result +15 -0
  144. data/test/data/users-guide/example1_x.result +9 -0
  145. data/test/data/users-guide/example2.eruby +7 -0
  146. data/test/data/users-guide/example2.rb +10 -0
  147. data/test/data/users-guide/example2.result +27 -0
  148. data/test/data/users-guide/example2_trim.result +10 -0
  149. data/test/data/users-guide/example2_x.result +10 -0
  150. data/test/data/users-guide/example3.eruby +6 -0
  151. data/test/data/users-guide/example3.rb +10 -0
  152. data/test/data/users-guide/example31.result +22 -0
  153. data/test/data/users-guide/example32.result +4 -0
  154. data/test/data/users-guide/example3_e.result +8 -0
  155. data/test/data/users-guide/example4.eruby +3 -0
  156. data/test/data/users-guide/example4.rb +11 -0
  157. data/test/data/users-guide/example4.result +10 -0
  158. data/test/data/users-guide/example4_x.result +5 -0
  159. data/test/data/users-guide/example5.eruby +6 -0
  160. data/test/data/users-guide/example5.rb +16 -0
  161. data/test/data/users-guide/example5.result +7 -0
  162. data/test/data/users-guide/example6.rb +12 -0
  163. data/test/data/users-guide/example6.result +7 -0
  164. data/test/data/users-guide/example7.eruby +8 -0
  165. data/test/data/users-guide/example71.result +13 -0
  166. data/test/data/users-guide/example72.result +13 -0
  167. data/test/data/users-guide/example8.eruby +6 -0
  168. data/test/data/users-guide/example8_ruby.result +7 -0
  169. data/test/data/users-guide/example8_yaml.result +7 -0
  170. data/test/data/users-guide/example9.eruby +3 -0
  171. data/test/data/users-guide/example9.rb +8 -0
  172. data/test/data/users-guide/example9.result +9 -0
  173. data/test/data/users-guide/example91.result +5 -0
  174. data/test/data/users-guide/example92.result +4 -0
  175. data/test/data/users-guide/example_c.result +29 -0
  176. data/test/data/users-guide/example_java.result +56 -0
  177. data/test/data/users-guide/example_js.result +22 -0
  178. data/test/data/users-guide/example_perl.result +20 -0
  179. data/test/data/users-guide/example_php.result +19 -0
  180. data/test/data/users-guide/example_scheme.result +30 -0
  181. data/test/data/users-guide/example_scheme_display.result +29 -0
  182. data/test/data/users-guide/fasteruby.rb +11 -0
  183. data/test/data/users-guide/fasteruby.result +38 -0
  184. data/test/data/users-guide/fasteruby.rhtml +15 -0
  185. data/test/data/users-guide/headerfooter-example.eruby +9 -0
  186. data/test/data/users-guide/headerfooter-example2.rb +8 -0
  187. data/test/data/users-guide/headerfooter-example2.rhtml +10 -0
  188. data/test/data/users-guide/headerfooter_example.result +11 -0
  189. data/test/data/users-guide/headerfooter_example2.result +13 -0
  190. data/test/data/users-guide/interpolation_example.result +9 -0
  191. data/test/data/users-guide/nocode-example.eruby +14 -0
  192. data/test/data/users-guide/nocode-php.result +20 -0
  193. data/test/data/users-guide/nocode_example.result +15 -0
  194. data/test/data/users-guide/normal-eruby-test.eruby +9 -0
  195. data/test/data/users-guide/normal_eruby_test.result +11 -0
  196. data/test/data/users-guide/notext-example.eruby +14 -0
  197. data/test/data/users-guide/notext-example.php +19 -0
  198. data/test/data/users-guide/notext-php.result +20 -0
  199. data/test/data/users-guide/notext_example.result +16 -0
  200. data/test/data/users-guide/percentline-example.rhtml +4 -0
  201. data/test/data/users-guide/percentline_example.result +7 -0
  202. data/test/data/users-guide/printenable_example.result +4 -0
  203. data/test/data/users-guide/printenabled-example.eruby +3 -0
  204. data/test/data/users-guide/printenabled-example.rb +8 -0
  205. data/test/data/users-guide/printstatement_example.result +8 -0
  206. data/test/data/users-guide/simplify_example.result +9 -0
  207. data/test/data/users-guide/stdout_exmple.result +9 -0
  208. data/test/data/users-guide/stringbuffer_example.result +9 -0
  209. data/test/test-engines.rb +2 -2
  210. data/test/test-enhancers.rb +569 -0
  211. data/test/test-erubis.rb +3 -380
  212. data/test/test-main.rb +39 -15
  213. data/test/test-users-guide.rb +56 -0
  214. data/test/test.rb +4 -3
  215. data/test/testutil.rb +2 -2
  216. metadata +166 -57
  217. data/benchmark/erubybench-lib.rb +0 -189
  218. data/benchmark/erubybench.rb +0 -600
  219. data/bin/notext +0 -154
  220. data/test/test-notext.rb +0 -27
@@ -80,7 +80,7 @@
80
80
 
81
81
  <div id="description">
82
82
  <p>
83
- <a href="Main.html#M000163">main</a> class of command
83
+ <a href="Main.html#M000171">main</a> class of command
84
84
  </p>
85
85
  <p>
86
86
  ex.
@@ -98,9 +98,9 @@ ex.
98
98
  <h3 class="section-bar">Methods</h3>
99
99
 
100
100
  <div class="name-list">
101
- <a href="#M000165">execute</a>&nbsp;&nbsp;
102
- <a href="#M000163">main</a>&nbsp;&nbsp;
103
- <a href="#M000164">new</a>&nbsp;&nbsp;
101
+ <a href="#M000173">execute</a>&nbsp;&nbsp;
102
+ <a href="#M000171">main</a>&nbsp;&nbsp;
103
+ <a href="#M000172">new</a>&nbsp;&nbsp;
104
104
  </div>
105
105
  </div>
106
106
 
@@ -122,19 +122,19 @@ ex.
122
122
  <div id="methods">
123
123
  <h3 class="section-bar">Public Class methods</h3>
124
124
 
125
- <div id="method-M000163" class="method-detail">
126
- <a name="M000163"></a>
125
+ <div id="method-M000171" class="method-detail">
126
+ <a name="M000171"></a>
127
127
 
128
128
  <div class="method-heading">
129
- <a href="#M000163" class="method-signature">
129
+ <a href="#M000171" class="method-signature">
130
130
  <span class="method-name">main</span><span class="method-args">(argv=ARGV)</span>
131
131
  </a>
132
132
  </div>
133
133
 
134
134
  <div class="method-description">
135
135
  <p><a class="source-toggle" href="#"
136
- onclick="toggleCode('M000163-source');return false;">[Source]</a></p>
137
- <div class="method-source-code" id="M000163-source">
136
+ onclick="toggleCode('M000171-source');return false;">[Source]</a></p>
137
+ <div class="method-source-code" id="M000171-source">
138
138
  <pre>
139
139
  <span class="ruby-comment cmt"># File erubis/main.rb, line 40</span>
140
140
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">main</span>(<span class="ruby-identifier">argv</span>=<span class="ruby-constant">ARGV</span>)
@@ -152,37 +152,37 @@ ex.
152
152
  </div>
153
153
  </div>
154
154
 
155
- <div id="method-M000164" class="method-detail">
156
- <a name="M000164"></a>
155
+ <div id="method-M000172" class="method-detail">
156
+ <a name="M000172"></a>
157
157
 
158
158
  <div class="method-heading">
159
- <a href="#M000164" class="method-signature">
159
+ <a href="#M000172" class="method-signature">
160
160
  <span class="method-name">new</span><span class="method-args">()</span>
161
161
  </a>
162
162
  </div>
163
163
 
164
164
  <div class="method-description">
165
165
  <p><a class="source-toggle" href="#"
166
- onclick="toggleCode('M000164-source');return false;">[Source]</a></p>
167
- <div class="method-source-code" id="M000164-source">
166
+ onclick="toggleCode('M000172-source');return false;">[Source]</a></p>
167
+ <div class="method-source-code" id="M000172-source">
168
168
  <pre>
169
169
  <span class="ruby-comment cmt"># File erubis/main.rb, line 51</span>
170
170
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
171
- <span class="ruby-ivar">@single_options</span> = <span class="ruby-value str">&quot;hvxztSbeB&quot;</span>
172
- <span class="ruby-ivar">@arg_options</span> = <span class="ruby-value str">&quot;pcrfKIlaEC&quot;</span>
171
+ <span class="ruby-ivar">@single_options</span> = <span class="ruby-value str">&quot;hvxztTSbeBXNUC&quot;</span>
172
+ <span class="ruby-ivar">@arg_options</span> = <span class="ruby-value str">&quot;pcrfKIlaE&quot;</span> <span class="ruby-comment cmt">#C</span>
173
173
  <span class="ruby-ivar">@option_names</span> = {
174
174
  <span class="ruby-value">?h</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:help</span>,
175
175
  <span class="ruby-value">?v</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:version</span>,
176
176
  <span class="ruby-value">?x</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:source</span>,
177
177
  <span class="ruby-value">?z</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:syntax</span>,
178
- <span class="ruby-comment cmt">#?T =&gt; :notrim,</span>
179
- <span class="ruby-value">?t</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:untabify</span>,
178
+ <span class="ruby-value">?T</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:unexpand</span>,
179
+ <span class="ruby-value">?t</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:untabify</span>, <span class="ruby-comment cmt"># obsolete</span>
180
180
  <span class="ruby-value">?S</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:intern</span>,
181
181
  <span class="ruby-value">?b</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:bodyonly</span>,
182
182
  <span class="ruby-value">?B</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:binding</span>,
183
183
  <span class="ruby-value">?p</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:pattern</span>,
184
184
  <span class="ruby-value">?c</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:context</span>,
185
- <span class="ruby-value">?C</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:class</span>,
185
+ <span class="ruby-comment cmt">#?C =&gt; :class,</span>
186
186
  <span class="ruby-value">?e</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:escape</span>,
187
187
  <span class="ruby-value">?r</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:requires</span>,
188
188
  <span class="ruby-value">?f</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:datafiles</span>,
@@ -191,6 +191,10 @@ ex.
191
191
  <span class="ruby-value">?l</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:lang</span>,
192
192
  <span class="ruby-value">?a</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:action</span>,
193
193
  <span class="ruby-value">?E</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:enhancers</span>,
194
+ <span class="ruby-value">?X</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:notext</span>,
195
+ <span class="ruby-value">?N</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:linenum</span>,
196
+ <span class="ruby-value">?U</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:unique</span>,
197
+ <span class="ruby-value">?C</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:compact</span>,
194
198
  }
195
199
  <span class="ruby-identifier">assert</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@single_options</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@arg_options</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-ivar">@option_names</span>.<span class="ruby-identifier">length</span>
196
200
  (<span class="ruby-ivar">@single_options</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@arg_options</span>).<span class="ruby-identifier">each_byte</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ch</span><span class="ruby-operator">|</span>
@@ -204,21 +208,21 @@ ex.
204
208
 
205
209
  <h3 class="section-bar">Public Instance methods</h3>
206
210
 
207
- <div id="method-M000165" class="method-detail">
208
- <a name="M000165"></a>
211
+ <div id="method-M000173" class="method-detail">
212
+ <a name="M000173"></a>
209
213
 
210
214
  <div class="method-heading">
211
- <a href="#M000165" class="method-signature">
215
+ <a href="#M000173" class="method-signature">
212
216
  <span class="method-name">execute</span><span class="method-args">(argv=ARGV)</span>
213
217
  </a>
214
218
  </div>
215
219
 
216
220
  <div class="method-description">
217
221
  <p><a class="source-toggle" href="#"
218
- onclick="toggleCode('M000165-source');return false;">[Source]</a></p>
219
- <div class="method-source-code" id="M000165-source">
222
+ onclick="toggleCode('M000173-source');return false;">[Source]</a></p>
223
+ <div class="method-source-code" id="M000173-source">
220
224
  <pre>
221
- <span class="ruby-comment cmt"># File erubis/main.rb, line 83</span>
225
+ <span class="ruby-comment cmt"># File erubis/main.rb, line 87</span>
222
226
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">execute</span>(<span class="ruby-identifier">argv</span>=<span class="ruby-constant">ARGV</span>)
223
227
  <span class="ruby-comment cmt">## parse command-line options</span>
224
228
  <span class="ruby-identifier">options</span>, <span class="ruby-identifier">properties</span> = <span class="ruby-identifier">parse_argv</span>(<span class="ruby-identifier">argv</span>, <span class="ruby-ivar">@single_options</span>, <span class="ruby-ivar">@arg_options</span>)
@@ -254,14 +258,15 @@ ex.
254
258
  <span class="ruby-comment cmt">## action</span>
255
259
  <span class="ruby-identifier">action</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">action</span>
256
260
  <span class="ruby-identifier">action</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">'syntax'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">syntax</span>
257
- <span class="ruby-identifier">action</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">'convert'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">source</span>
261
+ <span class="ruby-identifier">action</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">'convert'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">source</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">notext</span>
258
262
 
259
263
  <span class="ruby-comment cmt">## lang</span>
260
264
  <span class="ruby-identifier">lang</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">lang</span> <span class="ruby-operator">||</span> <span class="ruby-value str">'ruby'</span>
261
265
  <span class="ruby-identifier">action</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">'convert'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">lang</span>
262
266
 
263
267
  <span class="ruby-comment cmt">## class name of Eruby</span>
264
- <span class="ruby-identifier">classname</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">class</span>
268
+ <span class="ruby-comment cmt">#classname = opts.class</span>
269
+ <span class="ruby-identifier">classname</span> = <span class="ruby-keyword kw">nil</span>
265
270
  <span class="ruby-identifier">klass</span> = <span class="ruby-identifier">get_classobj</span>(<span class="ruby-identifier">classname</span>, <span class="ruby-identifier">lang</span>, <span class="ruby-identifier">properties</span>[<span class="ruby-identifier">:pi</span>])
266
271
 
267
272
  <span class="ruby-comment cmt">## kanji code</span>
@@ -292,6 +297,9 @@ ex.
292
297
  <span class="ruby-identifier">engine</span>.<span class="ruby-identifier">bipattern</span> = <span class="ruby-identifier">properties</span>[<span class="ruby-identifier">:bipattern</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">enhancer</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Erubis</span><span class="ruby-operator">::</span><span class="ruby-constant">BiPatternEnhancer</span>
293
298
  <span class="ruby-keyword kw">end</span>
294
299
 
300
+ <span class="ruby-comment cmt">## no-text</span>
301
+ <span class="ruby-identifier">engine</span>.<span class="ruby-identifier">extend</span>(<span class="ruby-constant">Erubis</span><span class="ruby-operator">::</span><span class="ruby-constant">NoTextEnhancer</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">notext</span>
302
+
295
303
  <span class="ruby-comment cmt">## convert and execute</span>
296
304
  <span class="ruby-identifier">val</span> = <span class="ruby-keyword kw">nil</span>
297
305
  <span class="ruby-identifier">msg</span> = <span class="ruby-value str">&quot;Syntax OK\n&quot;</span>
@@ -135,7 +135,7 @@ this is language independent.
135
135
  onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
136
136
  <div class="method-source-code" id="M000004-source">
137
137
  <pre>
138
- <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 320</span>
138
+ <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 318</span>
139
139
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>, <span class="ruby-identifier">indicator</span>)
140
140
  <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;\n&quot;</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">code</span>.<span class="ruby-identifier">count</span>(<span class="ruby-value str">&quot;\n&quot;</span>)
141
141
  <span class="ruby-keyword kw">end</span>
@@ -158,7 +158,7 @@ this is language independent.
158
158
  onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
159
159
  <div class="method-source-code" id="M000002-source">
160
160
  <pre>
161
- <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 313</span>
161
+ <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 311</span>
162
162
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
163
163
  <span class="ruby-keyword kw">end</span>
164
164
  </pre>
@@ -180,7 +180,7 @@ this is language independent.
180
180
  onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
181
181
  <div class="method-source-code" id="M000001-source">
182
182
  <pre>
183
- <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 310</span>
183
+ <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 308</span>
184
184
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
185
185
  <span class="ruby-keyword kw">end</span>
186
186
  </pre>
@@ -202,7 +202,7 @@ this is language independent.
202
202
  onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
203
203
  <div class="method-source-code" id="M000005-source">
204
204
  <pre>
205
- <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 324</span>
205
+ <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 322</span>
206
206
  <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>)
207
207
  <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;\n&quot;</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">code</span>.<span class="ruby-identifier">count</span>(<span class="ruby-value str">&quot;\n&quot;</span>)
208
208
  <span class="ruby-keyword kw">end</span>
@@ -225,7 +225,7 @@ this is language independent.
225
225
  onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
226
226
  <div class="method-source-code" id="M000003-source">
227
227
  <pre>
228
- <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 316</span>
228
+ <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 314</span>
229
229
  <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>)
230
230
  <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">text</span>
231
231
  <span class="ruby-keyword kw">end</span>
@@ -95,7 +95,7 @@ this is language independent.
95
95
  <h3 class="section-bar">Methods</h3>
96
96
 
97
97
  <div class="name-list">
98
- <a href="#M000146">add_text</a>&nbsp;&nbsp;
98
+ <a href="#M000151">add_text</a>&nbsp;&nbsp;
99
99
  </div>
100
100
  </div>
101
101
 
@@ -117,21 +117,21 @@ this is language independent.
117
117
  <div id="methods">
118
118
  <h3 class="section-bar">Public Instance methods</h3>
119
119
 
120
- <div id="method-M000146" class="method-detail">
121
- <a name="M000146"></a>
120
+ <div id="method-M000151" class="method-detail">
121
+ <a name="M000151"></a>
122
122
 
123
123
  <div class="method-heading">
124
- <a href="#M000146" class="method-signature">
124
+ <a href="#M000151" class="method-signature">
125
125
  <span class="method-name">add_text</span><span class="method-args">(src, text)</span>
126
126
  </a>
127
127
  </div>
128
128
 
129
129
  <div class="method-description">
130
130
  <p><a class="source-toggle" href="#"
131
- onclick="toggleCode('M000146-source');return false;">[Source]</a></p>
132
- <div class="method-source-code" id="M000146-source">
131
+ onclick="toggleCode('M000151-source');return false;">[Source]</a></p>
132
+ <div class="method-source-code" id="M000151-source">
133
133
  <pre>
134
- <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 285</span>
134
+ <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 283</span>
135
135
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_text</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">text</span>)
136
136
  <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-value str">&quot;\n&quot;</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">text</span>.<span class="ruby-identifier">count</span>(<span class="ruby-value str">&quot;\n&quot;</span>))
137
137
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">text</span>[<span class="ruby-value">-1</span>] <span class="ruby-operator">!=</span> <span class="ruby-value">?\n</span>
@@ -94,7 +94,7 @@
94
94
  <h3 class="section-bar">Methods</h3>
95
95
 
96
96
  <div class="name-list">
97
- <a href="#M000162">init_converter</a>&nbsp;&nbsp;
97
+ <a href="#M000170">init_converter</a>&nbsp;&nbsp;
98
98
  </div>
99
99
  </div>
100
100
 
@@ -124,19 +124,19 @@
124
124
  <div id="methods">
125
125
  <h3 class="section-bar">Public Instance methods</h3>
126
126
 
127
- <div id="method-M000162" class="method-detail">
128
- <a name="M000162"></a>
127
+ <div id="method-M000170" class="method-detail">
128
+ <a name="M000170"></a>
129
129
 
130
130
  <div class="method-heading">
131
- <a href="#M000162" class="method-signature">
131
+ <a href="#M000170" class="method-signature">
132
132
  <span class="method-name">init_converter</span><span class="method-args">(properties={})</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('M000162-source');return false;">[Source]</a></p>
139
- <div class="method-source-code" id="M000162-source">
138
+ onclick="toggleCode('M000170-source');return false;">[Source]</a></p>
139
+ <div class="method-source-code" id="M000170-source">
140
140
  <pre>
141
141
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 107</span>
142
142
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_converter</span>(<span class="ruby-identifier">properties</span>={})
@@ -80,18 +80,18 @@
80
80
  <h3 class="section-bar">Methods</h3>
81
81
 
82
82
  <div class="name-list">
83
- <a href="#M000100">add_expr_debug</a>&nbsp;&nbsp;
84
- <a href="#M000099">add_expr_escaped</a>&nbsp;&nbsp;
85
- <a href="#M000098">add_expr_literal</a>&nbsp;&nbsp;
86
- <a href="#M000101">add_postamble</a>&nbsp;&nbsp;
87
- <a href="#M000095">add_preamble</a>&nbsp;&nbsp;
88
- <a href="#M000097">add_stmt</a>&nbsp;&nbsp;
89
- <a href="#M000096">add_text</a>&nbsp;&nbsp;
90
- <a href="#M000091">escape_text</a>&nbsp;&nbsp;
91
- <a href="#M000092">escaped_expr</a>&nbsp;&nbsp;
92
- <a href="#M000090">init_generator</a>&nbsp;&nbsp;
93
- <a href="#M000093">switch_to_expr</a>&nbsp;&nbsp;
94
- <a href="#M000094">switch_to_stmt</a>&nbsp;&nbsp;
83
+ <a href="#M000105">add_expr_debug</a>&nbsp;&nbsp;
84
+ <a href="#M000104">add_expr_escaped</a>&nbsp;&nbsp;
85
+ <a href="#M000103">add_expr_literal</a>&nbsp;&nbsp;
86
+ <a href="#M000106">add_postamble</a>&nbsp;&nbsp;
87
+ <a href="#M000100">add_preamble</a>&nbsp;&nbsp;
88
+ <a href="#M000102">add_stmt</a>&nbsp;&nbsp;
89
+ <a href="#M000101">add_text</a>&nbsp;&nbsp;
90
+ <a href="#M000096">escape_text</a>&nbsp;&nbsp;
91
+ <a href="#M000097">escaped_expr</a>&nbsp;&nbsp;
92
+ <a href="#M000095">init_generator</a>&nbsp;&nbsp;
93
+ <a href="#M000098">switch_to_expr</a>&nbsp;&nbsp;
94
+ <a href="#M000099">switch_to_stmt</a>&nbsp;&nbsp;
95
95
  </div>
96
96
  </div>
97
97
 
@@ -120,19 +120,19 @@
120
120
  <div id="methods">
121
121
  <h3 class="section-bar">Public Instance methods</h3>
122
122
 
123
- <div id="method-M000090" class="method-detail">
124
- <a name="M000090"></a>
123
+ <div id="method-M000095" class="method-detail">
124
+ <a name="M000095"></a>
125
125
 
126
126
  <div class="method-heading">
127
- <a href="#M000090" class="method-signature">
127
+ <a href="#M000095" class="method-signature">
128
128
  <span class="method-name">init_generator</span><span class="method-args">(properties={})</span>
129
129
  </a>
130
130
  </div>
131
131
 
132
132
  <div class="method-description">
133
133
  <p><a class="source-toggle" href="#"
134
- onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
135
- <div class="method-source-code" id="M000090-source">
134
+ onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
135
+ <div class="method-source-code" id="M000095-source">
136
136
  <pre>
137
137
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 21</span>
138
138
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_generator</span>(<span class="ruby-identifier">properties</span>={})
@@ -148,19 +148,19 @@
148
148
 
149
149
  <h3 class="section-bar">Protected Instance methods</h3>
150
150
 
151
- <div id="method-M000100" class="method-detail">
152
- <a name="M000100"></a>
151
+ <div id="method-M000105" class="method-detail">
152
+ <a name="M000105"></a>
153
153
 
154
154
  <div class="method-heading">
155
- <a href="#M000100" class="method-signature">
155
+ <a href="#M000105" class="method-signature">
156
156
  <span class="method-name">add_expr_debug</span><span class="method-args">(src, code)</span>
157
157
  </a>
158
158
  </div>
159
159
 
160
160
  <div class="method-description">
161
161
  <p><a class="source-toggle" href="#"
162
- onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
163
- <div class="method-source-code" id="M000100-source">
162
+ onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
163
+ <div class="method-source-code" id="M000105-source">
164
164
  <pre>
165
165
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 86</span>
166
166
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_debug</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -173,19 +173,19 @@
173
173
  </div>
174
174
  </div>
175
175
 
176
- <div id="method-M000099" class="method-detail">
177
- <a name="M000099"></a>
176
+ <div id="method-M000104" class="method-detail">
177
+ <a name="M000104"></a>
178
178
 
179
179
  <div class="method-heading">
180
- <a href="#M000099" class="method-signature">
180
+ <a href="#M000104" class="method-signature">
181
181
  <span class="method-name">add_expr_escaped</span><span class="method-args">(src, code)</span>
182
182
  </a>
183
183
  </div>
184
184
 
185
185
  <div class="method-description">
186
186
  <p><a class="source-toggle" href="#"
187
- onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
188
- <div class="method-source-code" id="M000099-source">
187
+ onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
188
+ <div class="method-source-code" id="M000104-source">
189
189
  <pre>
190
190
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 80</span>
191
191
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_escaped</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -198,19 +198,19 @@
198
198
  </div>
199
199
  </div>
200
200
 
201
- <div id="method-M000098" class="method-detail">
202
- <a name="M000098"></a>
201
+ <div id="method-M000103" class="method-detail">
202
+ <a name="M000103"></a>
203
203
 
204
204
  <div class="method-heading">
205
- <a href="#M000098" class="method-signature">
205
+ <a href="#M000103" class="method-signature">
206
206
  <span class="method-name">add_expr_literal</span><span class="method-args">(src, code)</span>
207
207
  </a>
208
208
  </div>
209
209
 
210
210
  <div class="method-description">
211
211
  <p><a class="source-toggle" href="#"
212
- onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
213
- <div class="method-source-code" id="M000098-source">
212
+ onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
213
+ <div class="method-source-code" id="M000103-source">
214
214
  <pre>
215
215
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 74</span>
216
216
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_literal</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -223,19 +223,19 @@
223
223
  </div>
224
224
  </div>
225
225
 
226
- <div id="method-M000101" class="method-detail">
227
- <a name="M000101"></a>
226
+ <div id="method-M000106" class="method-detail">
227
+ <a name="M000106"></a>
228
228
 
229
229
  <div class="method-heading">
230
- <a href="#M000101" class="method-signature">
230
+ <a href="#M000106" class="method-signature">
231
231
  <span class="method-name">add_postamble</span><span class="method-args">(src)</span>
232
232
  </a>
233
233
  </div>
234
234
 
235
235
  <div class="method-description">
236
236
  <p><a class="source-toggle" href="#"
237
- onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
238
- <div class="method-source-code" id="M000101-source">
237
+ onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
238
+ <div class="method-source-code" id="M000106-source">
239
239
  <pre>
240
240
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 92</span>
241
241
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
@@ -247,19 +247,19 @@
247
247
  </div>
248
248
  </div>
249
249
 
250
- <div id="method-M000095" class="method-detail">
251
- <a name="M000095"></a>
250
+ <div id="method-M000100" class="method-detail">
251
+ <a name="M000100"></a>
252
252
 
253
253
  <div class="method-heading">
254
- <a href="#M000095" class="method-signature">
254
+ <a href="#M000100" class="method-signature">
255
255
  <span class="method-name">add_preamble</span><span class="method-args">(src)</span>
256
256
  </a>
257
257
  </div>
258
258
 
259
259
  <div class="method-description">
260
260
  <p><a class="source-toggle" href="#"
261
- onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
262
- <div class="method-source-code" id="M000095-source">
261
+ onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
262
+ <div class="method-source-code" id="M000100-source">
263
263
  <pre>
264
264
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 51</span>
265
265
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
@@ -271,19 +271,19 @@
271
271
  </div>
272
272
  </div>
273
273
 
274
- <div id="method-M000097" class="method-detail">
275
- <a name="M000097"></a>
274
+ <div id="method-M000102" class="method-detail">
275
+ <a name="M000102"></a>
276
276
 
277
277
  <div class="method-heading">
278
- <a href="#M000097" class="method-signature">
278
+ <a href="#M000102" class="method-signature">
279
279
  <span class="method-name">add_stmt</span><span class="method-args">(src, code)</span>
280
280
  </a>
281
281
  </div>
282
282
 
283
283
  <div class="method-description">
284
284
  <p><a class="source-toggle" href="#"
285
- onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
286
- <div class="method-source-code" id="M000097-source">
285
+ onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
286
+ <div class="method-source-code" id="M000102-source">
287
287
  <pre>
288
288
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 67</span>
289
289
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_stmt</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -297,19 +297,19 @@
297
297
  </div>
298
298
  </div>
299
299
 
300
- <div id="method-M000096" class="method-detail">
301
- <a name="M000096"></a>
300
+ <div id="method-M000101" class="method-detail">
301
+ <a name="M000101"></a>
302
302
 
303
303
  <div class="method-heading">
304
- <a href="#M000096" class="method-signature">
304
+ <a href="#M000101" class="method-signature">
305
305
  <span class="method-name">add_text</span><span class="method-args">(src, text)</span>
306
306
  </a>
307
307
  </div>
308
308
 
309
309
  <div class="method-description">
310
310
  <p><a class="source-toggle" href="#"
311
- onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
312
- <div class="method-source-code" id="M000096-source">
311
+ onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
312
+ <div class="method-source-code" id="M000101-source">
313
313
  <pre>
314
314
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 56</span>
315
315
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_text</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">text</span>)
@@ -327,19 +327,19 @@
327
327
  </div>
328
328
  </div>
329
329
 
330
- <div id="method-M000091" class="method-detail">
331
- <a name="M000091"></a>
330
+ <div id="method-M000096" class="method-detail">
331
+ <a name="M000096"></a>
332
332
 
333
333
  <div class="method-heading">
334
- <a href="#M000091" class="method-signature">
334
+ <a href="#M000096" class="method-signature">
335
335
  <span class="method-name">escape_text</span><span class="method-args">(text)</span>
336
336
  </a>
337
337
  </div>
338
338
 
339
339
  <div class="method-description">
340
340
  <p><a class="source-toggle" href="#"
341
- onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
342
- <div class="method-source-code" id="M000091-source">
341
+ onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
342
+ <div class="method-source-code" id="M000096-source">
343
343
  <pre>
344
344
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 30</span>
345
345
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>)
@@ -350,19 +350,19 @@
350
350
  </div>
351
351
  </div>
352
352
 
353
- <div id="method-M000092" class="method-detail">
354
- <a name="M000092"></a>
353
+ <div id="method-M000097" class="method-detail">
354
+ <a name="M000097"></a>
355
355
 
356
356
  <div class="method-heading">
357
- <a href="#M000092" class="method-signature">
357
+ <a href="#M000097" class="method-signature">
358
358
  <span class="method-name">escaped_expr</span><span class="method-args">(code)</span>
359
359
  </a>
360
360
  </div>
361
361
 
362
362
  <div class="method-description">
363
363
  <p><a class="source-toggle" href="#"
364
- onclick="toggleCode('M000092-source');return false;">[Source]</a></p>
365
- <div class="method-source-code" id="M000092-source">
364
+ onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
365
+ <div class="method-source-code" id="M000097-source">
366
366
  <pre>
367
367
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 34</span>
368
368
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escaped_expr</span>(<span class="ruby-identifier">code</span>)
@@ -374,19 +374,19 @@
374
374
  </div>
375
375
  </div>
376
376
 
377
- <div id="method-M000093" class="method-detail">
378
- <a name="M000093"></a>
377
+ <div id="method-M000098" class="method-detail">
378
+ <a name="M000098"></a>
379
379
 
380
380
  <div class="method-heading">
381
- <a href="#M000093" class="method-signature">
381
+ <a href="#M000098" class="method-signature">
382
382
  <span class="method-name">switch_to_expr</span><span class="method-args">(src)</span>
383
383
  </a>
384
384
  </div>
385
385
 
386
386
  <div class="method-description">
387
387
  <p><a class="source-toggle" href="#"
388
- onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
389
- <div class="method-source-code" id="M000093-source">
388
+ onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
389
+ <div class="method-source-code" id="M000098-source">
390
390
  <pre>
391
391
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 39</span>
392
392
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">switch_to_expr</span>(<span class="ruby-identifier">src</span>)
@@ -399,19 +399,19 @@
399
399
  </div>
400
400
  </div>
401
401
 
402
- <div id="method-M000094" class="method-detail">
403
- <a name="M000094"></a>
402
+ <div id="method-M000099" class="method-detail">
403
+ <a name="M000099"></a>
404
404
 
405
405
  <div class="method-heading">
406
- <a href="#M000094" class="method-signature">
406
+ <a href="#M000099" class="method-signature">
407
407
  <span class="method-name">switch_to_stmt</span><span class="method-args">(src)</span>
408
408
  </a>
409
409
  </div>
410
410
 
411
411
  <div class="method-description">
412
412
  <p><a class="source-toggle" href="#"
413
- onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
414
- <div class="method-source-code" id="M000094-source">
413
+ onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
414
+ <div class="method-source-code" id="M000099-source">
415
415
  <pre>
416
416
  <span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 45</span>
417
417
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">switch_to_stmt</span>(<span class="ruby-identifier">src</span>)