html/Gravaty/Utils/Raisers.html in gravaty-9.0.1 vs html/Gravaty/Utils/Raisers.html in gravaty-10.0.0

- old
+ new

@@ -2,19 +2,22 @@ <html> <head> <meta charset="UTF-8"> -<title>module Gravaty::Utils::Raisers - gravaty 9.0.1</title> +<title>module Gravaty::Utils::Raisers - 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"> @@ -86,15 +89,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> @@ -134,16 +134,16 @@ <div class="method-source-code" id="raiser_downcase-source"> <pre> <span class="ruby-comment"># File lib/gravaty/utils/raisers.rb</span> -<span class="line-num">46</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">raiser_downcase</span>(<span class="ruby-identifier">name</span> = <span class="ruby-string">&#39;error.value&#39;</span>, <span class="ruby-identifier">value</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">array</span> = <span class="ruby-keyword">nil</span>) -<span class="line-num">47</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span> -<span class="line-num">48</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, -<span class="line-num">49</span> <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-identifier">name</span>, <span class="ruby-value">value:</span> <span class="ruby-identifier">value</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">array</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">downcase</span> -<span class="line-num">50</span> <span class="ruby-keyword">end</span> -<span class="line-num">51</span> <span class="ruby-keyword">end</span></pre> +<span class="line-num">44</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">raiser_downcase</span>(<span class="ruby-identifier">name</span> = <span class="ruby-string">&#39;error.value&#39;</span>, <span class="ruby-identifier">value</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">array</span> = <span class="ruby-keyword">nil</span>) +<span class="line-num">45</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span> +<span class="line-num">46</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, +<span class="line-num">47</span> <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-identifier">name</span>, <span class="ruby-value">value:</span> <span class="ruby-identifier">value</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">array</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">downcase</span> +<span class="line-num">48</span> <span class="ruby-keyword">end</span> +<span class="line-num">49</span> <span class="ruby-keyword">end</span></pre> </div> </div> @@ -170,16 +170,16 @@ <div class="method-source-code" id="raiser_to_i-source"> <pre> <span class="ruby-comment"># File lib/gravaty/utils/raisers.rb</span> -<span class="line-num">55</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">raiser_to_i</span>(<span class="ruby-identifier">name</span> = <span class="ruby-string">&#39;error.value&#39;</span>, <span class="ruby-identifier">value</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">array</span> = <span class="ruby-keyword">nil</span>) -<span class="line-num">56</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span> -<span class="line-num">57</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, -<span class="line-num">58</span> <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-identifier">name</span>, <span class="ruby-value">value:</span> <span class="ruby-identifier">value</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">array</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">to_i</span> -<span class="line-num">59</span> <span class="ruby-keyword">end</span> -<span class="line-num">60</span> <span class="ruby-keyword">end</span></pre> +<span class="line-num">53</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">raiser_to_i</span>(<span class="ruby-identifier">name</span> = <span class="ruby-string">&#39;error.value&#39;</span>, <span class="ruby-identifier">value</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">array</span> = <span class="ruby-keyword">nil</span>) +<span class="line-num">54</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span> +<span class="line-num">55</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, +<span class="line-num">56</span> <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-identifier">name</span>, <span class="ruby-value">value:</span> <span class="ruby-identifier">value</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">array</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">to_i</span> +<span class="line-num">57</span> <span class="ruby-keyword">end</span> +<span class="line-num">58</span> <span class="ruby-keyword">end</span></pre> </div> </div> @@ -195,9 +195,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>