Skip to content

Commit

Permalink
Generate (037c16a)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jun 3, 2024
1 parent 0448744 commit 606f39e
Show file tree
Hide file tree
Showing 7 changed files with 147 additions and 22 deletions.
16 changes: 8 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 149</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 160</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 226</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 237</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 221</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 232</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 198</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 209</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 205</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 216</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 170</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</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,9 +416,9 @@ <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 181</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 192</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">pattern</span> = <span class="ruby-constant">Private</span><span class="ruby-operator">::</span><span class="ruby-constant">PRE_DEFINED_TERM_PATTERNS</span>[<span class="ruby-identifier">term</span>] <span class="ruby-operator">||</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>)
<span class="ruby-keyword">begin</span>
<span class="ruby-keyword">until</span> <span class="ruby-identifier">str</span> = <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">scan_until</span>(<span class="ruby-identifier">pattern</span>)
Expand Down
31 changes: 18 additions & 13 deletions REXML/Source.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ <h3>Included Modules</h3>
<li><a class="include" href="Encoding.html">REXML::Encoding</a>



<li><a class="include" href="Source/Private.html">REXML::Source::Private</a>


</ul>
</div>

Expand Down Expand Up @@ -197,7 +201,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 41</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 51</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">encoding</span>=<span class="ruby-keyword">nil</span>)
<span class="ruby-ivar">@orig</span> = <span class="ruby-identifier">arg</span>
<span class="ruby-ivar">@scanner</span> = <span class="ruby-constant">StringScanner</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@orig</span>)
Expand Down Expand Up @@ -245,7 +249,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="buffer-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 53</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 63</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">buffer</span>
<span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">rest</span>
<span class="ruby-keyword">end</span></pre>
Expand Down Expand Up @@ -278,7 +282,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="buffer_encoding-3D-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 57</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 67</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">buffer_encoding=</span>(<span class="ruby-identifier">encoding</span>)
<span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">string</span>.<span class="ruby-identifier">force_encoding</span>(<span class="ruby-identifier">encoding</span>)
<span class="ruby-keyword">end</span></pre>
Expand Down Expand Up @@ -311,7 +315,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 105</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 116</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 +351,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 100</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 111</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 @@ -385,7 +389,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="encoding-3D-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 63</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 73</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">encoding=</span>(<span class="ruby-identifier">enc</span>)
<span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-keyword">super</span>
<span class="ruby-identifier">encoding_updated</span>
Expand Down Expand Up @@ -419,7 +423,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 80</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">ensure_buffer</span>
<span class="ruby-keyword">end</span></pre>
</div>
Expand Down Expand Up @@ -451,7 +455,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 83</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 94</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 +492,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 91</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 102</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 +525,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 95</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 106</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 @@ -554,7 +558,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 68</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 78</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-keyword">end</span></pre>
</div>
Expand Down Expand Up @@ -586,9 +590,10 @@ <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>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 81</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">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-identifier">pattern</span> = <span class="ruby-constant">Private</span><span class="ruby-operator">::</span><span class="ruby-constant">PRE_DEFINED_TERM_PATTERNS</span>[<span class="ruby-identifier">term</span>] <span class="ruby-operator">||</span> <span class="ruby-regexp">/#{Regexp.escape(term)}/</span>
<span class="ruby-identifier">data</span> = <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">scan_until</span>(<span class="ruby-identifier">pattern</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>
Expand Down
113 changes: 113 additions & 0 deletions REXML/Source/Private.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<!DOCTYPE html>

<html>
<head>
<meta charset="UTF-8">

<title>module REXML::Source::Private - RDoc Documentation</title>

<script type="text/javascript">
var rdoc_rel_prefix = "../../";
var index_rel_prefix = "../../";
</script>

<script src="../../js/navigation.js" defer></script>
<script src="../../js/search.js" defer></script>
<script src="../../js/search_index.js" defer></script>
<script src="../../js/searcher.js" defer></script>
<script src="../../js/darkfish.js" defer></script>

<link href="../../css/fonts.css" rel="stylesheet">
<link href="../../css/rdoc.css" rel="stylesheet">




<body id="top" role="document" class="module">
<nav role="navigation">
<div id="project-navigation">
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
<h2>
<a href="../../index.html" rel="home">Home</a>
</h2>

<div id="table-of-contents-navigation">
<a href="../../table_of_contents.html#pages">Pages</a>
<a href="../../table_of_contents.html#classes">Classes</a>
<a href="../../table_of_contents.html#methods">Methods</a>
</div>
</div>

<div id="search-section" role="search" class="project-section initially-hidden">
<form action="#" method="get" accept-charset="utf-8">
<div id="search-field-wrapper">
<input id="search-field" role="combobox" aria-label="Search"
aria-autocomplete="list" aria-controls="search-results"
type="text" name="search" placeholder="Search" spellcheck="false"
title="Type to search, Up and Down to navigate, Enter to load">
</div>

<ul id="search-results" aria-label="Search Results"
aria-busy="false" aria-expanded="false"
aria-atomic="false" class="initially-hidden"></ul>
</form>
</div>

</div>



<div id="class-metadata">





</div>
</nav>

<main role="main" aria-labelledby="module-REXML::Source::Private">
<h1 id="module-REXML::Source::Private" class="module">
module REXML::Source::Private
</h1>

<section class="description">

</section>


<section id="5Buntitled-5D" class="documentation-section">





<section class="constants-list">
<header>
<h3>Constants</h3>
</header>
<dl>

<dt id="PRE_DEFINED_TERM_PATTERNS">PRE_DEFINED_TERM_PATTERNS

<dd>


</dl>
</section>





</section>

</main>


<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.1.
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
</footer>

2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ <h3>Class and Module Index</h3>

<li><a href="./REXML/Source.html">REXML::Source</a>

<li><a href="./REXML/Source/Private.html">REXML::Source::Private</a>

<li><a href="./REXML/SourceFactory.html">REXML::SourceFactory</a>

<li><a href="./REXML/StreamListener.html">REXML::StreamListener</a>
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.
5 changes: 5 additions & 0 deletions table_of_contents.html
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,11 @@ <h2 id="classes">Classes and Modules</h2>

</li>

<li class="module">
<a href="REXML/Source/Private.html">REXML::Source::Private</a>

</li>

<li class="class">
<a href="REXML/SourceFactory.html">REXML::SourceFactory</a>

Expand Down

0 comments on commit 606f39e

Please sign in to comment.