Skip to content

Commit

Permalink
Generate (77cb0dc)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Mar 6, 2024
1 parent 2635d14 commit 04b7432
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 15 deletions.
46 changes: 40 additions & 6 deletions REXML/IOSource.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ <h3>Methods</h3>

<li class="calls-super" ><a href="#method-i-empty-3F">#empty?</a>

<li ><a href="#method-i-ensure_buffer">#ensure_buffer</a>

<li ><a href="#method-i-match">#match</a>

<li ><a href="#method-i-read">#read</a>
Expand Down Expand Up @@ -143,7 +145,7 @@ <h3>Public Class Methods</h3>


<div class="method-source-code" id="new-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 137</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 140</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">arg</span>, <span class="ruby-identifier">block_size</span>=<span class="ruby-value">500</span>, <span class="ruby-identifier">encoding</span>=<span class="ruby-keyword">nil</span>)
<span class="ruby-ivar">@er_source</span> = <span class="ruby-ivar">@source</span> = <span class="ruby-identifier">arg</span>
<span class="ruby-ivar">@to_utf</span> = <span class="ruby-keyword">false</span>
Expand Down Expand Up @@ -201,7 +203,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="current_line-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 193</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 199</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">current_line</span>
<span class="ruby-keyword">begin</span>
<span class="ruby-identifier">pos</span> = <span class="ruby-ivar">@er_source</span>.<span class="ruby-identifier">pos</span> <span class="ruby-comment"># The byte position in the source</span>
Expand Down Expand Up @@ -256,7 +258,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="empty-3F-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 188</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 194</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">empty?</span>
<span class="ruby-keyword">super</span> <span class="ruby-keyword">and</span> ( <span class="ruby-ivar">@source</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@source</span>.<span class="ruby-identifier">eof?</span> )
<span class="ruby-keyword">end</span></pre>
Expand All @@ -267,6 +269,39 @@ <h3>Public Instance Methods</h3>



</div>


<div id="method-i-ensure_buffer" class="method-detail ">

<div class="method-heading">
<span class="method-name">ensure_buffer</span><span
class="method-args">()</span>

<span class="method-click-advice">click to toggle source</span>

</div>


<div class="method-description">






<div class="method-source-code" id="ensure_buffer-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 171</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">ensure_buffer</span>
<span class="ruby-identifier">read</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">eos?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@source</span>
<span class="ruby-keyword">end</span></pre>
</div>

</div>




</div>


Expand Down Expand Up @@ -294,9 +329,8 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="match-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 171</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 178</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">match</span>( <span class="ruby-identifier">pattern</span>, <span class="ruby-identifier">cons</span>=<span class="ruby-keyword">false</span> )
<span class="ruby-identifier">read</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">eos?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@source</span>
<span class="ruby-keyword">while</span> <span class="ruby-keyword">true</span>
<span class="ruby-keyword">if</span> <span class="ruby-identifier">cons</span>
<span class="ruby-identifier">md</span> = <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-identifier">pattern</span>)
Expand Down Expand Up @@ -340,7 +374,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="read-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 158</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 161</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">read</span>
<span class="ruby-keyword">begin</span>
<span class="ruby-ivar">@scanner</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">readline</span>
Expand Down
6 changes: 3 additions & 3 deletions REXML/Parsers/BaseParser.html
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="entity-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 443</span>
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 447</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">entity</span>( <span class="ruby-identifier">reference</span>, <span class="ruby-identifier">entities</span> )
<span class="ruby-identifier">value</span> = <span class="ruby-keyword">nil</span>
<span class="ruby-identifier">value</span> = <span class="ruby-identifier">entities</span>[ <span class="ruby-identifier">reference</span> ] <span class="ruby-keyword">if</span> <span class="ruby-identifier">entities</span>
Expand Down Expand Up @@ -716,7 +716,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="normalize-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 454</span>
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 458</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">normalize</span>( <span class="ruby-identifier">input</span>, <span class="ruby-identifier">entities</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">entity_filter</span>=<span class="ruby-keyword">nil</span> )
<span class="ruby-identifier">copy</span> = <span class="ruby-identifier">input</span>.<span class="ruby-identifier">clone</span>
<span class="ruby-comment"># Doing it like this rather than in a loop improves the speed</span>
Expand Down Expand Up @@ -917,7 +917,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="unnormalize-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 470</span>
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 474</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">unnormalize</span>( <span class="ruby-identifier">string</span>, <span class="ruby-identifier">entities</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">filter</span>=<span class="ruby-keyword">nil</span> )
<span class="ruby-identifier">rv</span> = <span class="ruby-identifier">string</span>.<span class="ruby-identifier">gsub</span>( <span class="ruby-regexp">/\r\n?/</span>, <span class="ruby-string">&quot;\n&quot;</span> )
<span class="ruby-identifier">matches</span> = <span class="ruby-identifier">rv</span>.<span class="ruby-identifier">scan</span>( <span class="ruby-constant">REFERENCE_RE</span> )
Expand Down
44 changes: 39 additions & 5 deletions REXML/Source.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ <h3>Methods</h3>

