Skip to content

Commit

Permalink
Generate (fdbffe7)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Aug 17, 2024
1 parent 5b3bfb5 commit 754ac5d
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 59 deletions.
28 changes: 14 additions & 14 deletions REXML/Attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ <h3>Public Class Methods</h3>
</li></ul>

<div class="method-source-code" id="new-source">
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2152</span>
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2156</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span> <span class="ruby-identifier">element</span>
<span class="ruby-ivar">@element</span> = <span class="ruby-identifier">element</span>
<span class="ruby-keyword">end</span></pre>
Expand Down Expand Up @@ -203,7 +203,7 @@ <h3>Public Instance Methods</h3>
<p>Related: <a href="Attributes.html#method-i-get_attribute"><code>get_attribute</code></a> (returns an Attribute object).</p>

<div class="method-source-code" id="5B-5D-source">
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2177</span>
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2181</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">[]</span>(<span class="ruby-identifier">name</span>)
<span class="ruby-identifier">attr</span> = <span class="ruby-identifier">get_attribute</span>(<span class="ruby-identifier">name</span>)
<span class="ruby-keyword">return</span> <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">value</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">nil?</span>
Expand Down Expand Up @@ -247,7 +247,7 @@ <h3>Public Instance Methods</h3>
</pre>

<div class="method-source-code" id="5B-5D-3D-source">
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2361</span>
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2365</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">[]=</span>( <span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span> )
<span class="ruby-keyword">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-comment"># Delete the named attribute</span>
<span class="ruby-identifier">attr</span> = <span class="ruby-identifier">get_attribute</span>(<span class="ruby-identifier">name</span>)
Expand Down Expand Up @@ -322,7 +322,7 @@ <h3>Public Instance Methods</h3>
</pre>

<div class="method-source-code" id="add-source">
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2529</span>
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2533</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">add</span>( <span class="ruby-identifier">attribute</span> )
<span class="ruby-keyword">self</span>[<span class="ruby-identifier">attribute</span>.<span class="ruby-identifier">name</span>] = <span class="ruby-identifier">attribute</span>
<span class="ruby-keyword">end</span></pre>
Expand Down Expand Up @@ -379,7 +379,7 @@ <h3>Public Instance Methods</h3>
</div>

<div class="method-source-code" id="delete-source">
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2482</span>
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2486</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">delete</span>( <span class="ruby-identifier">attribute</span> )
<span class="ruby-identifier">name</span> = <span class="ruby-keyword">nil</span>
<span class="ruby-identifier">prefix</span> = <span class="ruby-keyword">nil</span>
Expand Down Expand Up @@ -437,7 +437,7 @@ <h3>Public Instance Methods</h3>
</pre>

<div class="method-source-code" id="delete_all-source">
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2551</span>
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2555</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">delete_all</span>( <span class="ruby-identifier">name</span> )
<span class="ruby-identifier">rv</span> = []
<span class="ruby-identifier">each_attribute</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">attribute</span><span class="ruby-operator">|</span>
Expand Down Expand Up @@ -485,7 +485,7 @@ <h3>Public Instance Methods</h3>
</pre>

<div class="method-source-code" id="each-source">
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2279</span>
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2283</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">each</span>
<span class="ruby-keyword">return</span> <span class="ruby-identifier">to_enum</span>(<span class="ruby-identifier">__method__</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">block_given?</span>
<span class="ruby-identifier">each_attribute</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attr</span><span class="ruby-operator">|</span>
Expand Down Expand Up @@ -531,7 +531,7 @@ <h3>Public Instance Methods</h3>
</pre>

<div class="method-source-code" id="each_attribute-source">
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2246</span>
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2250</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">each_attribute</span> <span class="ruby-comment"># :yields: attribute</span>
<span class="ruby-keyword">return</span> <span class="ruby-identifier">to_enum</span>(<span class="ruby-identifier">__method__</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">block_given?</span>
<span class="ruby-identifier">each_value</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">val</span><span class="ruby-operator">|</span>
Expand Down Expand Up @@ -577,7 +577,7 @@ <h3>Public Instance Methods</h3>
</pre>

<div class="method-source-code" id="get_attribute-source">
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2305</span>
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2309</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_attribute</span>( <span class="ruby-identifier">name</span> )
<span class="ruby-identifier">attr</span> = <span class="ruby-identifier">fetch</span>( <span class="ruby-identifier">name</span>, <span class="ruby-keyword">nil</span> )
<span class="ruby-keyword">if</span> <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">nil?</span>
Expand Down Expand Up @@ -642,7 +642,7 @@ <h3>Public Instance Methods</h3>
</pre>

<div class="method-source-code" id="get_attribute_ns-source">
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2577</span>
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2581</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_attribute_ns</span>(<span class="ruby-identifier">namespace</span>, <span class="ruby-identifier">name</span>)
<span class="ruby-identifier">result</span> = <span class="ruby-keyword">nil</span>
<span class="ruby-identifier">each_attribute</span>() { <span class="ruby-operator">|</span><span class="ruby-identifier">attribute</span><span class="ruby-operator">|</span>
Expand Down Expand Up @@ -686,7 +686,7 @@ <h3>Public Instance Methods</h3>
</pre>

<div class="method-source-code" id="length-source">
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2217</span>
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2221</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">length</span>
<span class="ruby-identifier">c</span> = <span class="ruby-value">0</span>
<span class="ruby-identifier">each_attribute</span> { <span class="ruby-identifier">c</span><span class="ruby-operator">+=</span><span class="ruby-value">1</span> }
Expand Down Expand Up @@ -720,7 +720,7 @@ <h3>Public Instance Methods</h3>
</pre>

<div class="method-source-code" id="namespaces-source">
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2438</span>
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2442</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">namespaces</span>
<span class="ruby-identifier">namespaces</span> = {}
<span class="ruby-identifier">each_attribute</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attribute</span><span class="ruby-operator">|</span>
Expand Down Expand Up @@ -761,7 +761,7 @@ <h3>Public Instance Methods</h3>
</pre>

<div class="method-source-code" id="prefixes-source">
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2413</span>
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2417</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">prefixes</span>
<span class="ruby-identifier">ns</span> = []
<span class="ruby-identifier">each_attribute</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attribute</span><span class="ruby-operator">|</span>
Expand Down Expand Up @@ -828,7 +828,7 @@ <h3>Public Instance Methods</h3>
</pre>

<div class="method-source-code" id="to_a-source">
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2199</span>
<pre><span class="ruby-comment"># File lib/rexml/element.rb, line 2203</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_a</span>
<span class="ruby-identifier">enum_for</span>(<span class="ruby-value">:each_attribute</span>).<span class="ruby-identifier">to_a</span>
<span class="ruby-keyword">end</span></pre>
Expand Down
Loading

0 comments on commit 754ac5d

Please sign in to comment.