shenanigans 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +6 -3
  3. data/README.rdoc +1 -1
  4. data/doc/Array.html +423 -202
  5. data/doc/Fixnum.html +155 -140
  6. data/doc/Hash.html +305 -206
  7. data/doc/Kernel.html +360 -249
  8. data/doc/Module.html +181 -153
  9. data/doc/Object.html +210 -201
  10. data/doc/String.html +166 -139
  11. data/doc/_index.html +188 -0
  12. data/doc/class_list.html +54 -0
  13. data/doc/css/common.css +1 -0
  14. data/doc/css/full_list.css +57 -0
  15. data/doc/css/style.css +338 -0
  16. data/doc/file.README.html +162 -0
  17. data/doc/file_list.html +56 -0
  18. data/doc/frames.html +26 -0
  19. data/doc/index.html +62 -80
  20. data/doc/js/app.js +219 -0
  21. data/doc/js/full_list.js +178 -0
  22. data/doc/js/jquery.js +4 -18
  23. data/doc/method_list.html +149 -0
  24. data/doc/top-level-namespace.html +114 -0
  25. data/lib/shenanigans.rb +3 -1
  26. data/lib/shenanigans/array.rb +3 -3
  27. data/lib/shenanigans/array/reductions.rb +29 -0
  28. data/lib/shenanigans/kernel.rb +4 -4
  29. data/lib/shenanigans/module.rb +1 -1
  30. data/lib/shenanigans/object.rb +2 -2
  31. data/lib/shenanigans/string.rb +1 -1
  32. data/test/array/test_reductions.rb +27 -0
  33. metadata +16 -36
  34. data/doc/README_rdoc.html +0 -199
  35. data/doc/created.rid +0 -25
  36. data/doc/images/add.png +0 -0
  37. data/doc/images/arrow_up.png +0 -0
  38. data/doc/images/brick.png +0 -0
  39. data/doc/images/brick_link.png +0 -0
  40. data/doc/images/bug.png +0 -0
  41. data/doc/images/bullet_black.png +0 -0
  42. data/doc/images/bullet_toggle_minus.png +0 -0
  43. data/doc/images/bullet_toggle_plus.png +0 -0
  44. data/doc/images/date.png +0 -0
  45. data/doc/images/delete.png +0 -0
  46. data/doc/images/find.png +0 -0
  47. data/doc/images/loadingAnimation.gif +0 -0
  48. data/doc/images/macFFBgHack.png +0 -0
  49. data/doc/images/package.png +0 -0
  50. data/doc/images/page_green.png +0 -0
  51. data/doc/images/page_white_text.png +0 -0
  52. data/doc/images/page_white_width.png +0 -0
  53. data/doc/images/plugin.png +0 -0
  54. data/doc/images/ruby.png +0 -0
  55. data/doc/images/tag_blue.png +0 -0
  56. data/doc/images/tag_green.png +0 -0
  57. data/doc/images/transparent.png +0 -0
  58. data/doc/images/wrench.png +0 -0
  59. data/doc/images/wrench_orange.png +0 -0
  60. data/doc/images/zoom.png +0 -0
  61. data/doc/js/darkfish.js +0 -155
  62. data/doc/js/navigation.js +0 -142
  63. data/doc/js/search.js +0 -94
  64. data/doc/js/search_index.js +0 -1
  65. data/doc/js/searcher.js +0 -228
  66. data/doc/rdoc.css +0 -595
  67. data/doc/table_of_contents.html +0 -114
data/doc/String.html CHANGED
@@ -1,160 +1,165 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: String
8
+
9
+ &mdash; Documentation by YARD 0.8.7.3
10
+
11
+ </title>
6
12
 
7
- <title>class String - Shenanigans</title>
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
8
14
 
9
- <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
10
16
 
11
- <script type="text/javascript">
12
- var rdoc_rel_prefix = "./";
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '';
20
+ framesUrl = "frames.html#!" + escape(window.location.href);
13
21
  </script>
14
22
 
15
- <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
21
23
 
24
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
22
25
 
23
- <body id="top" class="class">
24
- <nav id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="./index.html">Home</a>
28
- <a href="./table_of_contents.html#classes">Classes</a>
29
- <a href="./table_of_contents.html#methods">Methods</a>
30
- </h3>
31
- </nav>
26
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
32
27
 
