doc/TaskJuggler/XMLElement.html in taskjuggler-0.0.8 vs doc/TaskJuggler/XMLElement.html in taskjuggler-0.0.9
- old
+ new
@@ -137,10 +137,12 @@
<li><a href="../TaskJuggler/AttributeBase.html">TaskJuggler::AttributeBase</a></li>
<li><a href="../TaskJuggler/AttributeDefinition.html">TaskJuggler::AttributeDefinition</a></li>
+ <li><a href="../TaskJuggler/AttributeOverwrite.html">TaskJuggler::AttributeOverwrite</a></li>
+
<li><a href="../TaskJuggler/BatchProcessor.html">TaskJuggler::BatchProcessor</a></li>
<li><a href="../TaskJuggler/Booking.html">TaskJuggler::Booking</a></li>
<li><a href="../TaskJuggler/BookingListAttribute.html">TaskJuggler::BookingListAttribute</a></li>
@@ -215,10 +217,12 @@
<li><a href="../TaskJuggler/HTMLGraphics.html">TaskJuggler::HTMLGraphics</a></li>
<li><a href="../TaskJuggler/Interval.html">TaskJuggler::Interval</a></li>
+ <li><a href="../TaskJuggler/IntervalList.html">TaskJuggler::IntervalList</a></li>
+
<li><a href="../TaskJuggler/IntervalListAttribute.html">TaskJuggler::IntervalListAttribute</a></li>
<li><a href="../TaskJuggler/JobInfo.html">TaskJuggler::JobInfo</a></li>
<li><a href="../TaskJuggler/Journal.html">TaskJuggler::Journal</a></li>
@@ -247,10 +251,12 @@
<li><a href="../TaskJuggler/LogicalExpression.html">TaskJuggler::LogicalExpression</a></li>
<li><a href="../TaskJuggler/LogicalExpressionAttribute.html">TaskJuggler::LogicalExpressionAttribute</a></li>
+ <li><a href="../TaskJuggler/LogicalExpressionListAttribute.html">TaskJuggler::LogicalExpressionListAttribute</a></li>
+
<li><a href="../TaskJuggler/LogicalFlag.html">TaskJuggler::LogicalFlag</a></li>
<li><a href="../TaskJuggler/LogicalFunction.html">TaskJuggler::LogicalFunction</a></li>
<li><a href="../TaskJuggler/LogicalOperation.html">TaskJuggler::LogicalOperation</a></li>
@@ -527,10 +533,12 @@
<li><a href="../TaskJuggler/VimSyntax.html">TaskJuggler::VimSyntax</a></li>
<li><a href="../TaskJuggler/WebServer.html">TaskJuggler::WebServer</a></li>
+ <li><a href="../TaskJuggler/WelcomePage.html">TaskJuggler::WelcomePage</a></li>
+
<li><a href="../TaskJuggler/WorkingHours.html">TaskJuggler::WorkingHours</a></li>
<li><a href="../TaskJuggler/WorkingHoursAttribute.html">TaskJuggler::WorkingHoursAttribute</a></li>
<li><a href="../TaskJuggler/XMLBlob.html">TaskJuggler::XMLBlob</a></li>
@@ -553,12 +561,10 @@
<li><a href="../RuntimeConfig.html">RuntimeConfig</a></li>
<li><a href="../String.html">String</a></li>
- <li><a href="../StringIO.html">StringIO</a></li>
-
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
@@ -609,27 +615,27 @@
<div class="method-source-code"
id="new-source">
<pre>
- <span class="ruby-comment cmt"># File lib/XMLElement.rb, line 22</span>
-22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">attributes</span> = {}, <span class="ruby-identifier">selfClosing</span> = <span class="ruby-keyword kw">false</span>)
-23: <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">name</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">attributes</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>) <span class="ruby-operator">||</span>
-24: (<span class="ruby-operator">!</span><span class="ruby-identifier">name</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span><span class="ruby-identifier">name</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>))
-25: <span class="ruby-identifier">raise</span> <span class="ruby-value str">"Name must be nil or a String "</span>
-26: <span class="ruby-keyword kw">end</span>
-27: <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
-28: <span class="ruby-identifier">attributes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">n</span>, <span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
-29: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">nil?</span>
-30: <span class="ruby-identifier">raise</span> <span class="ruby-node">"Attribute name (#{n}) or value (#{v}) may not be nil"</span>
-31: <span class="ruby-keyword kw">end</span>
-32: <span class="ruby-keyword kw">end</span>
-33: <span class="ruby-ivar">@attributes</span> = <span class="ruby-identifier">attributes</span>
-34: <span class="ruby-ivar">@children</span> = []
-35: <span class="ruby-comment cmt"># This can be set to true if <name /> is legal for this element.</span>
-36: <span class="ruby-ivar">@selfClosing</span> = <span class="ruby-identifier">selfClosing</span>
-37: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/XMLElement.rb, line 23</span>
+23: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">attributes</span> = {}, <span class="ruby-identifier">selfClosing</span> = <span class="ruby-keyword kw">false</span>)
+24: <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">name</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">attributes</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>) <span class="ruby-operator">||</span>
+25: (<span class="ruby-operator">!</span><span class="ruby-identifier">name</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span><span class="ruby-identifier">name</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>))
+26: <span class="ruby-identifier">raise</span> <span class="ruby-value str">"Name must be nil or a String "</span>
+27: <span class="ruby-keyword kw">end</span>
+28: <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
+29: <span class="ruby-identifier">attributes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">n</span>, <span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
+30: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">nil?</span>
+31: <span class="ruby-identifier">raise</span> <span class="ruby-node">"Attribute name (#{n}) or value (#{v}) may not be nil"</span>
+32: <span class="ruby-keyword kw">end</span>
+33: <span class="ruby-keyword kw">end</span>
+34: <span class="ruby-ivar">@attributes</span> = <span class="ruby-identifier">attributes</span>
+35: <span class="ruby-ivar">@children</span> = []
+36: <span class="ruby-comment cmt"># This can be set to true if <name /> is legal for this element.</span>
+37: <span class="ruby-ivar">@selfClosing</span> = <span class="ruby-identifier">selfClosing</span>
+38: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
@@ -664,33 +670,33 @@
<div class="method-source-code"
id="--source">
<pre>
- <span class="ruby-comment cmt"># File lib/XMLElement.rb, line 40</span>
-40: <span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">arg</span>)
-41: <span class="ruby-comment cmt"># If the argument is an array, we have to insert each element</span>
-42: <span class="ruby-comment cmt"># individually.</span>
-43: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">XMLElement</span>)
-44: <span class="ruby-ivar">@children</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">arg</span>
-45: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
-46: <span class="ruby-comment cmt"># Delete all nil entries</span>
-47: <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">delete_if</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">i</span>.<span class="ruby-identifier">nil?</span> }
-48: <span class="ruby-comment cmt"># Check that the rest are really all XMLElement objects.</span>
-49: <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
-50: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">i</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">XMLElement</span>)
-51: <span class="ruby-identifier">raise</span> <span class="ruby-node">"Element must be of type XMLElement not #{i.class}"</span>
-52: <span class="ruby-keyword kw">end</span>
-53: <span class="ruby-keyword kw">end</span>
-54: <span class="ruby-ivar">@children</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">arg</span>
-55: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">nil?</span>
-56: <span class="ruby-comment cmt"># do nothing</span>
-57: <span class="ruby-keyword kw">else</span>
-58: <span class="ruby-identifier">raise</span> <span class="ruby-node">"Elements must be of type XMLElement not #{arg.class}"</span>
-59: <span class="ruby-keyword kw">end</span>
-60: <span class="ruby-keyword kw">self</span>
-61: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/XMLElement.rb, line 41</span>
+41: <span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">arg</span>)
+42: <span class="ruby-comment cmt"># If the argument is an array, we have to insert each element</span>
+43: <span class="ruby-comment cmt"># individually.</span>
+44: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">XMLElement</span>)
+45: <span class="ruby-ivar">@children</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">arg</span>
+46: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
+47: <span class="ruby-comment cmt"># Delete all nil entries</span>
+48: <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">delete_if</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">i</span>.<span class="ruby-identifier">nil?</span> }
+49: <span class="ruby-comment cmt"># Check that the rest are really all XMLElement objects.</span>
+50: <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
+51: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">i</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">XMLElement</span>)
+52: <span class="ruby-identifier">raise</span> <span class="ruby-node">"Element must be of type XMLElement not #{i.class}"</span>
+53: <span class="ruby-keyword kw">end</span>
+54: <span class="ruby-keyword kw">end</span>
+55: <span class="ruby-ivar">@children</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">arg</span>
+56: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">nil?</span>
+57: <span class="ruby-comment cmt"># do nothing</span>
+58: <span class="ruby-keyword kw">else</span>
+59: <span class="ruby-identifier">raise</span> <span class="ruby-node">"Elements must be of type XMLElement not #{arg.class}"</span>
+60: <span class="ruby-keyword kw">end</span>
+61: <span class="ruby-keyword kw">self</span>
+62: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
@@ -719,14 +725,14 @@
<div class="method-source-code"
id="--source">
<pre>
- <span class="ruby-comment cmt"># File lib/XMLElement.rb, line 69</span>
-69: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">attribute</span>)
-70: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attribute</span>]
-71: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/XMLElement.rb, line 70</span>
+70: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">attribute</span>)
+71: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attribute</span>]
+72: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
@@ -755,14 +761,14 @@
<div class="method-source-code"
id="--source">
<pre>
- <span class="ruby-comment cmt"># File lib/XMLElement.rb, line 64</span>
-64: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">attribute</span>, <span class="ruby-identifier">value</span>)
-65: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attribute</span>] = <span class="ruby-identifier">value</span>
-66: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/XMLElement.rb, line 65</span>
+65: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">attribute</span>, <span class="ruby-identifier">value</span>)
+66: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attribute</span>] = <span class="ruby-identifier">value</span>
+67: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
@@ -791,32 +797,32 @@
<div class="method-source-code"
id="to-s-source">
<pre>
- <span class="ruby-comment cmt"># File lib/XMLElement.rb, line 75</span>
-75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>(<span class="ruby-identifier">indent</span> = <span class="ruby-value">0</span>)
-76: <span class="ruby-identifier">out</span> = <span class="ruby-value str">'<'</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@name</span>
-77: <span class="ruby-ivar">@attributes</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attrName</span><span class="ruby-operator">|</span>
-78: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" #{attrName}=\"#{escape(@attributes[attrName], true)}\""</span>
-79: <span class="ruby-keyword kw">end</span>
-80: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@children</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@selfClosing</span>
-81: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'/>'</span>
-82: <span class="ruby-keyword kw">else</span>
-83: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'>'</span>
-84: <span class="ruby-ivar">@children</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">child</span><span class="ruby-operator">|</span>
-85: <span class="ruby-comment cmt"># We only insert newlines for multiple childs and after a tag has been</span>
-86: <span class="ruby-comment cmt"># closed.</span>
-87: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@children</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-value">1</span> <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span><span class="ruby-identifier">child</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">XMLText</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">out</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">>></span>
-88: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">indentation</span>(<span class="ruby-identifier">indent</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>)
-89: <span class="ruby-keyword kw">end</span>
-90: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">child</span>.<span class="ruby-identifier">to_s</span>(<span class="ruby-identifier">indent</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>)
-91: <span class="ruby-keyword kw">end</span>
-92: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">indentation</span>(<span class="ruby-identifier">indent</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@children</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-value">1</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">out</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">>></span>
-93: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'</'</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'>'</span>
-94: <span class="ruby-keyword kw">end</span>
-95: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/XMLElement.rb, line 76</span>
+76: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>(<span class="ruby-identifier">indent</span> = <span class="ruby-value">0</span>)
+77: <span class="ruby-identifier">out</span> = <span class="ruby-value str">'<'</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@name</span>
+78: <span class="ruby-ivar">@attributes</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attrName</span><span class="ruby-operator">|</span>
+79: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" #{attrName}=\"#{escape(@attributes[attrName], true)}\""</span>
+80: <span class="ruby-keyword kw">end</span>
+81: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@children</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@selfClosing</span>
+82: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'/>'</span>
+83: <span class="ruby-keyword kw">else</span>
+84: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'>'</span>
+85: <span class="ruby-ivar">@children</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">child</span><span class="ruby-operator">|</span>
+86: <span class="ruby-comment cmt"># We only insert newlines for multiple childs and after a tag has been</span>
+87: <span class="ruby-comment cmt"># closed.</span>
+88: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@children</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-value">1</span> <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span><span class="ruby-identifier">child</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">XMLText</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">out</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">>></span>
+89: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">indentation</span>(<span class="ruby-identifier">indent</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>)
+90: <span class="ruby-keyword kw">end</span>
+91: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">child</span>.<span class="ruby-identifier">to_s</span>(<span class="ruby-identifier">indent</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>)
+92: <span class="ruby-keyword kw">end</span>
+93: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">indentation</span>(<span class="ruby-identifier">indent</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@children</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-value">1</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">out</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">>></span>
+94: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'</'</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'>'</span>
+95: <span class="ruby-keyword kw">end</span>
+96: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
@@ -852,25 +858,25 @@
<div class="method-source-code"
id="escape-source">
<pre>
- <span class="ruby-comment cmt"># File lib/XMLElement.rb, line 100</span>
-100: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">quotes</span> = <span class="ruby-keyword kw">false</span>)
-101: <span class="ruby-identifier">out</span> = <span class="ruby-value str">''</span>
-102: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">each_utf8_char</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
-103: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">c</span>
-104: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'&'</span>
-105: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'&amp;'</span>
-106: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'"'</span>
-107: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'\"'</span>
-108: <span class="ruby-keyword kw">else</span>
-109: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">c</span>
-110: <span class="ruby-keyword kw">end</span>
-111: <span class="ruby-keyword kw">end</span>
-112: <span class="ruby-identifier">out</span>
-113: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/XMLElement.rb, line 101</span>
+101: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">quotes</span> = <span class="ruby-keyword kw">false</span>)
+102: <span class="ruby-identifier">out</span> = <span class="ruby-value str">''</span>
+103: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">each_utf8_char</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
+104: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">c</span>
+105: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'&'</span>
+106: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'&amp;'</span>
+107: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'"'</span>
+108: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'\"'</span>
+109: <span class="ruby-keyword kw">else</span>
+110: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">c</span>
+111: <span class="ruby-keyword kw">end</span>
+112: <span class="ruby-keyword kw">end</span>
+113: <span class="ruby-identifier">out</span>
+114: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
@@ -897,13 +903,13 @@
<div class="method-source-code"
id="indentation-source">
<pre>
- <span class="ruby-comment cmt"># File lib/XMLElement.rb, line 115</span>
-115: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indentation</span>(<span class="ruby-identifier">indent</span>)
-116: <span class="ruby-value str">' '</span> * <span class="ruby-identifier">indent</span>
-117: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/XMLElement.rb, line 116</span>
+116: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indentation</span>(<span class="ruby-identifier">indent</span>)
+117: <span class="ruby-value str">' '</span> * <span class="ruby-identifier">indent</span>
+118: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>