erubis 2.6.4 → 2.6.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. data/CHANGES.txt +9 -2
  2. data/README.txt +1 -1
  3. data/benchmark/bench.rb +1 -2
  4. data/bin/erubis +1 -2
  5. data/contrib/erubis +43 -68
  6. data/contrib/inline-require +53 -27
  7. data/doc-api/classes/ActionView/TemplateHandlers/ErubisHandler.html +3 -3
  8. data/doc-api/classes/Erubis.html +1 -1
  9. data/doc-api/classes/Erubis/ArrayBufferEnhancer.html +2 -2
  10. data/doc-api/classes/Erubis/ArrayEnhancer.html +2 -2
  11. data/doc-api/classes/Erubis/Basic/Converter.html +4 -4
  12. data/doc-api/classes/Erubis/BiPatternEnhancer.html +2 -2
  13. data/doc-api/classes/Erubis/CGenerator.html +10 -10
  14. data/doc-api/classes/Erubis/Context.html +7 -7
  15. data/doc-api/classes/Erubis/Converter.html +4 -4
  16. data/doc-api/classes/Erubis/DeleteIndentEnhancer.html +1 -1
  17. data/doc-api/classes/Erubis/Engine.html +5 -5
  18. data/doc-api/classes/Erubis/ErboutEnhancer.html +2 -2
  19. data/doc-api/classes/Erubis/EscapeEnhancer.html +1 -1
  20. data/doc-api/classes/Erubis/Evaluator.html +3 -3
  21. data/doc-api/classes/Erubis/Generator.html +10 -10
  22. data/doc-api/classes/Erubis/HeaderFooterEnhancer.html +2 -2
  23. data/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +25 -25
  24. data/doc-api/classes/Erubis/Helpers/RailsHelper.html +8 -8
  25. data/doc-api/classes/Erubis/Helpers/RailsHelper/TemplateConverter.html +4 -4
  26. data/doc-api/classes/Erubis/InterpolationEnhancer.html +5 -5
  27. data/doc-api/classes/Erubis/JavaGenerator.html +9 -9
  28. data/doc-api/classes/Erubis/JavascriptGenerator.html +10 -10
  29. data/doc-api/classes/Erubis/Main.html +6 -5
  30. data/doc-api/classes/Erubis/NoCodeEnhancer.html +5 -5
  31. data/doc-api/classes/Erubis/NoTextEnhancer.html +1 -1
  32. data/doc-api/classes/Erubis/OptimizedEruby.html +1 -1
  33. data/doc-api/classes/Erubis/OptimizedGenerator.html +12 -12
  34. data/doc-api/classes/Erubis/OptimizedXmlEruby.html +1 -1
  35. data/doc-api/classes/Erubis/PI/Converter.html +3 -3
  36. data/doc-api/classes/Erubis/PI/Ec.html +1 -1
  37. data/doc-api/classes/Erubis/PI/Ejava.html +1 -1
  38. data/doc-api/classes/Erubis/PI/Ejavascript.html +1 -1
  39. data/doc-api/classes/Erubis/PI/Eperl.html +1 -1
  40. data/doc-api/classes/Erubis/PI/Ephp.html +1 -1
  41. data/doc-api/classes/Erubis/PI/Eruby.html +1 -1
  42. data/doc-api/classes/Erubis/PI/Escheme.html +1 -1
  43. data/doc-api/classes/Erubis/PI/TinyEruby.html +4 -4
  44. data/doc-api/classes/Erubis/PercentLineEnhancer.html +1 -1
  45. data/doc-api/classes/Erubis/PerlGenerator.html +9 -9
  46. data/doc-api/classes/Erubis/PhpGenerator.html +9 -9
  47. data/doc-api/classes/Erubis/PreprocessingEruby.html +2 -2
  48. data/doc-api/classes/Erubis/PreprocessingHelper.html +3 -3
  49. data/doc-api/classes/Erubis/PrintEnabledEnhancer.html +3 -3
  50. data/doc-api/classes/Erubis/PrintOutEnhancer.html +5 -5
  51. data/doc-api/classes/Erubis/RubyEvaluator.html +3 -3
  52. data/doc-api/classes/Erubis/RubyGenerator.html +8 -8
  53. data/doc-api/classes/Erubis/SchemeGenerator.html +10 -10
  54. data/doc-api/classes/Erubis/SimplifyEnhancer.html +1 -1
  55. data/doc-api/classes/Erubis/StdoutEnhancer.html +2 -2
  56. data/doc-api/classes/Erubis/StringBufferEnhancer.html +2 -2
  57. data/doc-api/classes/Erubis/TinyEruby.html +7 -8
  58. data/doc-api/classes/Erubis/XmlHelper.html +3 -3
  59. data/doc-api/created.rid +1 -1
  60. data/doc-api/files/README_txt.html +2 -2
  61. data/doc-api/files/erubis/context_rb.html +2 -2
  62. data/doc-api/files/erubis/converter_rb.html +2 -2
  63. data/doc-api/files/erubis/engine/ec_rb.html +2 -2
  64. data/doc-api/files/erubis/engine/ejava_rb.html +2 -2
  65. data/doc-api/files/erubis/engine/ejavascript_rb.html +2 -2
  66. data/doc-api/files/erubis/engine/enhanced_rb.html +2 -2
  67. data/doc-api/files/erubis/engine/eperl_rb.html +2 -2
  68. data/doc-api/files/erubis/engine/ephp_rb.html +2 -2
  69. data/doc-api/files/erubis/engine/eruby_rb.html +2 -2
  70. data/doc-api/files/erubis/engine/escheme_rb.html +2 -2
  71. data/doc-api/files/erubis/engine/optimized_rb.html +2 -2
  72. data/doc-api/files/erubis/engine_rb.html +2 -2
  73. data/doc-api/files/erubis/enhancer_rb.html +2 -2
  74. data/doc-api/files/erubis/error_rb.html +2 -2
  75. data/doc-api/files/erubis/evaluator_rb.html +2 -2
  76. data/doc-api/files/erubis/generator_rb.html +2 -2
  77. data/doc-api/files/erubis/helper_rb.html +2 -2
  78. data/doc-api/files/erubis/helpers/rails_form_helper_rb.html +2 -2
  79. data/doc-api/files/erubis/helpers/rails_helper_rb.html +2 -2
  80. data/doc-api/files/erubis/local-setting_rb.html +2 -2
  81. data/doc-api/files/erubis/main_rb.html +2 -2
  82. data/doc-api/files/erubis/preprocessing_rb.html +2 -2
  83. data/doc-api/files/erubis/tiny_rb.html +2 -2
  84. data/doc-api/files/erubis_rb.html +2 -2
  85. data/doc/users-guide.html +6 -6
  86. data/lib/erubis.rb +2 -3
  87. data/lib/erubis/context.rb +1 -2
  88. data/lib/erubis/converter.rb +1 -2
  89. data/lib/erubis/engine.rb +1 -2
  90. data/lib/erubis/engine/ec.rb +1 -2
  91. data/lib/erubis/engine/ejava.rb +1 -2
  92. data/lib/erubis/engine/ejavascript.rb +1 -2
  93. data/lib/erubis/engine/enhanced.rb +1 -2
  94. data/lib/erubis/engine/eperl.rb +1 -2
  95. data/lib/erubis/engine/ephp.rb +1 -2
  96. data/lib/erubis/engine/eruby.rb +1 -2
  97. data/lib/erubis/engine/escheme.rb +1 -2
  98. data/lib/erubis/engine/optimized.rb +1 -2
  99. data/lib/erubis/enhancer.rb +1 -2
  100. data/lib/erubis/error.rb +1 -2
  101. data/lib/erubis/evaluator.rb +1 -2
  102. data/lib/erubis/generator.rb +1 -2
  103. data/lib/erubis/helper.rb +1 -2
  104. data/lib/erubis/helpers/rails_form_helper.rb +1 -2
  105. data/lib/erubis/helpers/rails_helper.rb +1 -2
  106. data/lib/erubis/local-setting.rb +1 -2
  107. data/lib/erubis/main.rb +18 -21
  108. data/lib/erubis/preprocessing.rb +1 -2
  109. data/lib/erubis/tiny.rb +4 -6
  110. data/test/assert-text-equal.rb +1 -2
  111. data/test/test-engines.rb +1 -2
  112. data/test/test-enhancers.rb +1 -2
  113. data/test/test-erubis.rb +1 -2
  114. data/test/test-main.rb +36 -16
  115. data/test/test-users-guide.rb +1 -2
  116. data/test/test.rb +1 -2
  117. data/test/testutil.rb +3 -8
  118. metadata +2 -2