33
28
 
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
35
- <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
38
- title="Type to search, Up and Down to navigate, Enter to load">
39
- </h3>
40
- </form>
41
-
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="_index.html">Index (S)</a> &raquo;
35
+
36
+
37
+ <span class="title">String</span>
38
+
44
39
 
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
45
42
 
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="class_list.html">
47
+ Class List
48
+ </a>
46
49
 
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
47
63
 
48
- <div id="file-metadata">
49
- <nav id="file-list-section" class="section">
50
- <h3 class="section-header">Defined In</h3>
51
- <ul>
52
- <li>lib/shenanigans/string/in_groups_of.rb
53
- </ul>
54
- </nav>
64
+ <iframe id="search_frame"></iframe>
55
65
 
56
-
57
- </div>
66
+ <div id="content"><h1>Class: String
67
+
68
+
69
+
70
+ </h1>
58
71
 
59
- <div id="class-metadata">
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName"><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></span>
77
+
78
+ <ul class="fullTree">
79
+ <li><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></li>
80
+
81
+ <li class="next">String</li>
82
+
83
+ </ul>
84
+ <a href="#" class="inheritanceTree">show all</a>
85
+
86
+ </dd>
60
87
 
61
- <nav id="parent-class-section" class="section">
62
- <h3 class="section-header">Parent</h3>
63
88
 
64
- <p class="link"><a href="Object.html">Object</a>
65
89
 
66
- </nav>
67
-
68
90
 
91
+
69
92
 
70
- <!-- Method Quickref -->
71
- <nav id="method-list-section" class="section">
72
- <h3 class="section-header">Methods</h3>
93
+
94
+
95
+
96
+ <dt class="r2 last">Defined in:</dt>
97
+ <dd class="r2 last">lib/shenanigans/string/in_groups_of.rb</dd>
98
+
99
+ </dl>
100
+ <div class="clear"></div>
101
+
102
+
73
103
 
74
- <ul class="link-list">
75
-
76
- <li ><a href="#method-i-in_groups_of">#in_groups_of</a>
77
-
78
- </ul>
79
- </nav>
80
104
 
81
- </div>
82
105
 
83
- <div id="project-metadata">
84
- <nav id="fileindex-section" class="section project-section">
85
- <h3 class="section-header">Pages</h3>
86
106
 
87
- <ul>
88
-
89
- <li class="file"><a href="./README_rdoc.html">README</a>
90
-
91
- </ul>
92
- </nav>
93
107
 
94
- <nav id="classindex-section" class="section project-section">
95
- <h3 class="section-header">Class and Module Index</h3>
96
108
 
97
- <ul class="link-list">
98
109
 
99
- <li><a href="./Array.html">Array</a>
110
+ <h2>
111
+ Instance Method Summary
112
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
113
+ </h2>
114
+
115
+ <ul class="summary">
116
+
117
+ <li class="public ">
118
+ <span class="summary_signature">
119
+
120
+ <a href="#in_groups_of-instance_method" title="#in_groups_of (instance method)">- (Object) <strong>in_groups_of</strong>(size) </a>
121
+
122
+
123
+
124
+ </span>
100
125
 
101
- <li><a href="./Fixnum.html">Fixnum</a>
102
126
 
103
- <li><a href="./Hash.html">Hash</a>
104
127
 
105
- <li><a href="./Kernel.html">Kernel</a>
106
128
 
107
- <li><a href="./Module.html">Module</a>
108
129
 
109
- <li><a href="./Object.html">Object</a>
110
130
 
111
- <li><a href="./String.html">String</a>
112
131
 
113
- </ul>
114
- </nav>
115
-
116
- </div>
117
- </nav>
118
-
119
- <div id="documentation">
120
- <h1 class="class">class String</h1>
121
-
122
- <div id="description" class="description">
123
-
124
- </div><!-- description -->
125
132
 
126
133
 
134
+ <span class="summary_desc"><div class='inline'>
135
+ <p>Returns an array of the string broken down into groups of size characters.</p>
136
+ </div></span>
127
137
 
138
+ </li>
139
+
140
+
141
+ </ul>
128
142
 
129
- <section id="5Buntitled-5D" class="documentation-section">
130
-
131
143
 
132
-
133
144
 
134
-
135
145
 
136
-
146
+ <div id="instance_method_details" class="method_details_list">
147
+ <h2>Instance Method Details</h2>
137
148
 
138
- <!-- Methods -->
139
149
 
