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/Module.html CHANGED
@@ -1,208 +1,236 @@
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: Module
8
+
9
+ &mdash; Documentation by YARD 0.8.7.3
10
+
11
+ </title>
6
12
 
7
- <title>class Module - 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 (M)</a> &raquo;
35
+
36
+
37
+ <span class="title">Module</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/module/private_accessor.rb
53
- </ul>
54
- </nav>
64
+ <iframe id="search_frame"></iframe>
55
65
 
56
-
57
- </div>
66
+ <div id="content"><h1>Class: Module
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">Module</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/module/private_accessor.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-private_accessor">#private_accessor</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
-
99
- <li><a href="./Array.html">Array</a>
100
109
 
101
- <li><a href="./Fixnum.html">Fixnum</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="private ">
118
+ <span class="summary_signature">
119
+
120
+ <a href="#private_accessor-instance_method" title="#private_accessor (instance method)">- (Object) <strong>private_accessor</strong>(*names) </a>
121
+
122
+
123
+
124
+ </span>
102
125
 
103
- <li><a href="./Hash.html">Hash</a>
104
126
 
105
- <li><a href="./Kernel.html">Kernel</a>
106
127
 
107
- <li><a href="./Module.html">Module</a>
128
+ <span class="note title private">private</span>
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 Module</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>Works like attr_accessor but generates private getter/setter methods for
136
+ class internal use only.</p>
137
+ </div></span>
127
138
 
139
+ </li>
140
+
141
+
142
+ </ul>
128
143
 
129
- <section id="5Buntitled-5D" class="documentation-section">
130
-
131
144
 
132
-
133
145
 
134
-
135
146
 
136
-
147
+ <div id="instance_method_details" class="method_details_list">
148
+ <h2>Instance Method Details</h2>
137
149
 
138
- <!-- Methods -->
139
150
 
140
- <section id="private-instance-5Buntitled-5D-method-details" class="method-section section">
141
- <h3 class="section-header">Private Instance Methods</h3>
151
+ <div class="method_details first">
152
+ <h3 class="signature first" id="private_accessor-instance_method">
153
+
154
+ - (<tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>) <strong>private_accessor</strong>(*names) <span class="extras">(private)</span>
155
+
142
156
 
143
-
144
- <div id="method-i-private_accessor" class="method-detail ">
145
-
146
- <div class="method-heading">
147
- <span class="method-name">private_accessor</span><span
148
- class="method-args">(*names)</span>
149
-
150
- <span class="method-click-advice">click to toggle source</span>
151
-
152
- </div>
153
-
157
+
154
158
 
155
- <div class="method-description">
156
-
157
- <p>Works like <code>attr_accessor</code> but generates private getter/setter
159
+
160
+ </h3><div class="docstring">
161
+ <div class="discussion">
162
+
163
+ <p>Works like <code>attr_accessor</code> but generates private getter/setter
158
164
  methods for class internal use only. Useful for enforcing Smalltalk-style
159
165
  internal encapsulation.</p>
160
166
 
161
167
  <p>For a more complete implementation of a similar feature see <a
162
168
  href="https://github.com/citizen428/ivar_encapsulation">ivar_encapsulation</a>.</p>
163
-
164
-
165
169
 
166
-
167
- <div class="method-source-code" id="private_accessor-source">
168
- <pre><span class="ruby-comment"># File lib/shenanigans/module/private_accessor.rb, line 7</span>
169
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">private_accessor</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">names</span>)
170
- <span class="ruby-identifier">names</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
171
- <span class="ruby-identifier">instance_var_name</span> = <span class="ruby-node">&quot;@#{name}&quot;</span>
172
-
173
- <span class="ruby-identifier">define_method</span>(<span class="ruby-identifier">name</span>) <span class="ruby-keyword">do</span>
174
- <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-identifier">instance_var_name</span>)
175
- <span class="ruby-keyword">end</span>
176
-
177
- <span class="ruby-identifier">define_method</span>(<span class="ruby-node">&quot;#{name}=&quot;</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
178
- <span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-identifier">instance_var_name</span>, <span class="ruby-identifier">value</span>)
179
- <span class="ruby-keyword">end</span>
180
-
181
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:private</span>, <span class="ruby-identifier">name</span>)
182
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:private</span>, <span class="ruby-node">&quot;#{name}=&quot;</span>)
183
- <span class="ruby-keyword">end</span>
184
- <span class="ruby-keyword">nil</span> <span class="ruby-comment"># like attr_accessor</span>
185
- <span class="ruby-keyword">end</span></pre>
186
- </div><!-- private_accessor-source -->
187
-
188
- </div>
189
-
190
-
191
-
192
-
193
- </div><!-- private_accessor-method -->
194
170
 