@@ -138,7 +138,7 @@
138
138
  onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
139
139
  <div class="method-source-code" id="M000001-source">
140
140
  <pre>
141
- <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 154</span>
141
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 153</span>
142
142
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">compile</span>(<span class="ruby-identifier">template</span>)
143
143
  <span class="ruby-comment cmt">#src = ::ERB.new(&quot;&lt;% __in_erb_template=true %&gt;#{template.source}&quot;, nil, erb_trim_mode, '@output_buffer').src</span>
144
144
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">_convert_template</span>(<span class="ruby-node">&quot;&lt;% __in_erb_template=true %&gt;#{template.source}&quot;</span>)
@@ -162,7 +162,7 @@
162
162
  onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
163
163
  <div class="method-source-code" id="M000002-source">
164
164
  <pre>
165
- <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 180</span>
165
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 179</span>
166
166
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">compile</span>(<span class="ruby-identifier">template</span>)
167
167
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">_convert_template</span>(<span class="ruby-identifier">template</span>.<span class="ruby-identifier">source</span>) <span class="ruby-comment cmt"># template.is_a?(ActionView::Template)</span>
168
168
  <span class="ruby-keyword kw">end</span>
@@ -185,7 +185,7 @@
185
185
  onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
186
186
  <div class="method-source-code" id="M000003-source">
187
187
  <pre>
188
- <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 210</span>
188
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 209</span>
189
189
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">compile</span>(<span class="ruby-identifier">template</span>)
190
190
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">_convert_template</span>(<span class="ruby-identifier">template</span>) <span class="ruby-comment cmt"># template.is_a?(String)</span>
191
191
  <span class="ruby-keyword kw">end</span>
