doc-api/classes/Erubis/PercentLineEnhancer.html in erubis-2.2.0 vs doc-api/classes/Erubis/PercentLineEnhancer.html in erubis-2.3.0
- old
+ new
@@ -75,11 +75,11 @@
<div id="description">
<p>
regards lines starting with ’%’ as program code
</p>
<p>
-this is for compatibility to eruby and <a href="../ERB.html">ERB</a>.
+this is for compatibility to eruby and ERB.
</p>
<p>
this is language-independent.
</p>
@@ -90,11 +90,11 @@
<div id="method-list">
<h3 class="section-bar">Methods</h3>
<div class="name-list">
- <a href="#M000145">add_text</a>
+ <a href="#M000150">add_text</a>
</div>
</div>
</div>
@@ -125,24 +125,24 @@
<!-- if method_list -->
<div id="methods">
<h3 class="section-bar">Public Instance methods</h3>
- <div id="method-M000145" class="method-detail">
- <a name="M000145"></a>
+ <div id="method-M000150" class="method-detail">
+ <a name="M000150"></a>
<div class="method-heading">
- <a href="#M000145" class="method-signature">
+ <a href="#M000150" 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('M000145-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000145-source">
+ onclick="toggleCode('M000150-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000150-source">
<pre>
-<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 450</span>
+<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 448</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">text</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-constant">PERCENT_LINE_PATTERN</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">txt</span>, <span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
<span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">txt</span>)
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">line</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?%</span>
<span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">line</span>)
\ No newline at end of file