doc-api/classes/Erubis/PrintOutEnhancer.html in erubis-2.6.6 vs doc-api/classes/Erubis/PrintOutEnhancer.html in erubis-2.7.0
- old
+ new
@@ -87,15 +87,15 @@
<div id="method-list">
<h3 class="section-bar">Methods</h3>
<div class="name-list">
- <a href="#M000180">add_expr_escaped</a>
- <a href="#M000179">add_expr_literal</a>
- <a href="#M000181">add_postamble</a>
- <a href="#M000177">add_preamble</a>
- <a href="#M000178">add_text</a>
+ <a href="#M000183">add_expr_escaped</a>
+ <a href="#M000182">add_expr_literal</a>
+ <a href="#M000184">add_postamble</a>
+ <a href="#M000180">add_preamble</a>
+ <a href="#M000181">add_text</a>
</div>
</div>
</div>
@@ -113,117 +113,117 @@
<!-- if method_list -->
<div id="methods">
<h3 class="section-bar">Public Instance methods</h3>
- <div id="method-M000180" class="method-detail">
- <a name="M000180"></a>
+ <div id="method-M000183" class="method-detail">
+ <a name="M000183"></a>
<div class="method-heading">
- <a href="#M000180" class="method-signature">
+ <a href="#M000183" class="method-signature">
<span class="method-name">add_expr_escaped</span><span class="method-args">(src, code)</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000180-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000180-source">
+ onclick="toggleCode('M000183-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000183-source">
<pre>
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 102</span>
<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>)
- <span class="ruby-identifier">src</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">' print '</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">escaped_expr</span>(<span class="ruby-identifier">code</span>) <span class="ruby-operator"><<</span> <span class="ruby-value str">';'</span>
+ <span class="ruby-identifier">src</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" print #{escaped_expr(code)};"</span>
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
- <div id="method-M000179" class="method-detail">
- <a name="M000179"></a>
+ <div id="method-M000182" class="method-detail">
+ <a name="M000182"></a>
<div class="method-heading">
- <a href="#M000179" class="method-signature">
+ <a href="#M000182" class="method-signature">
<span class="method-name">add_expr_literal</span><span class="method-args">(src, code)</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000179-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000179-source">
+ onclick="toggleCode('M000182-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000182-source">
<pre>
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 98</span>
<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>)
- <span class="ruby-identifier">src</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">' print(('</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">code</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">').to_s);'</span>
+ <span class="ruby-identifier">src</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" print((#{code}).to_s);"</span>
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
- <div id="method-M000181" class="method-detail">
- <a name="M000181"></a>
+ <div id="method-M000184" class="method-detail">
+ <a name="M000184"></a>
<div class="method-heading">
- <a href="#M000181" class="method-signature">
+ <a href="#M000184" class="method-signature">
<span class="method-name">add_postamble</span><span class="method-args">(src)</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000181-source">
+ onclick="toggleCode('M000184-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000184-source">
<pre>
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 106</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
<span class="ruby-identifier">src</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</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>
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
- <div id="method-M000177" class="method-detail">
- <a name="M000177"></a>
+ <div id="method-M000180" class="method-detail">
+ <a name="M000180"></a>
<div class="method-heading">
- <a href="#M000177" class="method-signature">
+ <a href="#M000180" class="method-signature">
<span class="method-name">add_preamble</span><span class="method-args">(src)</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000177-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000177-source">
+ onclick="toggleCode('M000180-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000180-source">
<pre>
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 91</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
- <div id="method-M000178" class="method-detail">
- <a name="M000178"></a>
+ <div id="method-M000181" class="method-detail">
+ <a name="M000181"></a>
<div class="method-heading">
- <a href="#M000178" class="method-signature">
+ <a href="#M000181" class="method-signature">
<span class="method-name">add_text</span><span class="method-args">(src, text)</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000178-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000178-source">
+ onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000181-source">
<pre>
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 94</span>
<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>)
- <span class="ruby-identifier">src</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">" print '"</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>) <span class="ruby-operator"><<</span> <span class="ruby-value str">"';"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">text</span>.<span class="ruby-identifier">empty?</span>
+ <span class="ruby-identifier">src</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" print '#{escape_text(text)}';"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">text</span>.<span class="ruby-identifier">empty?</span>
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
\ No newline at end of file