doc-api/classes/Erubis/RubyGenerator.html in erubis-2.2.0 vs doc-api/classes/Erubis/RubyGenerator.html in erubis-2.3.0

- old
+ new

@@ -84,18 +84,18 @@ <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000036">add_expr_debug</a>&nbsp;&nbsp; - <a href="#M000035">add_expr_escaped</a>&nbsp;&nbsp; - <a href="#M000034">add_expr_literal</a>&nbsp;&nbsp; - <a href="#M000033">add_stmt</a>&nbsp;&nbsp; - <a href="#M000032">add_text</a>&nbsp;&nbsp; - <a href="#M000030">escape_text</a>&nbsp;&nbsp; - <a href="#M000031">escaped_expr</a>&nbsp;&nbsp; - <a href="#M000029">init_generator</a>&nbsp;&nbsp; + <a href="#M000041">add_expr_debug</a>&nbsp;&nbsp; + <a href="#M000040">add_expr_escaped</a>&nbsp;&nbsp; + <a href="#M000039">add_expr_literal</a>&nbsp;&nbsp; + <a href="#M000038">add_stmt</a>&nbsp;&nbsp; + <a href="#M000037">add_text</a>&nbsp;&nbsp; + <a href="#M000035">escape_text</a>&nbsp;&nbsp; + <a href="#M000036">escaped_expr</a>&nbsp;&nbsp; + <a href="#M000034">init_generator</a>&nbsp;&nbsp; </div> </div> </div> @@ -121,23 +121,23 @@ <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000036" class="method-detail"> - <a name="M000036"></a> + <div id="method-M000041" class="method-detail"> + <a name="M000041"></a> <div class="method-heading"> - <a href="#M000036" class="method-signature"> + <a href="#M000041" class="method-signature"> <span class="method-name">add_expr_debug</span><span class="method-args">(src, code)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000036-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000036-source"> + onclick="toggleCode('M000041-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000041-source"> <pre> <span class="ruby-comment cmt"># File erubis/engine/eruby.rb, line 63</span> <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>) <span class="ruby-identifier">code</span>.<span class="ruby-identifier">strip!</span> <span class="ruby-identifier">s</span> = (<span class="ruby-identifier">code</span>.<span class="ruby-identifier">dump</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/\A&quot;(.*)&quot;\z/</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">$1</span> @@ -146,69 +146,69 @@ </pre> </div> </div> </div> - <div id="method-M000035" class="method-detail"> - <a name="M000035"></a> + <div id="method-M000040" class="method-detail"> + <a name="M000040"></a> <div class="method-heading"> - <a href="#M000035" class="method-signature"> + <a href="#M000040" 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('M000035-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000035-source"> + onclick="toggleCode('M000040-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000040-source"> <pre> <span class="ruby-comment cmt"># File erubis/engine/eruby.rb, line 59</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">&lt;&lt;</span> <span class="ruby-value str">' _buf &lt;&lt; '</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> <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000034" class="method-detail"> - <a name="M000034"></a> + <div id="method-M000039" class="method-detail"> + <a name="M000039"></a> <div class="method-heading"> - <a href="#M000034" class="method-signature"> + <a href="#M000039" 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('M000034-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000034-source"> + onclick="toggleCode('M000039-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000039-source"> <pre> <span class="ruby-comment cmt"># File erubis/engine/eruby.rb, line 55</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">&lt;&lt;</span> <span class="ruby-value str">' _buf &lt;&lt; ('</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">code</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">').to_s;'</span> <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000033" class="method-detail"> - <a name="M000033"></a> + <div id="method-M000038" class="method-detail"> + <a name="M000038"></a> <div class="method-heading"> - <a href="#M000033" class="method-signature"> + <a href="#M000038" class="method-signature"> <span class="method-name">add_stmt</span><span class="method-args">(src, code)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000033-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000033-source"> + onclick="toggleCode('M000038-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000038-source"> <pre> <span class="ruby-comment cmt"># File erubis/engine/eruby.rb, line 49</span> <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>) <span class="ruby-comment cmt">#src &lt;&lt; code &lt;&lt; ';'</span> <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">code</span> @@ -217,91 +217,91 @@ </pre> </div> </div> </div> - <div id="method-M000032" class="method-detail"> - <a name="M000032"></a> + <div id="method-M000037" class="method-detail"> + <a name="M000037"></a> <div class="method-heading"> - <a href="#M000032" class="method-signature"> + <a href="#M000037" 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('M000032-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000032-source"> + onclick="toggleCode('M000037-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000037-source"> <pre> <span class="ruby-comment cmt"># File erubis/engine/eruby.rb, line 45</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">&lt;&lt;</span> <span class="ruby-value str">&quot; _buf &lt;&lt; '&quot;</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>) <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;';&quot;</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> - <div id="method-M000030" class="method-detail"> - <a name="M000030"></a> + <div id="method-M000035" class="method-detail"> + <a name="M000035"></a> <div class="method-heading"> - <a href="#M000030" class="method-signature"> + <a href="#M000035" class="method-signature"> <span class="method-name">escape_text</span><span class="method-args">(text)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000030-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000030-source"> + onclick="toggleCode('M000035-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000035-source"> <pre> <span class="ruby-comment cmt"># File erubis/engine/eruby.rb, line 31</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>) <span class="ruby-identifier">text</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/['\\]/</span>, <span class="ruby-value str">'\\\\\&amp;'</span>) <span class="ruby-comment cmt"># &quot;'&quot; =&gt; &quot;\\'&quot;, '\\' =&gt; '\\\\'</span> <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000031" class="method-detail"> - <a name="M000031"></a> + <div id="method-M000036" class="method-detail"> + <a name="M000036"></a> <div class="method-heading"> - <a href="#M000031" class="method-signature"> + <a href="#M000036" class="method-signature"> <span class="method-name">escaped_expr</span><span class="method-args">(code)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000031-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000031-source"> + onclick="toggleCode('M000036-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000036-source"> <pre> <span class="ruby-comment cmt"># File erubis/engine/eruby.rb, line 35</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escaped_expr</span>(<span class="ruby-identifier">code</span>) <span class="ruby-keyword kw">return</span> <span class="ruby-node">&quot;#{@escapefunc}(#{code})&quot;</span> <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000029" class="method-detail"> - <a name="M000029"></a> + <div id="method-M000034" class="method-detail"> + <a name="M000034"></a> <div class="method-heading"> - <a href="#M000029" class="method-signature"> + <a href="#M000034" class="method-signature"> <span class="method-name">init_generator</span><span class="method-args">(properties={})</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000029-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000029-source"> + onclick="toggleCode('M000034-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000034-source"> <pre> <span class="ruby-comment cmt"># File erubis/engine/eruby.rb, line 22</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_generator</span>(<span class="ruby-identifier">properties</span>={}) <span class="ruby-keyword kw">super</span> <span class="ruby-ivar">@escapefunc</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">&quot;Erubis::XmlHelper.escape_xml&quot;</span> \ No newline at end of file