140
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
141
- <h3 class="section-header">Public Instance Methods</h3>
150
+ <div class="method_details first">
151
+ <h3 class="signature first" id="in_groups_of-instance_method">
152
+
153
+ - (<tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>) <strong>in_groups_of</strong>(size)
154
+
142
155
 
143
-
144
- <div id="method-i-in_groups_of" class="method-detail ">
145
-
146
- <div class="method-heading">
147
- <span class="method-name">in_groups_of</span><span
148
- class="method-args">(size)</span>
149
-
150
- <span class="method-click-advice">click to toggle source</span>
151
-
152
- </div>
153
-
156
+
154
157
 
155
- <div class="method-description">
156
-
157
- <p>Returns an array of the string broken down into groups of <code>size</code>
158
+
159
+ </h3><div class="docstring">
160
+ <div class="discussion">
161
+
162
+ <p>Returns an array of the string broken down into groups of <code>size</code>
158
163
  characters.</p>
159
164
 
160
165
  <pre class="ruby"><span class="ruby-string">&quot;aabbcc&quot;</span>.<span class="ruby-identifier">in_groups_of</span>(<span class="ruby-value">2</span>)
@@ -164,36 +169,58 @@ characters.</p>
164
169
  <span class="ruby-string">&quot;&quot;</span>.<span class="ruby-identifier">in_groups_of</span>(<span class="ruby-value">0</span>)
165
170
  <span class="ruby-comment">#=&gt; ArgumentError</span>
166
171
  </pre>
167
-
168
-
169
172
 
