doc-api/classes/Erubis/PercentLineEnhancer.html in erubis-2.0.1 vs doc-api/classes/Erubis/PercentLineEnhancer.html in erubis-2.1.0

- old
+ new

@@ -90,11 +90,11 @@ <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000022">add_text</a>&nbsp;&nbsp; + <a href="#M000152">add_text</a>&nbsp;&nbsp; </div> </div> </div> @@ -125,24 +125,24 @@ <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000022" class="method-detail"> - <a name="M000022"></a> + <div id="method-M000152" class="method-detail"> + <a name="M000152"></a> <div class="method-heading"> - <a href="#M000022" class="method-signature"> + <a href="#M000152" 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('M000022-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000022-source"> + onclick="toggleCode('M000152-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000152-source"> <pre> -<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 390</span> +<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 424</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