<li class="calls-super" ><a href="#method-i-encoding-3D">#encoding=</a>

<li ><a href="#method-i-ensure_buffer">#ensure_buffer</a>

<li ><a href="#method-i-match">#match</a>

<li ><a href="#method-i-position">#position</a>
Expand Down Expand Up @@ -307,7 +309,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="current_line-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 93</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 96</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">current_line</span>
<span class="ruby-identifier">lines</span> = <span class="ruby-ivar">@orig</span>.<span class="ruby-identifier">split</span>
<span class="ruby-identifier">res</span> = <span class="ruby-identifier">lines</span>.<span class="ruby-identifier">grep</span> <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">rest</span>[<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">30</span>]
Expand Down Expand Up @@ -343,7 +345,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="empty-3F-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 88</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 91</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">empty?</span>
<span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">eos?</span>
<span class="ruby-keyword">end</span></pre>
Expand Down Expand Up @@ -393,6 +395,38 @@ <h3>Public Instance Methods</h3>



</div>


<div id="method-i-ensure_buffer" class="method-detail ">

<div class="method-heading">
<span class="method-name">ensure_buffer</span><span
class="method-args">()</span>

<span class="method-click-advice">click to toggle source</span>

</div>


<div class="method-description">






<div class="method-source-code" id="ensure_buffer-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 71</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">ensure_buffer</span>
<span class="ruby-keyword">end</span></pre>
</div>

</div>




</div>


Expand All @@ -415,7 +449,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="match-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 71</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 74</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">match</span>(<span class="ruby-identifier">pattern</span>, <span class="ruby-identifier">cons</span>=<span class="ruby-keyword">false</span>)
<span class="ruby-keyword">if</span> <span class="ruby-identifier">cons</span>
<span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-identifier">pattern</span>).<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-keyword">nil</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@scanner</span>
Expand Down Expand Up @@ -452,7 +486,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="position-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 79</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 82</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">position</span>
<span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">pos</span>
<span class="ruby-keyword">end</span></pre>
Expand Down Expand Up @@ -485,7 +519,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="position-3D-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 83</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 86</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">position=</span>(<span class="ruby-identifier">pos</span>)
<span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">pos</span> = <span class="ruby-identifier">pos</span>
<span class="ruby-keyword">end</span></pre>
Expand Down
2 changes: 1 addition & 1 deletion js/search_index.js

Large diffs are not rendered by default.

Binary file modified js/search_index.js.gz
Binary file not shown.
10 changes: 10 additions & 0 deletions table_of_contents.html
Original file line number Diff line number Diff line change
Expand Up @@ -2348,6 +2348,16 @@ <h2 id="methods">Methods</h2>
&mdash;
<span class="container">REXML::SAX2Listener</span>

<li class="method">
<a href="REXML/Source.html#method-i-ensure_buffer">#ensure_buffer</a>
&mdash;
<span class="container">REXML::Source</span>

<li class="method">
<a href="REXML/IOSource.html#method-i-ensure_buffer">#ensure_buffer</a>
&mdash;
<span class="container">REXML::IOSource</span>

<li class="method">
<a href="REXML/DocType.html#method-i-entity">#entity</a>
&mdash;
Expand Down

0 comments on commit 04b7432

Please sign in to comment.