@@ -328,7 +328,7 @@ Class <a href="Erubis/XmlEruby.html" class="link">Erubis::XmlEruby</a><br />
328
328
  <tr class="top-aligned-row context-row">
329
329
  <td class="context-item-name">VERSION</td>
330
330
  <td>=</td>
331
- <td class="context-item-value">('$Release: 2.6.4 $' =~ /([.\d]+)/) &amp;&amp; $1</td>
331
+ <td class="context-item-value">('$Release: 2.6.5 $' =~ /([.\d]+)/) &amp;&amp; $1</td>
332
332
  </tr>
333
333
  </table>
334
334
  </div>
@@ -127,7 +127,7 @@ this is only for <a href="Eruby.html">Eruby</a>.
127
127
  onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
128
128
  <div class="method-source-code" id="M000010-source">
129
129
  <pre>
130
- <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 192</span>
130
+ <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 191</span>
131
131
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
132
132
  <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-keyword kw">unless</span> <span class="ruby-identifier">src</span>[<span class="ruby-value">-1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?\n</span>
133
133
  <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;_buf.join\n&quot;</span>
@@ -151,7 +151,7 @@ this is only for <a href="Eruby.html">Eruby</a>.
151
151
  onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
152
152
  <div class="method-source-code" id="M000009-source">
153
153
  <pre>
154
- <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 188</span>
154
+ <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 187</span>
155
155
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
156
156
  <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;_buf = [];&quot;</span>
157
157
  <span class="ruby-keyword kw">end</span>
@@ -126,7 +126,7 @@ this is only for <a href="Eruby.html">Eruby</a>.
126
126
  onclick="toggleCode('M000194-source');return false;">[Source]</a></p>
127
127
  <div class="method-source-code" id="M000194-source">
128
128
  <pre>
129
- <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 169</span>
129
+ <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 168</span>
130
130
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
131
131
  <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-keyword kw">unless</span> <span class="ruby-identifier">src</span>[<span class="ruby-value">-1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?\n</span>
132
132
  <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;_buf\n&quot;</span>
@@ -150,7 +150,7 @@ this is only for <a href="Eruby.html">Eruby</a>.
150
150
  onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
151
151
  <div class="method-source-code" id="M000193-source">
152
152
  <pre>
153
- <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 165</span>
153
+ <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 164</span>
154
154
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
155
155
  <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;_buf = [];&quot;</span>
156
156
  <span class="ruby-keyword kw">end</span>
@@ -173,7 +173,7 @@ add expression code to src
173
173
  onclick="toggleCode('M000141-source');return false;">[Source]</a></p>
174
174
  <div class="method-source-code" id="M000141-source">
175
175
  <pre>
176
- <span class="ruby-comment cmt"># File erubis/converter.rb, line 177</span>
176
+ <span class="ruby-comment cmt"># File erubis/converter.rb, line 176</span>
177
177
  <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>)
178
178
  <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">indicator</span>
179
179
  <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'='</span>
@@ -203,7 +203,7 @@ add expression code to src
203
203
  onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
204
204
  <div class="method-source-code" id="M000140-source">
205
205
  <pre>
206
- <span class="ruby-comment cmt"># File erubis/converter.rb, line 128</span>
206
+ <span class="ruby-comment cmt"># File erubis/converter.rb, line 127</span>
207
207
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert_input</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">input</span>)
208
208
  <span class="ruby-identifier">pat</span> = <span class="ruby-ivar">@pattern</span>
209
209
  <span class="ruby-identifier">regexp</span> = <span class="ruby-identifier">pat</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">pat</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'&lt;% %&gt;'</span> <span class="ruby-operator">?</span> <span class="ruby-constant">DEFAULT_REGEXP</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">pattern_regexp</span>(<span class="ruby-identifier">pat</span>)
@@ -270,7 +270,7 @@ add expression code to src
270
270
  onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
271
271
  <div class="method-source-code" id="M000138-source">
272
272
  <pre>
273
- <span class="ruby-comment cmt"># File erubis/converter.rb, line 104</span>
273
+ <span class="ruby-comment cmt"># File erubis/converter.rb, line 103</span>
274
274
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_converter</span>(<span class="ruby-identifier">properties</span>={})
275
275
  <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">properties</span>)
276
276
  <span class="ruby-ivar">@pattern</span> = <span class="ruby-identifier">properties</span>[<span class="ruby-identifier">:pattern</span>]
@@ -300,7 +300,7 @@ return regexp of pattern to parse eRuby script
300
300
  onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
301
301
  <div class="method-source-code" id="M000139-source">
302
302
  <pre>
303
- <span class="ruby-comment cmt"># File erubis/converter.rb, line 113</span>
303
+ <span class="ruby-comment cmt"># File erubis/converter.rb, line 112</span>
304
304
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pattern_regexp</span>(<span class="ruby-identifier">pattern</span>)
305
305
  <span class="ruby-ivar">@prefix</span>, <span class="ruby-ivar">@postfix</span> = <span class="ruby-identifier">pattern</span>.<span class="ruby-identifier">split</span>() <span class="ruby-comment cmt"># '&lt;% %&gt;' =&gt; '&lt;%', '%&gt;'</span>
