doc/String.html in shenanigans-1.0.8 vs doc/String.html in shenanigans-1.0.9
- old
+ new
@@ -41,10 +41,12 @@
<ul id="search-results" class="initially-hidden"></ul>
</nav>
+
+
<div id="file-metadata">
<nav id="file-list-section" class="section">
<h3 class="section-header">Defined In</h3>
<ul>
<li>lib/shenanigans/string/in_groups_of.rb
@@ -62,17 +64,18 @@
<p class="link"><a href="Object.html">Object</a>
</nav>
+
<!-- Method Quickref -->
<nav id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
- <li><a href="#method-i-in_groups_of">#in_groups_of</a>
+ <li ><a href="#method-i-in_groups_of">#in_groups_of</a>
</ul>
</nav>
</div>
@@ -99,10 +102,12 @@
<li><a href="./Hash.html">Hash</a>
<li><a href="./Kernel.html">Kernel</a>
+ <li><a href="./Module.html">Module</a>
+
<li><a href="./Object.html">Object</a>
<li><a href="./String.html">String</a>
</ul>
@@ -139,34 +144,37 @@
<div id="method-i-in_groups_of" class="method-detail ">
<div class="method-heading">
<span class="method-name">in_groups_of</span><span
class="method-args">(size)</span>
+
<span class="method-click-advice">click to toggle source</span>
+
</div>
<div class="method-description">
<p>Returns an array of the string broken down into groups of <code>size</code>
characters.</p>
<pre class="ruby"><span class="ruby-string">"aabbcc"</span>.<span class="ruby-identifier">in_groups_of</span>(<span class="ruby-value">2</span>)
-<span class="ruby-comment">#=> ['aa', 'bb', 'cc']</span>
+<span class="ruby-comment">#=> ['aa', 'bb', 'cc']</span>
<span class="ruby-string">""</span>.<span class="ruby-identifier">in_groups_of</span>(<span class="ruby-value">2</span>)
<span class="ruby-comment">#=> []</span>
<span class="ruby-string">""</span>.<span class="ruby-identifier">in_groups_of</span>(<span class="ruby-value">0</span>)
<span class="ruby-comment">#=> ArgumentError</span>
</pre>
+
<div class="method-source-code" id="in_groups_of-source">
<pre><span class="ruby-comment"># File lib/shenanigans/string/in_groups_of.rb, line 10</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">in_groups_of</span>(<span class="ruby-identifier">size</span>)
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">"Size of group must be >= 1"</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">size</span> <span class="ruby-operator"><</span> <span class="ruby-value">1</span>
- <span class="ruby-identifier">scan</span>(<span class="ruby-node">%r.{1,#{size}}/</span>)
+ <span class="ruby-identifier">scan</span>(<span class="ruby-node">/.{1,#{size}}/</span>)
<span class="ruby-keyword">end</span></pre>
</div><!-- in_groups_of-source -->
</div>
@@ -183,9 +191,9 @@
</div><!-- documentation -->
<footer id="validator-badges">
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
</footer>