doc-api/classes/Erubis/PhpGenerator.html in ghazel-erubis-2.6.5.1 vs doc-api/classes/Erubis/PhpGenerator.html in ghazel-erubis-2.7.0.1

- old
+ new

@@ -78,19 +78,19 @@ <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000125">add_expr_debug</a>&nbsp;&nbsp; - <a href="#M000124">add_expr_escaped</a>&nbsp;&nbsp; - <a href="#M000123">add_expr_literal</a>&nbsp;&nbsp; - <a href="#M000127">add_postamble</a>&nbsp;&nbsp; - <a href="#M000120">add_preamble</a>&nbsp;&nbsp; - <a href="#M000126">add_stmt</a>&nbsp;&nbsp; - <a href="#M000122">add_text</a>&nbsp;&nbsp; - <a href="#M000121">escape_text</a>&nbsp;&nbsp; - <a href="#M000119">init_generator</a>&nbsp;&nbsp; + <a href="#M000128">add_expr_debug</a>&nbsp;&nbsp; + <a href="#M000127">add_expr_escaped</a>&nbsp;&nbsp; + <a href="#M000126">add_expr_literal</a>&nbsp;&nbsp; + <a href="#M000130">add_postamble</a>&nbsp;&nbsp; + <a href="#M000123">add_preamble</a>&nbsp;&nbsp; + <a href="#M000129">add_stmt</a>&nbsp;&nbsp; + <a href="#M000125">add_text</a>&nbsp;&nbsp; + <a href="#M000124">escape_text</a>&nbsp;&nbsp; + <a href="#M000122">init_generator</a>&nbsp;&nbsp; </div> </div> </div> @@ -115,23 +115,23 @@ <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000125" class="method-detail"> - <a name="M000125"></a> + <div id="method-M000128" class="method-detail"> + <a name="M000128"></a> <div class="method-heading"> - <a href="#M000125" class="method-signature"> + <a href="#M000128" 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('M000125-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000125-source"> + onclick="toggleCode('M000128-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000128-source"> <pre> <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 46</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">gsub</span>(<span class="ruby-regexp re">/\'/</span>, <span class="ruby-value str">&quot;\\'&quot;</span>) @@ -140,46 +140,46 @@ </pre> </div> </div> </div> - <div id="method-M000124" class="method-detail"> - <a name="M000124"></a> + <div id="method-M000127" class="method-detail"> + <a name="M000127"></a> <div class="method-heading"> - <a href="#M000124" class="method-signature"> + <a href="#M000127" 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('M000124-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000124-source"> + onclick="toggleCode('M000127-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000127-source"> <pre> <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 42</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">add_expr_literal</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">escaped_expr</span>(<span class="ruby-identifier">code</span>)) <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000123" class="method-detail"> - <a name="M000123"></a> + <div id="method-M000126" class="method-detail"> + <a name="M000126"></a> <div class="method-heading"> - <a href="#M000123" class="method-signature"> + <a href="#M000126" 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('M000123-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000123-source"> + onclick="toggleCode('M000126-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000126-source"> <pre> <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 37</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">code</span>.<span class="ruby-identifier">strip!</span> <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;?php echo #{code}; ?&gt;&quot;</span> @@ -187,69 +187,69 @@ </pre> </div> </div> </div> - <div id="method-M000127" class="method-detail"> - <a name="M000127"></a> + <div id="method-M000130" class="method-detail"> + <a name="M000130"></a> <div class="method-heading"> - <a href="#M000127" class="method-signature"> + <a href="#M000130" 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('M000127-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000127-source"> + onclick="toggleCode('M000130-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000130-source"> <pre> <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 63</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>) <span class="ruby-comment cmt"># empty</span> <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000120" class="method-detail"> - <a name="M000120"></a> + <div id="method-M000123" class="method-detail"> + <a name="M000123"></a> <div class="method-heading"> - <a href="#M000120" class="method-signature"> + <a href="#M000123" 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('M000120-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000120-source"> + onclick="toggleCode('M000123-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000123-source"> <pre> <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 25</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>) <span class="ruby-comment cmt"># empty</span> <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000126" class="method-detail"> - <a name="M000126"></a> + <div id="method-M000129" class="method-detail"> + <a name="M000129"></a> <div class="method-heading"> - <a href="#M000126" class="method-signature"> + <a href="#M000129" 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('M000126-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000126-source"> + onclick="toggleCode('M000129-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000129-source"> <pre> <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 52</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-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;?php&quot;</span> <span class="ruby-identifier">src</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot; &quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">code</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">!=</span> <span class="ruby-value">?\ </span><span class="ruby-comment cmt">#</span> @@ -263,68 +263,68 @@ </pre> </div> </div> </div> - <div id="method-M000122" class="method-detail"> - <a name="M000122"></a> + <div id="method-M000125" class="method-detail"> + <a name="M000125"></a> <div class="method-heading"> - <a href="#M000122" class="method-signature"> + <a href="#M000125" 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('M000122-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000122-source"> + onclick="toggleCode('M000125-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000125-source"> <pre> <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 33</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-identifier">escape_text</span>(<span class="ruby-identifier">text</span>) <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000121" class="method-detail"> - <a name="M000121"></a> + <div id="method-M000124" class="method-detail"> + <a name="M000124"></a> <div class="method-heading"> - <a href="#M000121" class="method-signature"> + <a href="#M000124" 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('M000121-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000121-source"> + onclick="toggleCode('M000124-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000124-source"> <pre> <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 29</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>) <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">text</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/&lt;\?xml\b/</span>, <span class="ruby-value str">'&lt;&lt;?php ?&gt;?xml'</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">text</span> <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000119" class="method-detail"> - <a name="M000119"></a> + <div id="method-M000122" class="method-detail"> + <a name="M000122"></a> <div class="method-heading"> - <a href="#M000119" class="method-signature"> + <a href="#M000122" 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('M000119-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000119-source"> + onclick="toggleCode('M000122-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000122-source"> <pre> <span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 20</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">'htmlspecialchars'</span> \ No newline at end of file