306
306
  <span class="ruby-comment cmt">#return /(.*?)(^[ \t]*)?#{@prefix}(=+|\#)?(.*?)-?#{@postfix}([ \t]*\r?\n)?/m</span>
@@ -156,7 +156,7 @@ this is language independent.
156
156
  onclick="toggleCode('M000149-source');return false;">[Source]</a></p>
157
157
  <div class="method-source-code" id="M000149-source">
158
158
  <pre>
159
- <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 409</span>
159
+ <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 408</span>
160
160
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">input</span>, <span class="ruby-identifier">properties</span>={})
161
161
  <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">bipattern</span> = <span class="ruby-identifier">properties</span>[<span class="ruby-identifier">:bipattern</span>] <span class="ruby-comment cmt"># or '\$\{ \}'</span>
162
162
  <span class="ruby-keyword kw">super</span>
@@ -182,7 +182,7 @@ this is language independent.
182
182
  onclick="toggleCode('M000150-source');return false;">[Source]</a></p>
183
183
  <div class="method-source-code" id="M000150-source">
184
184
  <pre>
185
- <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 421</span>
185
+ <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 420</span>
186
186
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_text</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">text</span>)
187
187
  <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">text</span>
188
188
  <span class="ruby-identifier">m</span> = <span class="ruby-keyword kw">nil</span>
@@ -132,7 +132,7 @@
132
132
  onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
133
133
  <div class="method-source-code" id="M000136-source">
134
134
  <pre>
135
- <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 73</span>
135
+ <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 72</span>
136
136
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_debug</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
137
137
  <span class="ruby-identifier">code</span>.<span class="ruby-identifier">strip!</span>
138
138
  <span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">nil</span>
@@ -161,7 +161,7 @@
161
161
  onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
162
162
  <div class="method-source-code" id="M000135-source">
163
163
  <pre>