171
+ </div>
172
+ </div>
173
+ <div class="tags">
174
+
175
+
176
+ </div><table class="source_code">
177
+ <tr>
178
+ <td>
179
+ <pre class="lines">
180
+
181
+
182
+ 7
183
+ 8
184
+ 9
185
+ 10
186
+ 11
187
+ 12
188
+ 13
189
+ 14
190
+ 15
191
+ 16
192
+ 17
193
+ 18
194
+ 19
195
+ 20
196
+ 21
197
+ 22
198
+ 23</pre>
199
+ </td>
200
+ <td>
201
+ <pre class="code"><span class="info file"># File 'lib/shenanigans/module/private_accessor.rb', line 7</span>
202
+
203
+ <span class='kw'>def</span> <span class='id identifier rubyid_private_accessor'>private_accessor</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_names'>names</span><span class='rparen'>)</span>
204
+ <span class='id identifier rubyid_names'>names</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='op'>|</span>
205
+ <span class='id identifier rubyid_instance_var_name'>instance_var_name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>@</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
206
+
207
+ <span class='id identifier rubyid_define_method'>define_method</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='kw'>do</span>
208
+ <span class='id identifier rubyid_instance_variable_get'>instance_variable_get</span><span class='lparen'>(</span><span class='id identifier rubyid_instance_var_name'>instance_var_name</span><span class='rparen'>)</span>
209
+ <span class='kw'>end</span>
210
+
211
+ <span class='id identifier rubyid_define_method'>define_method</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
212
+ <span class='id identifier rubyid_instance_variable_set'>instance_variable_set</span><span class='lparen'>(</span><span class='id identifier rubyid_instance_var_name'>instance_var_name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
213
+ <span class='kw'>end</span>
214
+
215
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:private</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
216
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:private</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
217
+ <span class='kw'>end</span>
218
+ <span class='kw'>nil</span> <span class='comment'># like attr_accessor
219
+ </span><span class='kw'>end</span></pre>
220
+ </td>
221
+ </tr>
222
+ </table>
223
+ </div>
195
224
 
196
- </section><!-- private-instance-method-details -->
197
-
198
- </section><!-- 5Buntitled-5D -->
199
-
200
- </div><!-- documentation -->
225
+ </div>
201
226
 
227
+ </div>
202
228
 
203
- <footer id="validator-badges">
204
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
205
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
206
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
207
- </footer>
229
+ <div id="footer">
230
+ Generated on Tue Dec 31 15:41:30 2013 by
231
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
232
+ 0.8.7.3 (ruby-2.0.0).
233
+ </div>
208
234
 
235
+ </body>
236
+ </html>
data/doc/Object.html CHANGED
@@ -1,193 +1,189 @@
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: Object
8
+
9
+ &mdash; Documentation by YARD 0.8.7.3
10
+
11
+ </title>
6
12
 
7
- <title>class Object - 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 (O)</a> &raquo;
35
+
36
+
37
+ <span class="title">Object</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>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="method_list.html">
52
+ Method List
53
+ </a>
46
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/object/display.rb
53
- <li>lib/shenanigans/object/it.rb
54
- </ul>
55
- </nav>
64
+ <iframe id="search_frame"></iframe>
56
65
 
57
-
58
- </div>
66
+ <div id="content"><h1>Class: Object
67
+
68
+
69
+
70
+ </h1>
59
71
 
60
- <div id="class-metadata">
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName">BasicObject</span>
77
+
78
+ </dd>
61
79
 
62
- <nav id="parent-class-section" class="section">
63
- <h3 class="section-header">Parent</h3>
64
80
 
65
- <p class="link">BasicObject
66
81
 
67
- </nav>
68
-
69
82
 
83
+
70
84
 
71
- <!-- Method Quickref -->
72
- <nav id="method-list-section" class="section">
73
- <h3 class="section-header">Methods</h3>
85
+
86
+
87
+
88
+ <dt class="r2 last">Defined in:</dt>
89
+ <dd class="r2 last">lib/shenanigans/object/it.rb<span class="defines">,<br />
90
+ lib/shenanigans/object/display.rb</span>
91
+ </dd>
92
+
93
+ </dl>
94
+ <div class="clear"></div>
95
+
96
+
74
97
 
75
- <ul class="link-list">
76
-
77
- <li ><a href="#method-i-d">#d</a>
78
-
79
- <li ><a href="#method-i-display">#display</a>
80
-
81
- <li ><a href="#method-i-it">#it</a>
82
-
83
- </ul>
84
- </nav>
85
98
 
86
- </div>
87
99
 
88
- <div id="project-metadata">
89
- <nav id="fileindex-section" class="section project-section">
90
- <h3 class="section-header">Pages</h3>
91
100
 
92
- <ul>
93
-
94
- <li class="file"><a href="./README_rdoc.html">README</a>
95
-
96
- </ul>
97
- </nav>
98
101
 
99
- <nav id="classindex-section" class="section project-section">
100
- <h3 class="section-header">Class and Module Index</h3>
101
102
 
102
- <ul class="link-list">
103
103
 
104
- <li><a href="./Array.html">Array</a>
104
+ <h2>
105
+ Instance Method Summary
106
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
107
+ </h2>
108
+
109
+ <ul class="summary">
110
+
111
+ <li class="public ">
112
+ <span class="summary_signature">
113
+
114
+ <a href="#display-instance_method" title="#display (instance method)">- (Object) <strong>display</strong>(new_line = true) </a>
115
+
116
+
117
+
118
+ (also: #d)
119
+
120
+ </span>
105
121
 
106
- <li><a href="./Fixnum.html">Fixnum</a>
107
122
 
108
- <li><a href="./Hash.html">Hash</a>
109
123
 
110
- <li><a href="./Kernel.html">Kernel</a>
111
124
 
112
- <li><a href="./Module.html">Module</a>
113
125
 
114
- <li><a href="./Object.html">Object</a>
115
126
 
116
- <li><a href="./String.html">String</a>
117
127
 
118
- </ul>
119
- </nav>
120
128
 
121
- </div>
122
- </nav>
129
+
130
+ <span class="summary_desc"><div class='inline'>
131
+ <p>Outputs the object and also returns it.</p>
132
+ </div></span>
133
+
134
+ </li>
123
135
 
124
- <div id="documentation">
125
- <h1 class="class">class Object</h1>
136
+
137
+ <li class="public ">
138
+ <span class="summary_signature">
139
+
140
+ <a href="#it-instance_method" title="#it (instance method)">- (Object) <strong>it</strong> </a>
141
+
126
142
 
127
- <div id="description" class="description">
128
143
 
129
- </div><!-- description -->
144
+ </span>
145
+
146
+
147
+
148
+
149
+
150
+
151
+
130
152
 
131
153
 
154
+ <span class="summary_desc"><div class='inline'>
155
+ <p>An identity method that provides access to an object&#39;s self.</p>
156
+ </div></span>
132
157
 
158
+ </li>
159
+
160
+
161
+ </ul>
133
162
 
134
- <section id="5Buntitled-5D" class="documentation-section">
135
-
136
163
 
137
-
138
164
 
139
-
140
165
 
141
-
166
+ <div id="instance_method_details" class="method_details_list">
167
+ <h2>Instance Method Details</h2>
142
168
 
143
- <!-- Methods -->
144
169
 
145
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
146
- <h3 class="section-header">Public Instance Methods</h3>
170
+ <div class="method_details first">
171
+ <h3 class="signature first" id="display-instance_method">
172
+
173
+ - (<tt><span class='object_link'><a href="" title="Object (class)">Object</a></span></tt>) <strong>display</strong>(new_line = true)
174
+
147
175
 
148
-
149
- <div id="method-i-d" class="method-detail method-alias">
150
-
151
- <div class="method-heading">
152
- <span class="method-name">d</span><span
153
- class="method-args">(new_line = true)</span>
154
-
155
- </div>
156
-
157
-
158
- <div class="method-description">
159
-
160
-
161
-
162
-
163
-
164
-
165
- </div>
166
-
167
-
168
-
169
-
170
- <div class="aliases">
171
- Alias for: <a href="Object.html#method-i-display">display</a>
172
- </div>
173
-
174
- </div><!-- d-method -->
176
+
177
+ <span class="aliases">Also known as:
178
+ <span class="names"><span id='d-instance_method'>d</span></span>
179
+ </span>
180
+
175
181
 
182
+
183
+ </h3><div class="docstring">
184
+ <div class="discussion">
176
185
 
177
- <div id="method-i-display" class="method-detail ">
178
-
179
- <div class="method-heading">
180
- <span class="method-name">display</span><span
181
- class="method-args">(new_line = true)</span>
182
-
183
- <span class="method-click-advice">click to toggle source</span>
184
-
185
- </div>
186
-
187
-
188
- <div class="method-description">
189
-
190
- <p>Outputs the object and also returns it. Will use <code>puts</code> if
186
+ <p>Outputs the object and also returns it. Will use <code>puts</code> if
191
187
  <code>new_line</code> is <code>true</code> and <code>print</code>
192
188
  otherwise.</p>
193
189
 
@@ -198,78 +194,91 @@ otherwise.</p>
198
194
  <span class="ruby-string">&quot;foo&quot;</span>.<span class="ruby-identifier">display</span>(<span class="ruby-keyword">false</span>)
199
195
  <span class="ruby-identifier">foo</span><span class="ruby-comment">#=&gt; &quot;foo&quot;</span>
200
196
  </pre>
201
-
202
-
203
-
204
-
205
- <div class="method-source-code" id="display-source">
206
- <pre><span class="ruby-comment"># File lib/shenanigans/object/display.rb, line 11</span>
207
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">display</span>(<span class="ruby-identifier">new_line</span> = <span class="ruby-keyword">true</span>)
208
- <span class="ruby-identifier">m</span> = <span class="ruby-identifier">new_line</span> <span class="ruby-operator">?</span> <span class="ruby-value">:puts</span> <span class="ruby-operator">:</span> <span class="ruby-value">:print</span>
209
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">tap</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">o</span><span class="ruby-operator">|</span> <span class="ruby-identifier">send</span>(<span class="ruby-identifier">m</span>, <span class="ruby-identifier">o</span>) }
210
- <span class="ruby-keyword">end</span></pre>
211
- </div><!-- display-source -->
212
-
213
- </div>
214
-
215
-
216
- <div class="aliases">
217
- Also aliased as: <a href="Object.html#method-i-d">d</a>
218
- </div>
219
-
220
-
221
-
222
- </div><!-- display-method -->
223
197
 
198
+
199
+ </div>
200
+ </div>
201
+ <div class="tags">
202
+
203
+
204
+ </div><table class="source_code">
205
+ <tr>
206
+ <td>
207
+ <pre class="lines">
208
+
209
+
210
+ 11
211
+ 12
212
+ 13
213
+ 14</pre>
214
+ </td>
215
+ <td>
216
+ <pre class="code"><span class="info file"># File 'lib/shenanigans/object/display.rb', line 11</span>
217
+
218
+ <span class='kw'>def</span> <span class='id identifier rubyid_display'>display</span><span class='lparen'>(</span><span class='id identifier rubyid_new_line'>new_line</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
219
+ <span class='id identifier rubyid_m'>m</span> <span class='op'>=</span> <span class='id identifier rubyid_new_line'>new_line</span> <span class='op'>?</span> <span class='symbol'>:puts</span> <span class='op'>:</span> <span class='symbol'>:print</span>
220
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_o'>o</span><span class='op'>|</span> <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_m'>m</span><span class='comma'>,</span> <span class='id identifier rubyid_o'>o</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
221
+ <span class='kw'>end</span></pre>
222
+ </td>
223
+ </tr>
224
+ </table>
225
+ </div>
224
226
 
225
- <div id="method-i-it" class="method-detail ">
226
-
227
- <div class="method-heading">
228
- <span class="method-name">it</span><span
229
- class="method-args">()</span>
230
-
231
- <span class="method-click-advice">click to toggle source</span>
232
-
233
- </div>
234
-
235
-
236
- <div class="method-description">
237
-
238
- <p>An identity method that provides access to an object&#39;s
227
+ <div class="method_details ">
228
+ <h3 class="signature " id="it-instance_method">
229
+
230
+ - (<tt><span class='object_link'><a href="" title="Object (class)">Object</a></span></tt>) <strong>it</strong>
231
+
232
+
233
+
234
+
235
+
236
+ </h3><div class="docstring">
237
+ <div class="discussion">
238
+
239
+ <p>An identity method that provides access to an object&#39;s
239
240
  <code>self</code>.</p>
240
241
 
241
242
  <pre class="ruby">[<span class="ruby-value">1</span>,<span class="ruby-value">2</span>,<span class="ruby-value">3</span>,<span class="ruby-value">4</span>,<span class="ruby-value">5</span>,<span class="ruby-value">1</span>,<span class="ruby-value">2</span>,<span class="ruby-value">2</span>,<span class="ruby-value">3</span>].<span class="ruby-identifier">group_by</span>(<span class="ruby-operator">&amp;</span>:<span class="ruby-identifier">it</span>)
242
243
  <span class="ruby-comment">#=&gt; {1=&gt;[1, 1], 2=&gt;[2, 2, 2], 3=&gt;[3, 3], 4=&gt;[4], 5=&gt;[5]}</span>
243
244
  </pre>
244
-
245
-
246
-
247
-
248
- <div class="method-source-code" id="it-source">
249
- <pre><span class="ruby-comment"># File lib/shenanigans/object/it.rb, line 6</span>
250
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">it</span>
251
- <span class="ruby-keyword">self</span>
252
- <span class="ruby-keyword">end</span></pre>
253
- </div><!-- it-source -->
254
-
255
- </div>
256
-
257
-
258
245
 
259
-
260
- </div><!-- it-method -->
261
246
 
262
-
263
- </section><!-- public-instance-method-details -->
247
+ </div>
248
+ </div>
249
+ <div class="tags">
264
250
 
265
- </section><!-- 5Buntitled-5D -->
266
251
 
267
- </div><!-- documentation -->
252
+ </div><table class="source_code">
253
+ <tr>
254
+ <td>
255
+ <pre class="lines">
256
+
257
+
258
+ 6
259
+ 7
260
+ 8</pre>
261
+ </td>
262
+ <td>
263
+ <pre class="code"><span class="info file"># File 'lib/shenanigans/object/it.rb', line 6</span>
264
+
265
+ <span class='kw'>def</span> <span class='id identifier rubyid_it'>it</span>
266
+ <span class='kw'>self</span>
267
+ <span class='kw'>end</span></pre>
268
+ </td>
269
+ </tr>
270
+ </table>
271
+ </div>
272
+
273
+ </div>
268
274
 
275
+ </div>
269
276
 
270
- <footer id="validator-badges">
271
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
272
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
273
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
274
- </footer>
277
+ <div id="footer">
278
+ Generated on Tue Dec 31 15:41:29 2013 by
279
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
280
+ 0.8.7.3 (ruby-2.0.0).
281
+ </div>
275
282
 
283
+ </body>
284
+ </html>