170
-
171
- <div class="method-source-code" id="in_groups_of-source">
172
- <pre><span class="ruby-comment"># File lib/shenanigans/string/in_groups_of.rb, line 10</span>
173
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">in_groups_of</span>(<span class="ruby-identifier">size</span>)
174
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">&quot;Size of group must be &gt;= 1&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">size</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">1</span>
175
- <span class="ruby-identifier">scan</span>(<span class="ruby-node">/.{1,#{size}}/</span>)
176
- <span class="ruby-keyword">end</span></pre>
177
- </div><!-- in_groups_of-source -->
178
-
179
- </div>
180
-
181
-
182
-
183
-
184
- </div><!-- in_groups_of-method -->
185
173
 
174
+ </div>
175
+ </div>
176
+ <div class="tags">
177
+
178
+ <p class="tag_title">Raises:</p>
179
+ <ul class="raise">
180
+
181
+ <li>
182
+
183
+
184
+ <span class='type'>(<tt>ArgumentError</tt>)</span>
185
+
186
+
187
+
188
+ </li>
189
+
190
+ </ul>
191
+
192
+ </div><table class="source_code">
193
+ <tr>
194
+ <td>
195
+ <pre class="lines">
196
+
197
+
198
+ 10
199
+ 11
200
+ 12
201
+ 13</pre>
202
+ </td>
203
+ <td>
204
+ <pre class="code"><span class="info file"># File 'lib/shenanigans/string/in_groups_of.rb', line 10</span>
205
+
206
+ <span class='kw'>def</span> <span class='id identifier rubyid_in_groups_of'>in_groups_of</span><span class='lparen'>(</span><span class='id identifier rubyid_size'>size</span><span class='rparen'>)</span>
207
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Size of group must be &gt;= 1</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_size'>size</span> <span class='op'>&lt;</span> <span class='int'>1</span>
208
+ <span class='id identifier rubyid_scan'>scan</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>.{1,</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_size'>size</span><span class='embexpr_end'>}</span><span class='tstring_content'>}</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span>
209
+ <span class='kw'>end</span></pre>
210
+ </td>
211
+ </tr>
212
+ </table>
213
+ </div>
186
214
 
187
- </section><!-- public-instance-method-details -->
188
-
189
- </section><!-- 5Buntitled-5D -->
190
-
191
- </div><!-- documentation -->
215
+ </div>
192
216
 
217
+ </div>
193
218
 
194
- <footer id="validator-badges">
195
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
196
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
197
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
198
- </footer>
219
+ <div id="footer">
220
+ Generated on Tue Dec 31 15:41:29 2013 by
221
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
222
+ 0.8.7.3 (ruby-2.0.0).
223
+ </div>
199
224
 
225
+ </body>
226
+ </html>
data/doc/_index.html ADDED
@@ -0,0 +1,188 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Documentation by YARD 0.8.7.3
8
+
9
+ </title>
10
+
11
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
12
+
13
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
14
+
15
+ <script type="text/javascript" charset="utf-8">
16
+ hasFrames = window.top.frames.main ? true : false;
17
+ relpath = '';
18
+ framesUrl = "frames.html#!" + escape(window.location.href);
19
+ </script>
20
+
21
+
22
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <div id="header">
30
+ <div id="menu">
31
+
32
+
33
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
34
+ </div>
35
+
36
+ <div id="search">
37
+
38
+ <a class="full_list_link" id="class_list_link"
39
+ href="class_list.html">
40
+ Class List
41
+ </a>
42
+
43
+ <a class="full_list_link" id="method_list_link"
44
+ href="method_list.html">
45
+ Method List
46
+ </a>
47
+
48
+ <a class="full_list_link" id="file_list_link"
49
+ href="file_list.html">
50
+ File List
51
+ </a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1 class="noborder title">Documentation by YARD 0.8.7.3</h1>
60
+ <div id="listing">
61
+ <h1 class="alphaindex">Alphabetic Index</h1>
62
+
63
+ <h2>File Listing</h2>
64
+ <ul id="files" class="index_inline_list">
65
+
66
+
67
+ <li class="r1"><a href="index.html" title="README">README</a></li>
68
+
69
+
70
+ </ul>
71
+
72
+ <div class="clear"></div>
73
+ <h2>Namespace Listing A-Z</h2>
74
+
75
+
76
+
77
+
78
+ <table>
79
+ <tr>
80
+ <td valign='top' width="33%">
81
+
82
+
83
+ <ul id="alpha_A" class="alpha">
84
+ <li class="letter">A</li>
85
+ <ul>
86
+
87
+ <li>
88
+ <span class='object_link'><a href="Array.html" title="Array (class)">Array</a></span>
89
+
90
+ </li>
91
+
92
+ </ul>
93
+ </ul>
94
+
95
+
96
+ <ul id="alpha_F" class="alpha">
97
+ <li class="letter">F</li>
98
+ <ul>
99
+
100
+ <li>
101
+ <span class='object_link'><a href="Fixnum.html" title="Fixnum (class)">Fixnum</a></span>
102
+
103
+ </li>
104
+
105
+ </ul>
106
+ </ul>
107
+
108
+
109
+ <ul id="alpha_H" class="alpha">
110
+ <li class="letter">H</li>
111
+ <ul>
112
+
113
+ <li>
114
+ <span class='object_link'><a href="Hash.html" title="Hash (class)">Hash</a></span>
115
+
116
+ </li>
117
+
118
+ </ul>
119
+ </ul>
120
+
121
+
122
+ <ul id="alpha_K" class="alpha">
123
+ <li class="letter">K</li>
124
+ <ul>
125
+
126
+ <li>
127
+ <span class='object_link'><a href="Kernel.html" title="Kernel (module)">Kernel</a></span>
128
+
129
+ </li>
130
+
131
+ </ul>
132
+ </ul>
133
+
134
+
135
+ <ul id="alpha_M" class="alpha">
136
+ <li class="letter">M</li>
137
+ <ul>
138
+
139
+ <li>
140
+ <span class='object_link'><a href="Module.html" title="Module (class)">Module</a></span>
141
+
142
+ </li>
143
+
144
+ </ul>
145
+ </ul>
146
+
147
+
148
+ <ul id="alpha_O" class="alpha">
149
+ <li class="letter">O</li>
150
+ <ul>
151
+
152
+ <li>
153
+ <span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span>
154
+
155
+ </li>
156
+
157
+ </ul>
158
+ </ul>
159
+
160
+
161
+ <ul id="alpha_S" class="alpha">
162
+ <li class="letter">S</li>
163
+ <ul>
164
+
165
+ <li>
166
+ <span class='object_link'><a href="String.html" title="String (class)">String</a></span>
167
+
168
+ </li>
169
+
170
+ </ul>
171
+ </ul>
172
+
173
+ </td>
174
+ </tr>
175
+ </table>
176
+
177
+ </div>
178
+
179
+ </div>
180
+
181
+ <div id="footer">
182
+ Generated on Tue Dec 31 15:41:28 2013 by
183
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
184
+ 0.8.7.3 (ruby-2.0.0).
185
+ </div>
186
+
187
+ </body>
188
+ </html>