164
- <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 68</span>
164
+ <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 67</span>
165
165
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_escaped</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
166
166
  <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@indent</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">src</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">src</span>[<span class="ruby-value">-1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?\n</span>
167
167
  <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">' '</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">escaped_expr</span>(<span class="ruby-identifier">code</span>) <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">';'</span>
@@ -185,7 +185,7 @@
185
185
  onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
186
186
  <div class="method-source-code" id="M000134-source">
187
187
  <pre>
188
- <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 63</span>
188
+ <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 62</span>
189
189
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_literal</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
190
190
  <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@indent</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">src</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">src</span>[<span class="ruby-value">-1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?\n</span>
191
191
  <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; fprintf(#{@out}, &quot;</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">code</span>.<span class="ruby-identifier">strip</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">');'</span>
@@ -209,7 +209,7 @@
209
209
  onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
210
210
  <div class="method-source-code" id="M000137-source">
211
211
  <pre>
212
- <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 83</span>
212
+ <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 82</span>
213
213
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
214
214
  <span class="ruby-comment cmt"># empty</span>
215
215
  <span class="ruby-keyword kw">end</span>
@@ -232,7 +232,7 @@
232
232
  onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
233
233
  <div class="method-source-code" id="M000129-source">
234
234
  <pre>
235
- <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 31</span>
235
+ <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 30</span>
236
236
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
237
237
  <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#line 1 \&quot;#{self.filename}\&quot;\n&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">filename</span>
238
238
  <span class="ruby-keyword kw">end</span>
@@ -255,7 +255,7 @@
255
255
  onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
256
256
  <div class="method-source-code" id="M000133-source">
257
257
  <pre>
258
- <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 59</span>
258
+ <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 58</span>
259
259
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_stmt</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
260
260
  <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">code</span>
261
261
  <span class="ruby-keyword kw">end</span>
@@ -278,7 +278,7 @@
278
278
  onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
279
279
  <div class="method-source-code" id="M000132-source">
280
280
  <pre>
281
- <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 45</span>
281
+ <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 44</span>
282
282
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_text</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">text</span>)
283
283
  <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">text</span>.<span class="ruby-identifier">empty?</span>
284
284
  <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">src</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">src</span>[<span class="ruby-value">-1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?\n</span> <span class="ruby-operator">?</span> <span class="ruby-ivar">@indent</span> <span class="ruby-operator">:</span> <span class="ruby-value str">' '</span>)
@@ -311,7 +311,7 @@
311
311
  onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
312
312
  <div class="method-source-code" id="M000130-source">
313
313
  <pre>
314
- <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 35</span>
314
+ <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 34</span>
315
315
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>)
316
316
  <span class="ruby-ivar">@@table_</span> <span class="ruby-operator">||=</span> { <span class="ruby-value str">&quot;\r&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;\\r&quot;</span>, <span class="ruby-value str">&quot;\n&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;\\n&quot;</span>, <span class="ruby-value str">&quot;\t&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;\\t&quot;</span>, <span class="ruby-value str">'&quot;'</span>=<span class="ruby-operator">&gt;</span><span class="ruby-value str">'\\&quot;'</span>, <span class="ruby-value str">&quot;\\&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;\\\\&quot;</span> }
317
317
  <span class="ruby-identifier">text</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/[\r\n\t&quot;\\]/</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@@table_</span>[<span class="ruby-identifier">m</span>] }
@@ -336,7 +336,7 @@
336
336
  onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
337
337
  <div class="method-source-code" id="M000131-source">
338
338
  <pre>
339
- <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 41</span>
339
+ <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 40</span>
340
340
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escaped_expr</span>(<span class="ruby-identifier">code</span>)
341
341
  <span class="ruby-keyword kw">return</span> <span class="ruby-node">&quot;#{@escapefunc}(#{code.strip}, #{@out})&quot;</span>
342
342
  <span class="ruby-keyword kw">end</span>
@@ -359,7 +359,7 @@
359
359
  onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
360
360
  <div class="method-source-code" id="M000128-source">
361
361
  <pre>
362
- <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 24</span>
362
+ <span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 23</span>
363
363
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_generator</span>(<span class="ruby-identifier">properties</span>={})
364
364
  <span class="ruby-keyword kw">super</span>
365
365
  <span class="ruby-ivar">@escapefunc</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">&quot;escape&quot;</span>
@@ -161,7 +161,7 @@ ex.
161
161
  onclick="toggleCode('M000218-source');return false;">[Source]</a></p>
162
162
  <div class="method-source-code" id="M000218-source">
163
163
  <pre>
164
- <span class="ruby-comment cmt"># File erubis/context.rb, line 34</span>
164
+ <span class="ruby-comment cmt"># File erubis/context.rb, line 33</span>
165
165
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">hash</span>=<span class="ruby-keyword kw">nil</span>)
166
166
  <span class="ruby-identifier">hash</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
167
167
  <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">name</span>] = <span class="ruby-identifier">value</span>
@@ -188,7 +188,7 @@ ex.
188
188
  onclick="toggleCode('M000219-source');return false;">[Source]</a></p>
189
189
  <div class="method-source-code" id="M000219-source">
190
190
  <pre>
191
- <span class="ruby-comment cmt"># File erubis/context.rb, line 40</span>
191
+ <span class="ruby-comment cmt"># File erubis/context.rb, line 39</span>
192
192
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
193
193
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-node">&quot;@#{key}&quot;</span>)
194
194
  <span class="ruby-keyword kw">end</span>
@@ -211,7 +211,7 @@ ex.
211
211
  onclick="toggleCode('M000220-source');return false;">[Source]</a></p>
212
212
  <div class="method-source-code" id="M000220-source">
213
213
  <pre>
214
- <span class="ruby-comment cmt"># File erubis/context.rb, line 44</span>
214
+ <span class="ruby-comment cmt"># File erubis/context.rb, line 43</span>
215
215
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
216
216
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-node">&quot;@#{key}&quot;</span>, <span class="ruby-identifier">value</span>)
217
217
  <span class="ruby-keyword kw">end</span>
@@ -234,7 +234,7 @@ ex.
234
234
  onclick="toggleCode('M000222-source');return false;">[Source]</a></p>
235
235
  <div class="method-source-code" id="M000222-source">
236
236
  <pre>
237
- <span class="ruby-comment cmt"># File erubis/context.rb, line 52</span>
237
+ <span class="ruby-comment cmt"># File erubis/context.rb, line 51</span>
238
238
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>
239
239
  <span class="ruby-identifier">instance_variables</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
240
240
  <span class="ruby-identifier">key</span> = <span class="ruby-identifier">name</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
@@ -261,7 +261,7 @@ ex.
261
261
  onclick="toggleCode('M000221-source');return false;">[Source]</a></p>
262
262
  <div class="method-source-code" id="M000221-source">
263
263
  <pre>
264
- <span class="ruby-comment cmt"># File erubis/context.rb, line 48</span>
264
+ <span class="ruby-comment cmt"># File erubis/context.rb, line 47</span>
265
265
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">keys</span>
266
266
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">instance_variables</span>.<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span> <span class="ruby-identifier">name</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>] }
267
267
  <span class="ruby-keyword kw">end</span>
@@ -284,7 +284,7 @@ ex.
284
284
  onclick="toggleCode('M000223-source');return false;">[Source]</a></p>
285
285
  <div class="method-source-code" id="M000223-source">
286
286
  <pre>
287
- <span class="ruby-comment cmt"># File erubis/context.rb, line 60</span>
287
+ <span class="ruby-comment cmt"># File erubis/context.rb, line 59</span>
288
288
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_hash</span>
289
289
  <span class="ruby-identifier">hash</span> = {}
290
290
  <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] }
@@ -309,7 +309,7 @@ ex.
309
309
  onclick="toggleCode('M000224-source');return false;">[Source]</a></p>
310
310
  <div class="method-source-code" id="M000224-source">
311
311
  <pre>
312
- <span class="ruby-comment cmt"># File erubis/context.rb, line 66</span>
312
+ <span class="ruby-comment cmt"># File erubis/context.rb, line 65</span>
313
313
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>(<span class="ruby-identifier">context_or_hash</span>)
314
314
  <span class="ruby-identifier">arg</span> = <span class="ruby-identifier">context_or_hash</span>
315
315
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
@@ -152,7 +152,7 @@ language
152
152
  onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
153
153
  <div class="method-source-code" id="M000063-source">
154
154
  <pre>
