Skip to content

Commit

Permalink
Generate (3e3893d)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jun 2, 2024
1 parent e33a724 commit 0448744
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
18 changes: 10 additions & 8 deletions REXML/IOSource.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,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 144</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 149</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 @@ -205,7 +205,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 219</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 226</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 @@ -260,7 +260,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 214</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 221</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 Down Expand Up @@ -293,7 +293,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="ensure_buffer-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 191</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 198</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>
Expand Down Expand Up @@ -331,7 +331,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 198</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 205</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">while</span> <span class="ruby-keyword">true</span>
<span class="ruby-keyword">if</span> <span class="ruby-identifier">cons</span>
Expand Down Expand Up @@ -376,7 +376,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 165</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 170</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">read</span>(<span class="ruby-identifier">term</span> = <span class="ruby-keyword">nil</span>)
<span class="ruby-identifier">term</span> = <span class="ruby-identifier">encode</span>(<span class="ruby-identifier">term</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">term</span>
<span class="ruby-keyword">begin</span>
Expand Down Expand Up @@ -416,7 +416,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="read_until-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 176</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 181</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">read_until</span>(<span class="ruby-identifier">term</span>)
<span class="ruby-identifier">pattern</span> = <span class="ruby-regexp">/#{Regexp.escape(term)}/</span>
<span class="ruby-identifier">term</span> = <span class="ruby-identifier">encode</span>(<span class="ruby-identifier">term</span>)
Expand All @@ -425,7 +425,9 @@ <h3>Public Instance Methods</h3>
<span class="ruby-ivar">@scanner</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">readline</span>(<span class="ruby-identifier">term</span>)
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">EOFError</span>
<span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">rest</span>
<span class="ruby-identifier">rest</span> = <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">rest</span>
<span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">pos</span> = <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">string</span>.<span class="ruby-identifier">bytesize</span>
<span class="ruby-identifier">rest</span>
<span class="ruby-keyword">else</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-keyword">and</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@source</span>.<span class="ruby-identifier">eof?</span>
<span class="ruby-identifier">str</span>
Expand Down
19 changes: 12 additions & 7 deletions REXML/Source.html
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,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 100</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 105</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 @@ -347,7 +347,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 95</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 100</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 @@ -419,7 +419,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="ensure_buffer-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 75</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 80</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">ensure_buffer</span>
<span class="ruby-keyword">end</span></pre>
</div>
Expand Down Expand Up @@ -451,7 +451,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 78</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 83</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 @@ -488,7 +488,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 86</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">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 @@ -521,7 +521,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 90</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 95</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 Expand Up @@ -588,7 +588,12 @@ <h3>Public Instance Methods</h3>
<div class="method-source-code" id="read_until-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">read_until</span>(<span class="ruby-identifier">term</span>)
<span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">scan_until</span>(<span class="ruby-regexp">/#{Regexp.escape(term)}/</span>) <span class="ruby-keyword">or</span> <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">rest</span>
<span class="ruby-identifier">data</span> = <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">scan_until</span>(<span class="ruby-regexp">/#{Regexp.escape(term)}/</span>)
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">data</span>
<span class="ruby-identifier">data</span> = <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">rest</span>
<span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">pos</span> = <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">string</span>.<span class="ruby-identifier">bytesize</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">data</span>
<span class="ruby-keyword">end</span></pre>
</div>

Expand Down
Binary file modified js/search_index.js.gz
Binary file not shown.

0 comments on commit 0448744

Please sign in to comment.