html/Gravaty/Parsers/Default.html in gravaty-9.0.1 vs html/Gravaty/Parsers/Default.html in gravaty-10.0.0

- old
+ new

@@ -2,19 +2,22 @@ <html> <head> <meta charset="UTF-8"> -<title>class Gravaty::Parsers::Default - gravaty 9.0.1</title> +<title>class Gravaty::Parsers::Default - gravaty 10.0.0</title> <script type="text/javascript"> var rdoc_rel_prefix = "../../"; var index_rel_prefix = "../../"; </script> -<script src="../../js/jquery.js"></script> -<script src="../../js/darkfish.js"></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"> @@ -91,15 +94,12 @@ <dl class="rdoc-list note-list"><dt>Author <dd> <p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p> </dd><dt>Copyright <dd> -<p>Copyright © 2013, 2014, 2015, 2016, 2017, 2018,</p> -</dd></dl> - -<p>2019 Marco Bresciani</p> -<dl class="rdoc-list note-list"><dt>License +<p>Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani</p> +</dd><dt>License <dd> <p>GNU General Public License version 3</p> </dd></dl> </section> @@ -139,22 +139,22 @@ <div class="method-source-code" id="parse-source"> <pre> <span class="ruby-comment"># File lib/gravaty/parsers/default.rb</span> -<span class="line-num">39</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">parse</span>(<span class="ruby-identifier">value</span> = <span class="ruby-keyword">nil</span>) -<span class="line-num">40</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">empty?</span> -<span class="line-num">41</span> <span class="ruby-keyword">unless</span> <span class="ruby-constant">DEFAULT_OPTIONS</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">value</span> -<span class="line-num">42</span> <span class="ruby-identifier">valid</span> = <span class="ruby-node">%w(http https)</span>.<span class="ruby-identifier">index</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">scheme</span><span class="ruby-operator">|</span> <span class="ruby-identifier">valid?</span>(<span class="ruby-identifier">value</span>, <span class="ruby-identifier">scheme</span>)} -<span class="line-num">43</span> -<span class="line-num">44</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">&#39;error.uri&#39;</span>, <span class="ruby-value">value:</span> <span class="ruby-identifier">value</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">valid</span>.<span class="ruby-identifier">nil?</span> -<span class="line-num">45</span> <span class="ruby-keyword">end</span> -<span class="line-num">46</span> -<span class="line-num">47</span> <span class="ruby-keyword">return</span> <span class="ruby-string">&#39;d=&#39;</span> <span class="ruby-operator">+</span> <span class="ruby-constant">CGI</span><span class="ruby-operator">::</span><span class="ruby-identifier">escape</span>(<span class="ruby-identifier">value</span>).<span class="ruby-identifier">to_s</span> -<span class="line-num">48</span> <span class="ruby-keyword">end</span> -<span class="line-num">49</span> <span class="ruby-string">&#39;&#39;</span> -<span class="line-num">50</span> <span class="ruby-keyword">end</span></pre> +<span class="line-num">38</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">parse</span>(<span class="ruby-identifier">value</span> = <span class="ruby-keyword">nil</span>) +<span class="line-num">39</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">empty?</span> +<span class="line-num">40</span> <span class="ruby-keyword">unless</span> <span class="ruby-constant">DEFAULT_OPTIONS</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">value</span> +<span class="line-num">41</span> <span class="ruby-identifier">valid</span> = <span class="ruby-node">%w(http https)</span>.<span class="ruby-identifier">index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">scheme</span><span class="ruby-operator">|</span> <span class="ruby-identifier">valid?</span>(<span class="ruby-identifier">value</span>, <span class="ruby-identifier">scheme</span>) } +<span class="line-num">42</span> +<span class="line-num">43</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">&#39;error.uri&#39;</span>, <span class="ruby-value">value:</span> <span class="ruby-identifier">value</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">valid</span>.<span class="ruby-identifier">nil?</span> +<span class="line-num">44</span> <span class="ruby-keyword">end</span> +<span class="line-num">45</span> +<span class="line-num">46</span> <span class="ruby-keyword">return</span> <span class="ruby-string">&#39;d=&#39;</span> <span class="ruby-operator">+</span> <span class="ruby-constant">CGI</span><span class="ruby-operator">::</span><span class="ruby-identifier">escape</span>(<span class="ruby-identifier">value</span>).<span class="ruby-identifier">to_s</span> +<span class="line-num">47</span> <span class="ruby-keyword">end</span> +<span class="line-num">48</span> <span class="ruby-string">&#39;&#39;</span> +<span class="line-num">49</span> <span class="ruby-keyword">end</span></pre> </div> </div> @@ -170,9 +170,9 @@ </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.1.1. + <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1. <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>. </footer>