155
- <span class="ruby-comment cmt"># File erubis/converter.rb, line 34</span>
155
+ <span class="ruby-comment cmt"># File erubis/converter.rb, line 33</span>
156
156
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert</span>(<span class="ruby-identifier">input</span>)
157
157
  <span class="ruby-identifier">codebuf</span> = <span class="ruby-value str">&quot;&quot;</span> <span class="ruby-comment cmt"># or []</span>
158
158
  <span class="ruby-ivar">@preamble</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span><span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">codebuf</span>) <span class="ruby-operator">:</span> (<span class="ruby-ivar">@preamble</span> <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">codebuf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@preamble</span>))
@@ -180,7 +180,7 @@ language
180
180
  onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
181
181
  <div class="method-source-code" id="M000062-source">
182
182
  <pre>
183
- <span class="ruby-comment cmt"># File erubis/converter.rb, line 27</span>
183
+ <span class="ruby-comment cmt"># File erubis/converter.rb, line 26</span>
184
184
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_converter</span>(<span class="ruby-identifier">properties</span>={})
185
185
  <span class="ruby-ivar">@preamble</span> = <span class="ruby-identifier">properties</span>[<span class="ruby-identifier">:preamble</span>]
186
186
  <span class="ruby-ivar">@postamble</span> = <span class="ruby-identifier">properties</span>[<span class="ruby-identifier">:postamble</span>]
@@ -210,7 +210,7 @@ language
210
210
  onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
211
211
  <div class="method-source-code" id="M000065-source">
212
212
  <pre>
213
- <span class="ruby-comment cmt"># File erubis/converter.rb, line 78</span>
213
+ <span class="ruby-comment cmt"># File erubis/converter.rb, line 77</span>
214
214
  <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>)
215
215
  <span class="ruby-identifier">not_implemented</span>
216
216
  <span class="ruby-keyword kw">end</span>
@@ -236,7 +236,7 @@ detect spaces at beginning of line
236
236
  onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
237
237
  <div class="method-source-code" id="M000064-source">
238
238
  <pre>
239
- <span class="ruby-comment cmt"># File erubis/converter.rb, line 48</span>
239
+ <span class="ruby-comment cmt"># File erubis/converter.rb, line 47</span>
240
240
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">detect_spaces_at_bol</span>(<span class="ruby-identifier">text</span>, <span class="ruby-identifier">is_bol</span>)
241
241
  <span class="ruby-identifier">lspace</span> = <span class="ruby-keyword kw">nil</span>
242
242
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">text</span>.<span class="ruby-identifier">empty?</span>
@@ -125,7 +125,7 @@ this is language-independent.
125
125
  onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
126
126
  <div class="method-source-code" id="M000192-source">
127
127
  <pre>
128
- <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 579</span>
128
+ <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 578</span>
129
129
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert_input</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">input</span>)
130
130
  <span class="ruby-identifier">input</span> = <span class="ruby-identifier">input</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/^[ \t]+&lt;/</span>, <span class="ruby-value str">'&lt;'</span>)
131
131
  <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">input</span>)
@@ -139,7 +139,7 @@ default.
139
139
  onclick="toggleCode('M000211-source');return false;">[Source]</a></p>
140
140
  <div class="method-source-code" id="M000211-source">
141
141
  <pre>
142
- <span class="ruby-comment cmt"># File erubis/engine.rb, line 49</span>
142
+ <span class="ruby-comment cmt"># File erubis/engine.rb, line 48</span>
143
143
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">load_file</span>(<span class="ruby-identifier">filename</span>, <span class="ruby-identifier">properties</span>={})
144
144
  <span class="ruby-identifier">cachename</span> = <span class="ruby-identifier">properties</span>[<span class="ruby-identifier">:cachename</span>] <span class="ruby-operator">||</span> (<span class="ruby-identifier">filename</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'.cache'</span>)
145
145
  <span class="ruby-identifier">properties</span>[<span class="ruby-identifier">:filename</span>] = <span class="ruby-identifier">filename</span>
@@ -182,7 +182,7 @@ href="Generator.html">Generator</a>
182
182
  onclick="toggleCode('M000209-source');return false;">[Source]</a></p>
183
183
  <div class="method-source-code" id="M000209-source">
184
184
  <pre>
185
- <span class="ruby-comment cmt"># File erubis/engine.rb, line 26</span>
185
+ <span class="ruby-comment cmt"># File erubis/engine.rb, line 25</span>
186
186
  <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">properties</span>={})
187
187
  <span class="ruby-comment cmt">#@input = input</span>
188
188
  <span class="ruby-identifier">init_generator</span>(<span class="ruby-identifier">properties</span>)
@@ -214,7 +214,7 @@ convert input string and set it to @src
214
214
  onclick="toggleCode('M000210-source');return false;">[Source]</a></p>
215
215
  <div class="method-source-code" id="M000210-source">
216
216
  <pre>
217
- <span class="ruby-comment cmt"># File erubis/engine.rb, line 38</span>
217
+ <span class="ruby-comment cmt"># File erubis/engine.rb, line 37</span>
218
218
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert!</span>(<span class="ruby-identifier">input</span>)
219
219
  <span class="ruby-ivar">@src</span> = <span class="ruby-identifier">convert</span>(<span class="ruby-identifier">input</span>)
220
220
  <span class="ruby-keyword kw">end</span>
