erubis 2.6.0 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +12 -3
- data/README.txt +1 -1
- data/benchmark/bench.rb +1 -1
- data/bin/erubis +1 -1
- data/contrib/erubis +1 -1
- data/contrib/inline-require +1 -1
- data/doc-api/classes/ActionView/TemplateHandlers/{Erubis.html → ErubisHandler.html} +14 -35
- data/doc-api/classes/Erubis.html +1 -1
- data/doc-api/classes/Erubis/ArrayBufferEnhancer.html +12 -12
- data/doc-api/classes/Erubis/ArrayEnhancer.html +12 -12
- data/doc-api/classes/Erubis/Basic/Converter.html +24 -24
- data/doc-api/classes/Erubis/BiPatternEnhancer.html +12 -12
- data/doc-api/classes/Erubis/CGenerator.html +60 -60
- data/doc-api/classes/Erubis/Context.html +42 -42
- data/doc-api/classes/Erubis/Converter.html +27 -27
- data/doc-api/classes/Erubis/DeleteIndentEnhancer.html +6 -6
- data/doc-api/classes/Erubis/Engine.html +30 -30
- data/doc-api/classes/Erubis/ErboutEnhancer.html +12 -12
- data/doc-api/classes/Erubis/EscapeEnhancer.html +6 -6
- data/doc-api/classes/Erubis/Evaluator.html +19 -19
- data/doc-api/classes/Erubis/Generator.html +60 -60
- data/doc-api/classes/Erubis/HeaderFooterEnhancer.html +12 -12
- data/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +149 -149
- data/doc-api/classes/Erubis/Helpers/RailsHelper.html +49 -49
- data/doc-api/classes/Erubis/Helpers/RailsHelper/TemplateConverter.html +12 -12
- data/doc-api/classes/Erubis/InterpolationEnhancer.html +30 -30
- data/doc-api/classes/Erubis/JavaGenerator.html +54 -54
- data/doc-api/classes/Erubis/JavascriptGenerator.html +60 -60
- data/doc-api/classes/Erubis/Main.html +19 -19
- data/doc-api/classes/Erubis/NoCodeEnhancer.html +30 -30
- data/doc-api/classes/Erubis/NoTextEnhancer.html +6 -6
- data/doc-api/classes/Erubis/OptimizedEruby.html +6 -6
- data/doc-api/classes/Erubis/OptimizedGenerator.html +72 -72
- data/doc-api/classes/Erubis/OptimizedXmlEruby.html +6 -6
- data/doc-api/classes/Erubis/PI/Converter.html +18 -18
- data/doc-api/classes/Erubis/PI/Ec.html +6 -6
- data/doc-api/classes/Erubis/PI/Ejava.html +6 -6
- data/doc-api/classes/Erubis/PI/Ejavascript.html +6 -6
- data/doc-api/classes/Erubis/PI/Eperl.html +6 -6
- data/doc-api/classes/Erubis/PI/Ephp.html +6 -6
- data/doc-api/classes/Erubis/PI/Eruby.html +6 -6
- data/doc-api/classes/Erubis/PI/Escheme.html +6 -6
- data/doc-api/classes/Erubis/PI/TinyEruby.html +24 -24
- data/doc-api/classes/Erubis/PercentLineEnhancer.html +6 -6
- data/doc-api/classes/Erubis/PerlGenerator.html +54 -54
- data/doc-api/classes/Erubis/PhpGenerator.html +54 -54
- data/doc-api/classes/Erubis/PreprocessingEruby.html +12 -12
- data/doc-api/classes/Erubis/PreprocessingHelper.html +22 -22
- data/doc-api/classes/Erubis/PrintEnabledEnhancer.html +20 -20
- data/doc-api/classes/Erubis/PrintOutEnhancer.html +30 -30
- data/doc-api/classes/Erubis/RubyEvaluator.html +18 -18
- data/doc-api/classes/Erubis/RubyGenerator.html +48 -48
- data/doc-api/classes/Erubis/SchemeGenerator.html +60 -60
- data/doc-api/classes/Erubis/SimplifyEnhancer.html +7 -7
- data/doc-api/classes/Erubis/StdoutEnhancer.html +12 -12
- data/doc-api/classes/Erubis/StringBufferEnhancer.html +12 -12
- data/doc-api/classes/Erubis/TinyEruby.html +24 -24
- data/doc-api/classes/Erubis/XmlHelper.html +30 -30
- data/doc-api/created.rid +1 -1
- data/doc-api/files/README_txt.html +2 -2
- data/doc-api/files/erubis/context_rb.html +1 -1
- data/doc-api/files/erubis/converter_rb.html +2 -2
- data/doc-api/files/erubis/engine/ec_rb.html +1 -1
- data/doc-api/files/erubis/engine/ejava_rb.html +1 -1
- data/doc-api/files/erubis/engine/ejavascript_rb.html +1 -1
- data/doc-api/files/erubis/engine/enhanced_rb.html +1 -1
- data/doc-api/files/erubis/engine/eperl_rb.html +1 -1
- data/doc-api/files/erubis/engine/ephp_rb.html +1 -1
- data/doc-api/files/erubis/engine/eruby_rb.html +2 -2
- data/doc-api/files/erubis/engine/escheme_rb.html +1 -1
- data/doc-api/files/erubis/engine/optimized_rb.html +2 -2
- data/doc-api/files/erubis/engine_rb.html +1 -1
- data/doc-api/files/erubis/enhancer_rb.html +1 -1
- data/doc-api/files/erubis/error_rb.html +1 -1
- data/doc-api/files/erubis/evaluator_rb.html +1 -1
- data/doc-api/files/erubis/generator_rb.html +1 -1
- data/doc-api/files/erubis/helper_rb.html +1 -1
- data/doc-api/files/erubis/helpers/rails_form_helper_rb.html +1 -1
- data/doc-api/files/erubis/helpers/rails_helper_rb.html +2 -2
- data/doc-api/files/erubis/local-setting_rb.html +1 -1
- data/doc-api/files/erubis/main_rb.html +1 -1
- data/doc-api/files/erubis/preprocessing_rb.html +1 -1
- data/doc-api/files/erubis/tiny_rb.html +1 -1
- data/doc-api/files/erubis_rb.html +1 -1
- data/doc-api/fr_class_index.html +1 -1
- data/doc-api/fr_method_index.html +221 -222
- data/doc/users-guide.html +5 -5
- data/lib/erubis.rb +2 -2
- data/lib/erubis/context.rb +1 -1
- data/lib/erubis/converter.rb +1 -1
- data/lib/erubis/converter.rb: +0 -0
- data/lib/erubis/engine.rb +1 -1
- data/lib/erubis/engine/ec.rb +1 -1
- data/lib/erubis/engine/ejava.rb +1 -1
- data/lib/erubis/engine/ejavascript.rb +1 -1
- data/lib/erubis/engine/enhanced.rb +1 -1
- data/lib/erubis/engine/eperl.rb +1 -1
- data/lib/erubis/engine/ephp.rb +1 -1
- data/lib/erubis/engine/eruby.rb +1 -1
- data/lib/erubis/engine/escheme.rb +1 -1
- data/lib/erubis/engine/optimized.rb +1 -1
- data/lib/erubis/enhancer.rb +1 -1
- data/lib/erubis/error.rb +1 -1
- data/lib/erubis/evaluator.rb +1 -1
- data/lib/erubis/generator.rb +1 -1
- data/lib/erubis/helper.rb +1 -1
- data/lib/erubis/helpers/rails_form_helper.rb +1 -1
- data/lib/erubis/helpers/rails_helper.rb +53 -21
- data/lib/erubis/local-setting.rb +1 -1
- data/lib/erubis/main.rb +1 -1
- data/lib/erubis/preprocessing.rb +1 -1
- data/lib/erubis/tiny.rb +1 -1
- data/test/assert-text-equal.rb +1 -1
- data/test/test-engines.rb +1 -1
- data/test/test-enhancers.rb +1 -1
- data/test/test-erubis.rb +1 -1
- data/test/test-main.rb +2 -2
- data/test/test-users-guide.rb +1 -1
- data/test/test.rb +1 -1
- data/test/testutil.rb +1 -1
- metadata +4 -3
data/CHANGES.txt
CHANGED
@@ -1,10 +1,19 @@
|
|
1
|
-
# $Rev:
|
2
|
-
# $Release: 2.6.
|
1
|
+
# $Rev: 113 $
|
2
|
+
# $Release: 2.6.1 $
|
3
3
|
# copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
4
4
|
|
5
5
|
|
6
|
+
- release: 2.6.1
|
7
|
+
date: 2008-06-06
|
8
|
+
enhancements:
|
9
|
+
|
10
|
+
- |
|
11
|
+
Rails 2.1 support. (special thanks José Valim)
|
12
|
+
|
13
|
+
|
14
|
+
|
6
15
|
- release: 2.6.0
|
7
|
-
date:
|
16
|
+
date: 2008-05-05
|
8
17
|
enhancements:
|
9
18
|
|
10
19
|
- |
|
data/README.txt
CHANGED
data/benchmark/bench.rb
CHANGED
data/bin/erubis
CHANGED
data/contrib/erubis
CHANGED
data/contrib/inline-require
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
7
|
<head>
|
8
|
-
<title>Class: ActionView::TemplateHandlers::
|
8
|
+
<title>Class: ActionView::TemplateHandlers::ErubisHandler</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
11
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
@@ -50,7 +50,7 @@
|
|
50
50
|
<table class="header-table">
|
51
51
|
<tr class="top-aligned-row">
|
52
52
|
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">ActionView::TemplateHandlers::
|
53
|
+
<td class="class-name-in-header">ActionView::TemplateHandlers::ErubisHandler</td>
|
54
54
|
</tr>
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
@@ -86,9 +86,8 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#M000003">_preprocessing_context_object</a>
|
90
89
|
<a href="#M000001">compile</a>
|
91
|
-
<a href="#M000002">
|
90
|
+
<a href="#M000002">compile</a>
|
92
91
|
</div>
|
93
92
|
</div>
|
94
93
|
|
@@ -100,8 +99,11 @@
|
|
100
99
|
<h3 class="section-bar">Included Modules</h3>
|
101
100
|
|
102
101
|
<div id="includes-list">
|
103
|
-
<span class="include-name"
|
104
|
-
<span class="include-name"><a href="../../Erubis/
|
102
|
+
<span class="include-name">Compilable</span>
|
103
|
+
<span class="include-name"><a href="../../Erubis/Helpers/RailsHelper/TemplateConverter.html">Erubis::Helpers::RailsHelper::TemplateConverter</a></span>
|
104
|
+
<span class="include-name"><a href="../../Erubis/PreprocessingHelper.html">Erubis::PreprocessingHelper</a></span>
|
105
|
+
<span class="include-name"><a href="../../Erubis/Helpers/RailsHelper/TemplateConverter.html">Erubis::Helpers::RailsHelper::TemplateConverter</a></span>
|
106
|
+
<span class="include-name"><a href="../../Erubis/PreprocessingHelper.html">Erubis::PreprocessingHelper</a></span>
|
105
107
|
</div>
|
106
108
|
</div>
|
107
109
|
|
@@ -118,29 +120,6 @@
|
|
118
120
|
<div id="methods">
|
119
121
|
<h3 class="section-bar">Public Instance methods</h3>
|
120
122
|
|
121
|
-
<div id="method-M000003" class="method-detail">
|
122
|
-
<a name="M000003"></a>
|
123
|
-
|
124
|
-
<div class="method-heading">
|
125
|
-
<a href="#M000003" class="method-signature">
|
126
|
-
<span class="method-name">_preprocessing_context_object</span><span class="method-args">()</span>
|
127
|
-
</a>
|
128
|
-
</div>
|
129
|
-
|
130
|
-
<div class="method-description">
|
131
|
-
<p><a class="source-toggle" href="#"
|
132
|
-
onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
|
133
|
-
<div class="method-source-code" id="M000003-source">
|
134
|
-
<pre>
|
135
|
-
<span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 154</span>
|
136
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_preprocessing_context_object</span>
|
137
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@view</span>.<span class="ruby-identifier">controller</span>.<span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-value str">'@template'</span>)
|
138
|
-
<span class="ruby-keyword kw">end</span>
|
139
|
-
</pre>
|
140
|
-
</div>
|
141
|
-
</div>
|
142
|
-
</div>
|
143
|
-
|
144
123
|
<div id="method-M000001" class="method-detail">
|
145
124
|
<a name="M000001"></a>
|
146
125
|
|
@@ -155,9 +134,9 @@
|
|
155
134
|
onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
|
156
135
|
<div class="method-source-code" id="M000001-source">
|
157
136
|
<pre>
|
158
|
-
<span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line
|
137
|
+
<span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 150</span>
|
159
138
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">compile</span>(<span class="ruby-identifier">template</span>)
|
160
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">_convert_template</span>(<span class="ruby-identifier">template</span>)
|
139
|
+
<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>
|
161
140
|
<span class="ruby-keyword kw">end</span>
|
162
141
|
</pre>
|
163
142
|
</div>
|
@@ -169,7 +148,7 @@
|
|
169
148
|
|
170
149
|
<div class="method-heading">
|
171
150
|
<a href="#M000002" class="method-signature">
|
172
|
-
<span class="method-name">
|
151
|
+
<span class="method-name">compile</span><span class="method-args">(template)</span>
|
173
152
|
</a>
|
174
153
|
</div>
|
175
154
|
|
@@ -178,9 +157,9 @@
|
|
178
157
|
onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
|
179
158
|
<div class="method-source-code" id="M000002-source">
|
180
159
|
<pre>
|
181
|
-
<span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line
|
182
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
183
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-
|
160
|
+
<span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 180</span>
|
161
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">compile</span>(<span class="ruby-identifier">template</span>)
|
162
|
+
<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>
|
184
163
|
<span class="ruby-keyword kw">end</span>
|
185
164
|
</pre>
|
186
165
|
</div>
|
data/doc-api/classes/Erubis.html
CHANGED
@@ -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.
|
331
|
+
<td class="context-item-value">('$Release: 2.6.1 $' =~ /([.\d]+)/) && $1</td>
|
332
332
|
</tr>
|
333
333
|
</table>
|
334
334
|
</div>
|
@@ -90,8 +90,8 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
90
90
|
<h3 class="section-bar">Methods</h3>
|
91
91
|
|
92
92
|
<div class="name-list">
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
93
|
+
<a href="#M000009">add_postamble</a>
|
94
|
+
<a href="#M000008">add_preamble</a>
|
95
95
|
</div>
|
96
96
|
</div>
|
97
97
|
|
@@ -113,19 +113,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
113
113
|
<div id="methods">
|
114
114
|
<h3 class="section-bar">Public Instance methods</h3>
|
115
115
|
|
116
|
-
<div id="method-
|
117
|
-
<a name="
|
116
|
+
<div id="method-M000009" class="method-detail">
|
117
|
+
<a name="M000009"></a>
|
118
118
|
|
119
119
|
<div class="method-heading">
|
120
|
-
<a href="#
|
120
|
+
<a href="#M000009" class="method-signature">
|
121
121
|
<span class="method-name">add_postamble</span><span class="method-args">(src)</span>
|
122
122
|
</a>
|
123
123
|
</div>
|
124
124
|
|
125
125
|
<div class="method-description">
|
126
126
|
<p><a class="source-toggle" href="#"
|
127
|
-
onclick="toggleCode('
|
128
|
-
<div class="method-source-code" id="
|
127
|
+
onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
|
128
|
+
<div class="method-source-code" id="M000009-source">
|
129
129
|
<pre>
|
130
130
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 192</span>
|
131
131
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -137,19 +137,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
137
137
|
</div>
|
138
138
|
</div>
|
139
139
|
|
140
|
-
<div id="method-
|
141
|
-
<a name="
|
140
|
+
<div id="method-M000008" class="method-detail">
|
141
|
+
<a name="M000008"></a>
|
142
142
|
|
143
143
|
<div class="method-heading">
|
144
|
-
<a href="#
|
144
|
+
<a href="#M000008" class="method-signature">
|
145
145
|
<span class="method-name">add_preamble</span><span class="method-args">(src)</span>
|
146
146
|
</a>
|
147
147
|
</div>
|
148
148
|
|
149
149
|
<div class="method-description">
|
150
150
|
<p><a class="source-toggle" href="#"
|
151
|
-
onclick="toggleCode('
|
152
|
-
<div class="method-source-code" id="
|
151
|
+
onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
|
152
|
+
<div class="method-source-code" id="M000008-source">
|
153
153
|
<pre>
|
154
154
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 188</span>
|
155
155
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -89,8 +89,8 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
89
89
|
<h3 class="section-bar">Methods</h3>
|
90
90
|
|
91
91
|
<div class="name-list">
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
92
|
+
<a href="#M000193">add_postamble</a>
|
93
|
+
<a href="#M000192">add_preamble</a>
|
94
94
|
</div>
|
95
95
|
</div>
|
96
96
|
|
@@ -112,19 +112,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
112
112
|
<div id="methods">
|
113
113
|
<h3 class="section-bar">Public Instance methods</h3>
|
114
114
|
|
115
|
-
<div id="method-
|
116
|
-
<a name="
|
115
|
+
<div id="method-M000193" class="method-detail">
|
116
|
+
<a name="M000193"></a>
|
117
117
|
|
118
118
|
<div class="method-heading">
|
119
|
-
<a href="#
|
119
|
+
<a href="#M000193" class="method-signature">
|
120
120
|
<span class="method-name">add_postamble</span><span class="method-args">(src)</span>
|
121
121
|
</a>
|
122
122
|
</div>
|
123
123
|
|
124
124
|
<div class="method-description">
|
125
125
|
<p><a class="source-toggle" href="#"
|
126
|
-
onclick="toggleCode('
|
127
|
-
<div class="method-source-code" id="
|
126
|
+
onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
|
127
|
+
<div class="method-source-code" id="M000193-source">
|
128
128
|
<pre>
|
129
129
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 169</span>
|
130
130
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -136,19 +136,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
136
136
|
</div>
|
137
137
|
</div>
|
138
138
|
|
139
|
-
<div id="method-
|
140
|
-
<a name="
|
139
|
+
<div id="method-M000192" class="method-detail">
|
140
|
+
<a name="M000192"></a>
|
141
141
|
|
142
142
|
<div class="method-heading">
|
143
|
-
<a href="#
|
143
|
+
<a href="#M000192" class="method-signature">
|
144
144
|
<span class="method-name">add_preamble</span><span class="method-args">(src)</span>
|
145
145
|
</a>
|
146
146
|
</div>
|
147
147
|
|
148
148
|
<div class="method-description">
|
149
149
|
<p><a class="source-toggle" href="#"
|
150
|
-
onclick="toggleCode('
|
151
|
-
<div class="method-source-code" id="
|
150
|
+
onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
|
151
|
+
<div class="method-source-code" id="M000192-source">
|
152
152
|
<pre>
|
153
153
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 165</span>
|
154
154
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -86,10 +86,10 @@ basic converter which supports ’<% … %>’ notation.
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
89
|
+
<a href="#M000061">add_expr</a>
|
90
|
+
<a href="#M000060">convert_input</a>
|
91
|
+
<a href="#M000058">init_converter</a>
|
92
|
+
<a href="#M000059">pattern_regexp</a>
|
93
93
|
</div>
|
94
94
|
</div>
|
95
95
|
|
@@ -156,11 +156,11 @@ DEFAULT_REGEXP = /<%(=+|\#)?(.*?)-?%>([ \t]*\r?\n)?/m
|
|
156
156
|
<div id="methods">
|
157
157
|
<h3 class="section-bar">Public Instance methods</h3>
|
158
158
|
|
159
|
-
<div id="method-
|
160
|
-
<a name="
|
159
|
+
<div id="method-M000061" class="method-detail">
|
160
|
+
<a name="M000061"></a>
|
161
161
|
|
162
162
|
<div class="method-heading">
|
163
|
-
<a href="#
|
163
|
+
<a href="#M000061" class="method-signature">
|
164
164
|
<span class="method-name">add_expr</span><span class="method-args">(src, code, indicator)</span>
|
165
165
|
</a>
|
166
166
|
</div>
|
@@ -170,8 +170,8 @@ DEFAULT_REGEXP = /<%(=+|\#)?(.*?)-?%>([ \t]*\r?\n)?/m
|
|
170
170
|
add expression code to src
|
171
171
|
</p>
|
172
172
|
<p><a class="source-toggle" href="#"
|
173
|
-
onclick="toggleCode('
|
174
|
-
<div class="method-source-code" id="
|
173
|
+
onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
|
174
|
+
<div class="method-source-code" id="M000061-source">
|
175
175
|
<pre>
|
176
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>)
|
@@ -189,19 +189,19 @@ add expression code to src
|
|
189
189
|
</div>
|
190
190
|
</div>
|
191
191
|
|
192
|
-
<div id="method-
|
193
|
-
<a name="
|
192
|
+
<div id="method-M000060" class="method-detail">
|
193
|
+
<a name="M000060"></a>
|
194
194
|
|
195
195
|
<div class="method-heading">
|
196
|
-
<a href="#
|
196
|
+
<a href="#M000060" class="method-signature">
|
197
197
|
<span class="method-name">convert_input</span><span class="method-args">(src, input)</span>
|
198
198
|
</a>
|
199
199
|
</div>
|
200
200
|
|
201
201
|
<div class="method-description">
|
202
202
|
<p><a class="source-toggle" href="#"
|
203
|
-
onclick="toggleCode('
|
204
|
-
<div class="method-source-code" id="
|
203
|
+
onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
|
204
|
+
<div class="method-source-code" id="M000060-source">
|
205
205
|
<pre>
|
206
206
|
<span class="ruby-comment cmt"># File erubis/converter.rb, line 128</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>)
|
@@ -255,19 +255,19 @@ add expression code to src
|
|
255
255
|
</div>
|
256
256
|
</div>
|
257
257
|
|
258
|
-
<div id="method-
|
259
|
-
<a name="
|
258
|
+
<div id="method-M000058" class="method-detail">
|
259
|
+
<a name="M000058"></a>
|
260
260
|
|
261
261
|
<div class="method-heading">
|
262
|
-
<a href="#
|
262
|
+
<a href="#M000058" class="method-signature">
|
263
263
|
<span class="method-name">init_converter</span><span class="method-args">(properties={})</span>
|
264
264
|
</a>
|
265
265
|
</div>
|
266
266
|
|
267
267
|
<div class="method-description">
|
268
268
|
<p><a class="source-toggle" href="#"
|
269
|
-
onclick="toggleCode('
|
270
|
-
<div class="method-source-code" id="
|
269
|
+
onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
|
270
|
+
<div class="method-source-code" id="M000058-source">
|
271
271
|
<pre>
|
272
272
|
<span class="ruby-comment cmt"># File erubis/converter.rb, line 104</span>
|
273
273
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_converter</span>(<span class="ruby-identifier">properties</span>={})
|
@@ -282,11 +282,11 @@ add expression code to src
|
|
282
282
|
|
283
283
|
<h3 class="section-bar">Protected Instance methods</h3>
|
284
284
|
|
285
|
-
<div id="method-
|
286
|
-
<a name="
|
285
|
+
<div id="method-M000059" class="method-detail">
|
286
|
+
<a name="M000059"></a>
|
287
287
|
|
288
288
|
<div class="method-heading">
|
289
|
-
<a href="#
|
289
|
+
<a href="#M000059" class="method-signature">
|
290
290
|
<span class="method-name">pattern_regexp</span><span class="method-args">(pattern)</span>
|
291
291
|
</a>
|
292
292
|
</div>
|
@@ -296,8 +296,8 @@ add expression code to src
|
|
296
296
|
return regexp of pattern to parse eRuby script
|
297
297
|
</p>
|
298
298
|
<p><a class="source-toggle" href="#"
|
299
|
-
onclick="toggleCode('
|
300
|
-
<div class="method-source-code" id="
|
299
|
+
onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
|
300
|
+
<div class="method-source-code" id="M000059-source">
|
301
301
|
<pre>
|
302
302
|
<span class="ruby-comment cmt"># File erubis/converter.rb, line 113</span>
|
303
303
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pattern_regexp</span>(<span class="ruby-identifier">pattern</span>)
|
@@ -119,8 +119,8 @@ this is language independent.
|
|
119
119
|
<h3 class="section-bar">Methods</h3>
|
120
120
|
|
121
121
|
<div class="name-list">
|
122
|
-
<a href="#
|
123
|
-
<a href="#
|
122
|
+
<a href="#M000165">add_text</a>
|
123
|
+
<a href="#M000164">new</a>
|
124
124
|
</div>
|
125
125
|
</div>
|
126
126
|
|
@@ -142,19 +142,19 @@ this is language independent.
|
|
142
142
|
<div id="methods">
|
143
143
|
<h3 class="section-bar">Public Class methods</h3>
|
144
144
|
|
145
|
-
<div id="method-
|
146
|
-
<a name="
|
145
|
+
<div id="method-M000164" class="method-detail">
|
146
|
+
<a name="M000164"></a>
|
147
147
|
|
148
148
|
<div class="method-heading">
|
149
|
-
<a href="#
|
149
|
+
<a href="#M000164" class="method-signature">
|
150
150
|
<span class="method-name">new</span><span class="method-args">(input, properties={})</span>
|
151
151
|
</a>
|
152
152
|
</div>
|
153
153
|
|
154
154
|
<div class="method-description">
|
155
155
|
<p><a class="source-toggle" href="#"
|
156
|
-
onclick="toggleCode('
|
157
|
-
<div class="method-source-code" id="
|
156
|
+
onclick="toggleCode('M000164-source');return false;">[Source]</a></p>
|
157
|
+
<div class="method-source-code" id="M000164-source">
|
158
158
|
<pre>
|
159
159
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 408</span>
|
160
160
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">input</span>, <span class="ruby-identifier">properties</span>={})
|
@@ -168,19 +168,19 @@ this is language independent.
|
|
168
168
|
|
169
169
|
<h3 class="section-bar">Public Instance methods</h3>
|
170
170
|
|
171
|
-
<div id="method-
|
172
|
-
<a name="
|
171
|
+
<div id="method-M000165" class="method-detail">
|
172
|
+
<a name="M000165"></a>
|
173
173
|
|
174
174
|
<div class="method-heading">
|
175
|
-
<a href="#
|
175
|
+
<a href="#M000165" class="method-signature">
|
176
176
|
<span class="method-name">add_text</span><span class="method-args">(src, text)</span>
|
177
177
|
</a>
|
178
178
|
</div>
|
179
179
|
|
180
180
|
<div class="method-description">
|
181
181
|
<p><a class="source-toggle" href="#"
|
182
|
-
onclick="toggleCode('
|
183
|
-
<div class="method-source-code" id="
|
182
|
+
onclick="toggleCode('M000165-source');return false;">[Source]</a></p>
|
183
|
+
<div class="method-source-code" id="M000165-source">
|
184
184
|
<pre>
|
185
185
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 420</span>
|
186
186
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_text</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">text</span>)
|