doc/atomic-rdoc/classes/String.src/M000250.html in facets-0.7.1 vs doc/atomic-rdoc/classes/String.src/M000250.html in facets-0.7.2
- old
+ new
@@ -3,16 +3,16 @@
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
- <title>rand_index (String)</title>
+ <title>rand_letter (String)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/facet/string/rand_index.rb, line 8</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rand_index</span>
- <span class="ruby-identifier">rand</span>(<span class="ruby-identifier">size</span>)
+ <pre><span class="ruby-comment cmt"># File lib/facet/string/rand_letter.rb, line 10</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-constant">String</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></pre>
</body>
</html>
\ No newline at end of file