@@ -241,7 +241,7 @@ context may be Binding, Hash, or Object.
241
241
  onclick="toggleCode('M000212-source');return false;">[Source]</a></p>
242
242
  <div class="method-source-code" id="M000212-source">
243
243
  <pre>
244
- <span class="ruby-comment cmt"># File erubis/engine.rb, line 73</span>
244
+ <span class="ruby-comment cmt"># File erubis/engine.rb, line 72</span>
245
245
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process</span>(<span class="ruby-identifier">input</span>, <span class="ruby-identifier">context</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">filename</span>=<span class="ruby-keyword kw">nil</span>)
246
246
  <span class="ruby-identifier">code</span> = <span class="ruby-identifier">convert</span>(<span class="ruby-identifier">input</span>)
247
247
  <span class="ruby-identifier">filename</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">'(erubis)'</span>
@@ -275,7 +275,7 @@ Binding, Hash, or Object.
275
275
  onclick="toggleCode('M000213-source');return false;">[Source]</a></p>
276
276
  <div class="method-source-code" id="M000213-source">
277
277
  <pre>
278
- <span class="ruby-comment cmt"># File erubis/engine.rb, line 89</span>
278
+ <span class="ruby-comment cmt"># File erubis/engine.rb, line 88</span>
279
279
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_proc</span>(<span class="ruby-identifier">proc_obj</span>, <span class="ruby-identifier">context</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">filename</span>=<span class="ruby-keyword kw">nil</span>)
280
280
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">context</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Binding</span>)
281
281
  <span class="ruby-identifier">filename</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">'(erubis)'</span>
@@ -127,7 +127,7 @@ this is only for <a href="Eruby.html">Eruby</a>.
127
127
  onclick="toggleCode('M000176-source');return false;">[Source]</a></p>
128
128
  <div class="method-source-code" id="M000176-source">
129
129
  <pre>
130
- <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 261</span>
130
+ <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 260</span>
131
131
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
132
132
  <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-keyword kw">unless</span> <span class="ruby-identifier">src</span>[<span class="ruby-value">-1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?\n</span>
133
133
  <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;_buf.to_s\n&quot;</span>
@@ -151,7 +151,7 @@ this is only for <a href="Eruby.html">Eruby</a>.
151
151
  onclick="toggleCode('M000175-source');return false;">[Source]</a></p>
152
152
  <div class="method-source-code" id="M000175-source">
153
153
  <pre>
154
- <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 257</span>
154
+ <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 256</span>
155
155
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
156
156
  <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;_erbout = _buf = '';&quot;</span>
157
157
  <span class="ruby-keyword kw">end</span>
@@ -134,7 +134,7 @@ this is language-indenedent.
134
134
  onclick="toggleCode('M000182-source');return false;">[Source]</a></p>
135
135
  <div class="method-source-code" id="M000182-source">
136
136
  <pre>
137
- <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 38</span>
137
+ <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 37</span>
138
138
  <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>)
139
139
  <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">indicator</span>
140
140
  <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'='</span>
@@ -142,7 +142,7 @@
142
142
  onclick="toggleCode('M000148-source');return false;">[Source]</a></p>
143
143
  <div class="method-source-code" id="M000148-source">
144
144
  <pre>
145
- <span class="ruby-comment cmt"># File erubis/evaluator.rb, line 35</span>
145
+ <span class="ruby-comment cmt"># File erubis/evaluator.rb, line 34</span>
146
146
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">evaluate</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
147
147
  <span class="ruby-identifier">raise</span> <span class="ruby-constant">NotSupportedError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;evaluation of code except Ruby is not supported.&quot;</span>)
148
148
  <span class="ruby-keyword kw">end</span>
@@ -165,7 +165,7 @@
165
165
  onclick="toggleCode('M000146-source');return false;">[Source]</a></p>
166
166
  <div class="method-source-code" id="M000146-source">
167
167
  <pre>
168
- <span class="ruby-comment cmt"># File erubis/evaluator.rb, line 27</span>
168
+ <span class="ruby-comment cmt"># File erubis/evaluator.rb, line 26</span>
169
169
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_evaluator</span>(<span class="ruby-identifier">properties</span>)
170
170
  <span class="ruby-ivar">@filename</span> = <span class="ruby-identifier">properties</span>[<span class="ruby-identifier">:filename</span>]
171
171
  <span class="ruby-keyword kw">end</span>
@@ -188,7 +188,7 @@
188
188
  onclick="toggleCode('M000147-source');return false;">[Source]</a></p>
189
189
  <div class="method-source-code" id="M000147-source">
190
190
  <pre>
191
- <span class="ruby-comment cmt"># File erubis/evaluator.rb, line 31</span>
191
+ <span class="ruby-comment cmt"># File erubis/evaluator.rb, line 30</span>
192
192
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">result</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
193
193
  <span class="ruby-identifier">raise</span> <span class="ruby-constant">NotSupportedError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;evaluation of code except Ruby is not supported.&quot;</span>)
194
194
  <span class="ruby-keyword kw">end</span>
@@ -148,7 +148,7 @@ add_expr().
148
148
  onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
149
149
  <div class="method-source-code" id="M000019-source">
150
150
  <pre>
