doc/rdoc/more/classes/Random/String/Self.html in facets-2.4.2 vs doc/rdoc/more/classes/Random/String/Self.html in facets-2.4.3

- old
+ new

@@ -76,38 +76,38 @@ <div class="sectiontitle">Methods</div> <ul> - <li><a href="#M000776">rand_letter</a></li> - <li><a href="#M000775">random</a></li> + <li><a href="#M000780">rand_letter</a></li> + <li><a href="#M000779">random</a></li> </ul> <div class="sectiontitle">Public Instance methods</div> <div class="method"> <div class="title"> - <a name="M000776"></a><b>rand_letter</b>() + <a name="M000780"></a><b>rand_letter</b>() </div> <div class="description"> <p> <a href="../../Module.html">Module</a> method to generate a <a -href="Self.html#M000775">random</a> letter. +href="Self.html#M000779">random</a> letter. </p> <pre> String::Random.rand_letter #=&gt; &quot;q&quot; String::Random.rand_letter #=&gt; &quot;r&quot; String::Random.rand_letter #=&gt; &quot;a&quot; </pre> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000776_source')" id="l_M000776_source">show source</a> ]</p> - <div id="M000776_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000780_source')" id="l_M000780_source">show source</a> ]</p> + <div id="M000780_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 352</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rand_letter</span> (<span class="ruby-identifier">rand</span>(<span class="ruby-value">26</span>) <span class="ruby-operator">+</span> (<span class="ruby-identifier">rand</span>(<span class="ruby-value">2</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value">65</span> <span class="ruby-operator">:</span> <span class="ruby-value">97</span>) ).<span class="ruby-identifier">chr</span> <span class="ruby-keyword kw">end</span> @@ -115,21 +115,21 @@ </div> </div> </div> <div class="method"> <div class="title"> - <a name="M000775"></a><b>random</b>(max_length = 8, char_re = /[\w\d]/) + <a name="M000779"></a><b>random</b>(max_length = 8, char_re = /[\w\d]/) </div> <div class="description"> <p> Returns a randomly generated string. One possible use is password initialization. Takes a max legnth of characters (default 8) and an optional valid char Regexp (default /\w\d/). </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000775_source')" id="l_M000775_source">show source</a> ]</p> - <div id="M000775_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000779_source')" id="l_M000779_source">show source</a> ]</p> + <div id="M000779_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 333</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">random</span>(<span class="ruby-identifier">max_length</span> = <span class="ruby-value">8</span>, <span class="ruby-identifier">char_re</span> = <span class="ruby-regexp re">/[\w\d]/</span>) <span class="ruby-comment cmt"># gmosx: this is a nice example of input parameter checking.</span> <span class="ruby-comment cmt"># this is NOT a real time called method so we can add this</span> \ No newline at end of file