151
- <span class="ruby-comment cmt"># File erubis/generator.rb, line 73</span>
151
+ <span class="ruby-comment cmt"># File erubis/generator.rb, line 72</span>
152
152
  <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>)
153
153
  <span class="ruby-identifier">not_implemented</span>
154
154
  <span class="ruby-keyword kw">end</span>
@@ -175,7 +175,7 @@ add_expr().
175
175
  onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
176
176
  <div class="method-source-code" id="M000018-source">
177
177
  <pre>
178
- <span class="ruby-comment cmt"># File erubis/generator.rb, line 68</span>
178
+ <span class="ruby-comment cmt"># File erubis/generator.rb, line 67</span>
179
179
  <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>)
180
180
  <span class="ruby-identifier">not_implemented</span>
181
181
  <span class="ruby-keyword kw">end</span>
@@ -202,7 +202,7 @@ add_expr().
202
202
  onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
203
203
  <div class="method-source-code" id="M000017-source">
204
204
  <pre>
205
- <span class="ruby-comment cmt"># File erubis/generator.rb, line 63</span>
205
+ <span class="ruby-comment cmt"># File erubis/generator.rb, line 62</span>
206
206
  <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>)
207
207
  <span class="ruby-identifier">not_implemented</span>
208
208
  <span class="ruby-keyword kw">end</span>
@@ -228,7 +228,7 @@ add_expr().
228
228
  onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
229
229
  <div class="method-source-code" id="M000020-source">
230
230
  <pre>
231
- <span class="ruby-comment cmt"># File erubis/generator.rb, line 78</span>
231
+ <span class="ruby-comment cmt"># File erubis/generator.rb, line 77</span>
232
232
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
233
233
  <span class="ruby-identifier">not_implemented</span>
234
234
  <span class="ruby-keyword kw">end</span>
@@ -254,7 +254,7 @@ add_expr().
254
254
  onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
255
255
  <div class="method-source-code" id="M000014-source">
256
256
  <pre>
257
- <span class="ruby-comment cmt"># File erubis/generator.rb, line 48</span>
257
+ <span class="ruby-comment cmt"># File erubis/generator.rb, line 47</span>
258
258
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
259
259
  <span class="ruby-identifier">not_implemented</span>
260
260
  <span class="ruby-keyword kw">end</span>
@@ -280,7 +280,7 @@ add_expr().
280
280
  onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
281
281
  <div class="method-source-code" id="M000016-source">
282
282
  <pre>
283
- <span class="ruby-comment cmt"># File erubis/generator.rb, line 58</span>
283
+ <span class="ruby-comment cmt"># File erubis/generator.rb, line 57</span>
284
284
  <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>)
285
285
  <span class="ruby-identifier">not_implemented</span>
286
286
  <span class="ruby-keyword kw">end</span>
@@ -306,7 +306,7 @@ add_expr().
306
306
  onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
307
307
  <div class="method-source-code" id="M000015-source">
308
308
  <pre>
309
- <span class="ruby-comment cmt"># File erubis/generator.rb, line 53</span>
309
+ <span class="ruby-comment cmt"># File erubis/generator.rb, line 52</span>
310
310
  <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>)
311
311
  <span class="ruby-identifier">not_implemented</span>
312
312
  <span class="ruby-keyword kw">end</span>
@@ -341,7 +341,7 @@ ex.
341
341
  onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
342
342
  <div class="method-source-code" id="M000012-source">
343
343
  <pre>
344
- <span class="ruby-comment cmt"># File erubis/generator.rb, line 37</span>
344
+ <span class="ruby-comment cmt"># File erubis/generator.rb, line 36</span>
345
345
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>)
346
346
  <span class="ruby-identifier">not_implemented</span>
347
347
  <span class="ruby-keyword kw">end</span>
@@ -368,7 +368,7 @@ return escaped expression code (ex. &#8216;h(&#8230;)&#8217; or
368
368
  onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
369
369
  <div class="method-source-code" id="M000013-source">
370
370
  <pre>
371
- <span class="ruby-comment cmt"># File erubis/generator.rb, line 42</span>
371
+ <span class="ruby-comment cmt"># File erubis/generator.rb, line 41</span>
372
372
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escaped_expr</span>(<span class="ruby-identifier">code</span>)
373
373
  <span class="ruby-identifier">code</span>.<span class="ruby-identifier">strip!</span>
374
374
  <span class="ruby-keyword kw">return</span> <span class="ruby-node">&quot;#{@escapefunc}(#{code})&quot;</span>
@@ -392,7 +392,7 @@ return escaped expression code (ex. &#8216;h(&#8230;)&#8217; or
392
392
  onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
393
393
  <div class="method-source-code" id="M000011-source">
394
394
  <pre>
395
- <span class="ruby-comment cmt"># File erubis/generator.rb, line 25</span>
395
+ <span class="ruby-comment cmt"># File erubis/generator.rb, line 24</span>
396
396
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_generator</span>(<span class="ruby-identifier">properties</span>={})
397
397
  <span class="ruby-ivar">@escapefunc</span> = <span class="ruby-identifier">properties</span>[<span class="ruby-identifier">:escapefunc</span>]
398
398
  <span class="ruby-keyword kw">end</span>