mack-facets 0.7.0.1 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/doc/classes/Array.html +60 -60
  2. data/doc/classes/Class.html +18 -18
  3. data/doc/classes/Hash.html +18 -18
  4. data/doc/classes/Kernel.html +40 -12
  5. data/doc/classes/Mack/Facets/DateTime.html +168 -0
  6. data/doc/classes/Mack/Facets.html +111 -0
  7. data/doc/classes/Mack/Utils/BlankSlate.html +113 -0
  8. data/doc/classes/Mack/Utils/Inflector.html +47 -47
  9. data/doc/classes/Mack/Utils/RegistryList.html +74 -74
  10. data/doc/classes/Mack/Utils/RegistryMap.html +71 -71
  11. data/doc/classes/Math.html +18 -18
  12. data/doc/classes/Module.html +12 -12
  13. data/doc/classes/NilClass.html +6 -6
  14. data/doc/classes/Object.html +68 -68
  15. data/doc/classes/String.html +185 -172
  16. data/doc/classes/Symbol.html +6 -6
  17. data/doc/classes/Time.html +204 -0
  18. data/doc/created.rid +1 -1
  19. data/doc/files/README.html +1 -1
  20. data/doc/files/lib/mack-facets/english_extensions/inflect_rb.html +1 -1
  21. data/doc/files/lib/mack-facets/english_extensions/numerals_rb.html +1 -1
  22. data/doc/files/lib/mack-facets/extensions/array_rb.html +1 -1
  23. data/doc/files/lib/mack-facets/extensions/class_rb.html +1 -1
  24. data/doc/files/lib/mack-facets/extensions/date_time_rb.html +129 -0
  25. data/doc/files/lib/mack-facets/extensions/hash_rb.html +1 -1
  26. data/doc/files/lib/mack-facets/extensions/kernel_rb.html +1 -1
  27. data/doc/files/lib/mack-facets/extensions/math_rb.html +1 -1
  28. data/doc/files/lib/mack-facets/extensions/module_rb.html +1 -1
  29. data/doc/files/lib/mack-facets/extensions/nil_class_rb.html +1 -1
  30. data/doc/files/lib/mack-facets/extensions/object_rb.html +1 -1
  31. data/doc/files/lib/mack-facets/extensions/string_rb.html +1 -1
  32. data/doc/files/lib/mack-facets/extensions/symbol_rb.html +1 -1
  33. data/doc/files/lib/mack-facets/extensions/time_rb.html +108 -0
  34. data/doc/files/lib/mack-facets/utils/blank_slate_rb.html +101 -0
  35. data/doc/files/lib/mack-facets/utils/inflections_rb.html +1 -1
  36. data/doc/files/lib/mack-facets/utils/inflector_rb.html +1 -1
  37. data/doc/files/lib/mack-facets/utils/options_merger_rb.html +1 -1
  38. data/doc/files/lib/mack-facets/utils/registry_list_rb.html +1 -1
  39. data/doc/files/lib/mack-facets/utils/registry_map_rb.html +1 -1
  40. data/doc/files/lib/mack-facets_rb.html +3 -3
  41. data/doc/fr_class_index.html +2 -0
  42. data/doc/fr_file_index.html +1 -0
  43. data/doc/fr_method_index.html +75 -71
  44. data/lib/mack-facets/extensions/date_time.rb +36 -0
  45. data/lib/mack-facets/extensions/kernel.rb +5 -0
  46. data/lib/mack-facets/extensions/string.rb +2 -0
  47. data/lib/mack-facets/extensions/time.rb +5 -0
  48. data/lib/mack-facets.rb +3 -4
  49. metadata +12 -4
@@ -88,15 +88,15 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000014">count</a>&nbsp;&nbsp;
92
- <a href="#M000015">invert</a>&nbsp;&nbsp;
93
- <a href="#M000007">parse_splat_args</a>&nbsp;&nbsp;
94
- <a href="#M000010">pick_random</a>&nbsp;&nbsp;
95
- <a href="#M000011">random_each</a>&nbsp;&nbsp;
96
- <a href="#M000008">randomize</a>&nbsp;&nbsp;
97
- <a href="#M000009">randomize!</a>&nbsp;&nbsp;
98
- <a href="#M000012">subset?</a>&nbsp;&nbsp;
99
- <a href="#M000013">superset?</a>&nbsp;&nbsp;
91
+ <a href="#M000021">count</a>&nbsp;&nbsp;
92
+ <a href="#M000022">invert</a>&nbsp;&nbsp;
93
+ <a href="#M000014">parse_splat_args</a>&nbsp;&nbsp;
94
+ <a href="#M000017">pick_random</a>&nbsp;&nbsp;
95
+ <a href="#M000018">random_each</a>&nbsp;&nbsp;
96
+ <a href="#M000015">randomize</a>&nbsp;&nbsp;
97
+ <a href="#M000016">randomize!</a>&nbsp;&nbsp;
98
+ <a href="#M000019">subset?</a>&nbsp;&nbsp;
99
+ <a href="#M000020">superset?</a>&nbsp;&nbsp;
100
100
  </div>
101
101
  </div>
102
102
 
@@ -118,26 +118,26 @@
118
118
  <div id="methods">
119
119
  <h3 class="section-bar">Public Instance methods</h3>
120
120
 
121
- <div id="method-M000014" class="method-detail">
122
- <a name="M000014"></a>
121
+ <div id="method-M000021" class="method-detail">
122
+ <a name="M000021"></a>
123
123
 
124
124
  <div class="method-heading">
125
- <a href="#M000014" class="method-signature">
125
+ <a href="#M000021" class="method-signature">
126
126
  <span class="method-name">count</span><span class="method-args">()</span>
127
127
  </a>
128
128
  </div>
129
129
 
130
130
  <div class="method-description">
131
131
  <p>
132
- This will give you a <a href="Array.html#M000014">count</a>, as a <a
132
+ This will give you a <a href="Array.html#M000021">count</a>, as a <a
133
133
  href="Hash.html">Hash</a>, of all the values in the <a
134
134
  href="Array.html">Array</a>. %w{spam spam eggs ham eggs spam}.<a
135
- href="Array.html#M000014">count</a> # =&gt; {&quot;eggs&quot; =&gt; 2,
135
+ href="Array.html#M000021">count</a> # =&gt; {&quot;eggs&quot; =&gt; 2,
136
136
  &quot;ham&quot; =&gt; 1, &quot;spam&quot; =&gt; 3}
137
137
  </p>
138
138
  <p><a class="source-toggle" href="#"
139
- onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
140
- <div class="method-source-code" id="M000014-source">
139
+ onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
140
+ <div class="method-source-code" id="M000021-source">
141
141
  <pre>
142
142
  <span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 76</span>
143
143
  76: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">count</span>
@@ -150,25 +150,25 @@ href="Array.html#M000014">count</a> # =&gt; {&quot;eggs&quot; =&gt; 2,
150
150
  </div>
151
151
  </div>
152
152
 
153
- <div id="method-M000015" class="method-detail">
154
- <a name="M000015"></a>
153
+ <div id="method-M000022" class="method-detail">
154
+ <a name="M000022"></a>
155
155
 
156
156
  <div class="method-heading">
157
- <a href="#M000015" class="method-signature">
157
+ <a href="#M000022" class="method-signature">
158
158
  <span class="method-name">invert</span><span class="method-args">()</span>
159
159
  </a>
160
160
  </div>
161
161
 
162
162
  <div class="method-description">
163
163
  <p>
164
- This will <a href="Array.html#M000015">invert</a> the index and the values
164
+ This will <a href="Array.html#M000022">invert</a> the index and the values
165
165
  and return a <a href="Hash.html">Hash</a> of the results. %w{red yellow
166
- orange}.<a href="Array.html#M000015">invert</a> # =&gt; {&quot;red&quot;
166
+ orange}.<a href="Array.html#M000022">invert</a> # =&gt; {&quot;red&quot;
167
167
  =&gt; 0, &quot;orange&quot; =&gt; 2, &quot;yellow&quot; =&gt; 1}
168
168
  </p>
169
169
  <p><a class="source-toggle" href="#"
170
- onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
171
- <div class="method-source-code" id="M000015-source">
170
+ onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
171
+ <div class="method-source-code" id="M000022-source">
172
172
  <pre>
173
173
  <span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 84</span>
174
174
  84: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">invert</span>
@@ -181,11 +181,11 @@ orange}.<a href="Array.html#M000015">invert</a> # =&gt; {&quot;red&quot;
181
181
  </div>
182
182
  </div>
183
183
 
184
- <div id="method-M000007" class="method-detail">
185
- <a name="M000007"></a>
184
+ <div id="method-M000014" class="method-detail">
185
+ <a name="M000014"></a>
186
186
 
187
187
  <div class="method-heading">
188
- <a href="#M000007" class="method-signature">
188
+ <a href="#M000014" class="method-signature">
189
189
  <span class="method-name">parse_splat_args</span><span class="method-args">()</span>
190
190
  </a>
191
191
  </div>
@@ -202,15 +202,15 @@ foo(*args)
202
202
  end The problem is when you use the * like that everything that comes in is
203
203
  an array. Here are a few problems with this: foo([1,2,3]) When you pass an
204
204
  array into this type of method you get the following nested array:
205
- [[1,2,3]] The <a href="Array.html#M000007">parse_splat_args</a> method, if
205
+ [[1,2,3]] The <a href="Array.html#M000014">parse_splat_args</a> method, if
206
206
  called, would do this: args.parse_splat_args # =&gt; [1,2,3] Now say you
207
207
  called this method like such: foo(1) args would be [1]
208
208
  args.parse_splat_args # =&gt; 1 Finally foo args.parse_splat_args # =&gt;
209
209
  nil
210
210
  </p>
211
211
  <p><a class="source-toggle" href="#"
212
- onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
213
- <div class="method-source-code" id="M000007-source">
212
+ onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
213
+ <div class="method-source-code" id="M000014-source">
214
214
  <pre>
215
215
  <span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 21</span>
216
216
  21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_splat_args</span>
@@ -231,11 +231,11 @@ nil
231
231
  </div>
232
232
  </div>
233
233
 
234
- <div id="method-M000010" class="method-detail">
235
- <a name="M000010"></a>
234
+ <div id="method-M000017" class="method-detail">
235
+ <a name="M000017"></a>
236
236
 
237
237
  <div class="method-heading">
238
- <a href="#M000010" class="method-signature">
238
+ <a href="#M000017" class="method-signature">
239
239
  <span class="method-name">pick_random</span><span class="method-args">()</span>
240
240
  </a>
241
241
  </div>
@@ -245,8 +245,8 @@ nil
245
245
  This will pick a random value from the array
246
246
  </p>
247
247
  <p><a class="source-toggle" href="#"
248
- onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
249
- <div class="method-source-code" id="M000010-source">
248
+ onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
249
+ <div class="method-source-code" id="M000017-source">
250
250
  <pre>
251
251
  <span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 54</span>
252
252
  54: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pick_random</span>
@@ -257,11 +257,11 @@ This will pick a random value from the array
257
257
  </div>
258
258
  </div>
259
259
 
260
- <div id="method-M000011" class="method-detail">
261
- <a name="M000011"></a>
260
+ <div id="method-M000018" class="method-detail">
261
+ <a name="M000018"></a>
262
262
 
263
263
  <div class="method-heading">
264
- <a href="#M000011" class="method-signature">
264
+ <a href="#M000018" class="method-signature">
265
265
  <span class="method-name">random_each</span><span class="method-args">() {|x| ...}</span>
266
266
  </a>
267
267
  </div>
@@ -271,8 +271,8 @@ This will pick a random value from the array
271
271
  This allows you to easily recurse of the array randomly.
272
272
  </p>
273
273
  <p><a class="source-toggle" href="#"
274
- onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
275
- <div class="method-source-code" id="M000011-source">
274
+ onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
275
+ <div class="method-source-code" id="M000018-source">
276
276
  <pre>
277
277
  <span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 59</span>
278
278
  59: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">random_each</span>
@@ -283,11 +283,11 @@ This allows you to easily recurse of the array randomly.
283
283
  </div>
284
284
  </div>
285
285
 
286
- <div id="method-M000008" class="method-detail">
287
- <a name="M000008"></a>
286
+ <div id="method-M000015" class="method-detail">
287
+ <a name="M000015"></a>
288
288
 
289
289
  <div class="method-heading">
290
- <a href="#M000008" class="method-signature">
290
+ <a href="#M000015" class="method-signature">
291
291
  <span class="method-name">randomize</span><span class="method-args">() {|x, y| ...}</span>
292
292
  </a>
293
293
  </div>
@@ -297,8 +297,8 @@ This allows you to easily recurse of the array randomly.
297
297
  This will return a new instance of the array sorted randomly.
298
298
  </p>
299
299
  <p><a class="source-toggle" href="#"
300
- onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
301
- <div class="method-source-code" id="M000008-source">
300
+ onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
301
+ <div class="method-source-code" id="M000015-source">
302
302
  <pre>
303
303
  <span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 36</span>
304
304
  36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">randomize</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -313,23 +313,23 @@ This will return a new instance of the array sorted randomly.
313
313
  </div>
314
314
  </div>
315
315
 
316
- <div id="method-M000009" class="method-detail">
317
- <a name="M000009"></a>
316
+ <div id="method-M000016" class="method-detail">
317
+ <a name="M000016"></a>
318
318
 
319
319
  <div class="method-heading">
320
- <a href="#M000009" class="method-signature">
320
+ <a href="#M000016" class="method-signature">
321
321
  <span class="method-name">randomize!</span><span class="method-args">(&amp;block)</span>
322
322
  </a>
323
323
  </div>
324
324
 
325
325
  <div class="method-description">
326
326
  <p>
327
- This calls the <a href="Array.html#M000008">randomize</a> method, but will
327
+ This calls the <a href="Array.html#M000015">randomize</a> method, but will
328
328
  permantly replace the existing array.
329
329
  </p>
330
330
  <p><a class="source-toggle" href="#"
331
- onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
332
- <div class="method-source-code" id="M000009-source">
331
+ onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
332
+ <div class="method-source-code" id="M000016-source">
333
333
  <pre>
334
334
  <span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 45</span>
335
335
  45: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">randomize!</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -344,19 +344,19 @@ permantly replace the existing array.
344
344
  </div>
345
345
  </div>
346
346
 
347
- <div id="method-M000012" class="method-detail">
348
- <a name="M000012"></a>
347
+ <div id="method-M000019" class="method-detail">
348
+ <a name="M000019"></a>
349
349
 
350
350
  <div class="method-heading">
351
- <a href="#M000012" class="method-signature">
351
+ <a href="#M000019" class="method-signature">
352
352
  <span class="method-name">subset?</span><span class="method-args">(other)</span>
353
353
  </a>
354
354
  </div>
355
355
 
356
356
  <div class="method-description">
357
357
  <p><a class="source-toggle" href="#"
358
- onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
359
- <div class="method-source-code" id="M000012-source">
358
+ onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
359
+ <div class="method-source-code" id="M000019-source">
360
360
  <pre>
361
361
  <span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 63</span>
362
362
  63: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">subset?</span>(<span class="ruby-identifier">other</span>)
@@ -370,19 +370,19 @@ permantly replace the existing array.
370
370
  </div>
371
371
  </div>
372
372
 
373
- <div id="method-M000013" class="method-detail">
374
- <a name="M000013"></a>
373
+ <div id="method-M000020" class="method-detail">
374
+ <a name="M000020"></a>
375
375
 
376
376
  <div class="method-heading">
377
- <a href="#M000013" class="method-signature">
377
+ <a href="#M000020" class="method-signature">
378
378
  <span class="method-name">superset?</span><span class="method-args">(other)</span>
379
379
  </a>
380
380
  </div>
381
381
 
382
382
  <div class="method-description">
383
383
  <p><a class="source-toggle" href="#"
384
- onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
385
- <div class="method-source-code" id="M000013-source">
384
+ onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
385
+ <div class="method-source-code" id="M000020-source">
386
386
  <pre>
387
387
  <span class="ruby-comment cmt"># File lib/mack-facets/extensions/array.rb, line 70</span>
388
388
  70: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">superset?</span>(<span class="ruby-identifier">other</span>)
@@ -88,9 +88,9 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000019">class_is_a?</a>&nbsp;&nbsp;
92
- <a href="#M000018">new_instance_of</a>&nbsp;&nbsp;
93
- <a href="#M000020">parents</a>&nbsp;&nbsp;
91
+ <a href="#M000028">class_is_a?</a>&nbsp;&nbsp;
92
+ <a href="#M000027">new_instance_of</a>&nbsp;&nbsp;
93
+ <a href="#M000029">parents</a>&nbsp;&nbsp;
94
94
  </div>
95
95
  </div>
96
96
 
@@ -112,11 +112,11 @@
112
112
  <div id="methods">
113
113
  <h3 class="section-bar">Public Class methods</h3>
114
114
 
115
- <div id="method-M000018" class="method-detail">
116
- <a name="M000018"></a>
115
+ <div id="method-M000027" class="method-detail">
116
+ <a name="M000027"></a>
117
117
 
118
118
  <div class="method-heading">
119
- <a href="#M000018" class="method-signature">
119
+ <a href="#M000027" class="method-signature">
120
120
  <span class="method-name">new_instance_of</span><span class="method-args">(klass_name)</span>
121
121
  </a>
122
122
  </div>
@@ -134,8 +134,8 @@ Examples:
134
134
  Class.new_instance_of(&quot;Animals::Dog&quot;) =&gt; #&lt;Animals::Dog:0x376a2c&gt;
135
135
  </pre>
136
136
  <p><a class="source-toggle" href="#"
137
- onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
138
- <div class="method-source-code" id="M000018-source">
137
+ onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
138
+ <div class="method-source-code" id="M000027-source">
139
139
  <pre>
140
140
  <span class="ruby-comment cmt"># File lib/mack-facets/extensions/class.rb, line 8</span>
141
141
  8: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new_instance_of</span>(<span class="ruby-identifier">klass_name</span>)
@@ -148,11 +148,11 @@ Examples:
148
148
 
149
149
  <h3 class="section-bar">Public Instance methods</h3>
150
150
 
151
- <div id="method-M000019" class="method-detail">
152
- <a name="M000019"></a>
151
+ <div id="method-M000028" class="method-detail">
152
+ <a name="M000028"></a>
153
153
 
154
154
  <div class="method-heading">
155
- <a href="#M000019" class="method-signature">
155
+ <a href="#M000028" class="method-signature">
156
156
  <span class="method-name">class_is_a?</span><span class="method-args">(klass_name)</span>
157
157
  </a>
158
158
  </div>
@@ -163,8 +163,8 @@ This will through the ancestor tree of object and tell you if that object
163
163
  is of the specified type.
164
164
  </p>
165
165
  <p><a class="source-toggle" href="#"
166
- onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
167
- <div class="method-source-code" id="M000019-source">
166
+ onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
167
+ <div class="method-source-code" id="M000028-source">
168
168
  <pre>
169
169
  <span class="ruby-comment cmt"># File lib/mack-facets/extensions/class.rb, line 14</span>
170
170
  14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">class_is_a?</span>(<span class="ruby-identifier">klass_name</span>)
@@ -180,11 +180,11 @@ is of the specified type.
180
180
  </div>
181
181
  </div>
182
182
 
183
- <div id="method-M000020" class="method-detail">
184
- <a name="M000020"></a>
183
+ <div id="method-M000029" class="method-detail">
184
+ <a name="M000029"></a>
185
185
 
186
186
  <div class="method-heading">
187
- <a href="#M000020" class="method-signature">
187
+ <a href="#M000029" class="method-signature">
188
188
  <span class="method-name">parents</span><span class="method-args">()</span>
189
189
  </a>
190
190
  </div>
@@ -202,8 +202,8 @@ Examples:
202
202
  Fruit.parents # =&gt; [Object]
203
203
  </pre>
204
204
  <p><a class="source-toggle" href="#"
205
- onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
206
- <div class="method-source-code" id="M000020-source">
205
+ onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
206
+ <div class="method-source-code" id="M000029-source">
207
207
  <pre>
208
208
  <span class="ruby-comment cmt"># File lib/mack-facets/extensions/class.rb, line 29</span>
209
209
  29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parents</span>
@@ -88,9 +88,9 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000005">-</a>&nbsp;&nbsp;
92
- <a href="#M000004">join</a>&nbsp;&nbsp;
93
- <a href="#M000006">to_params</a>&nbsp;&nbsp;
91
+ <a href="#M000031">-</a>&nbsp;&nbsp;
92
+ <a href="#M000030">join</a>&nbsp;&nbsp;
93
+ <a href="#M000032">to_params</a>&nbsp;&nbsp;
94
94
  </div>
95
95
  </div>
96
96
 
@@ -112,11 +112,11 @@
112
112
  <div id="methods">
113
113
  <h3 class="section-bar">Public Instance methods</h3>
114
114
 
115
- <div id="method-M000005" class="method-detail">
116
- <a name="M000005"></a>
115
+ <div id="method-M000031" class="method-detail">
116
+ <a name="M000031"></a>
117
117
 
118
118
  <div class="method-heading">
119
- <a href="#M000005" class="method-signature">
119
+ <a href="#M000031" class="method-signature">
120
120
  <span class="method-name">-</span><span class="method-args">(ars)</span>
121
121
  </a>
122
122
  </div>
@@ -126,8 +126,8 @@
126
126
  Deletes the key(s) passed in from the hash.
127
127
  </p>
128
128
  <p><a class="source-toggle" href="#"
129
- onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
130
- <div class="method-source-code" id="M000005-source">
129
+ onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
130
+ <div class="method-source-code" id="M000031-source">
131
131
  <pre>
132
132
  <span class="ruby-comment cmt"># File lib/mack-facets/extensions/hash.rb, line 14</span>
133
133
  14: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">ars</span>)
@@ -139,19 +139,19 @@ Deletes the key(s) passed in from the hash.
139
139
  </div>
140
140
  </div>
141
141
 
142
- <div id="method-M000004" class="method-detail">
143
- <a name="M000004"></a>
142
+ <div id="method-M000030" class="method-detail">
143
+ <a name="M000030"></a>
144
144
 
145
145
  <div class="method-heading">
146
- <a href="#M000004" class="method-signature">
146
+ <a href="#M000030" class="method-signature">
147
147
  <span class="method-name">join</span><span class="method-args">(pair_string, join_string)</span>
148
148
  </a>
149
149
  </div>
150
150
 
151
151
  <div class="method-description">
152
152
  <p><a class="source-toggle" href="#"
153
- onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
154
- <div class="method-source-code" id="M000004-source">
153
+ onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
154
+ <div class="method-source-code" id="M000030-source">
155
155
  <pre>
156
156
  <span class="ruby-comment cmt"># File lib/mack-facets/extensions/hash.rb, line 4</span>
157
157
  4: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">join</span>(<span class="ruby-identifier">pair_string</span>, <span class="ruby-identifier">join_string</span>)
@@ -167,11 +167,11 @@ Deletes the key(s) passed in from the hash.
167
167
  </div>
168
168
  </div>
169
169
 
170
- <div id="method-M000006" class="method-detail">
171
- <a name="M000006"></a>
170
+ <div id="method-M000032" class="method-detail">
171
+ <a name="M000032"></a>
172
172
 
173
173
  <div class="method-heading">
174
- <a href="#M000006" class="method-signature">
174
+ <a href="#M000032" class="method-signature">
175
175
  <span class="method-name">to_params</span><span class="method-args">(escape = true)</span>
176
176
  </a>
177
177
  </div>
@@ -182,8 +182,8 @@ Converts a hash to query string parameters. An optional boolean escapes the
182
182
  values if true, which is the default.
183
183
  </p>
184
184
  <p><a class="source-toggle" href="#"
185
- onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
186
- <div class="method-source-code" id="M000006-source">
185
+ onclick="toggleCode('M000032-source');return false;">[Source]</a></p>
186
+ <div class="method-source-code" id="M000032-source">
187
187
  <pre>
188
188
  <span class="ruby-comment cmt"># File lib/mack-facets/extensions/hash.rb, line 21</span>
189
189
  21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_params</span>(<span class="ruby-identifier">escape</span> = <span class="ruby-keyword kw">true</span>)
@@ -80,8 +80,9 @@
80
80
  <h3 class="section-bar">Methods</h3>
81
81
 
82
82
  <div class="name-list">
83
- <a href="#M000070">pp_to_s</a>&nbsp;&nbsp;
84
- <a href="#M000071">retryable</a>&nbsp;&nbsp;
83
+ <a href="#M000073">pp_to_s</a>&nbsp;&nbsp;
84
+ <a href="#M000074">retryable</a>&nbsp;&nbsp;
85
+ <a href="#M000075">ruby?</a>&nbsp;&nbsp;
85
86
  </div>
86
87
  </div>
87
88
 
@@ -103,19 +104,19 @@
103
104
  <div id="methods">
104
105
  <h3 class="section-bar">Public Instance methods</h3>
105
106
 
106
- <div id="method-M000070" class="method-detail">
107
- <a name="M000070"></a>
107
+ <div id="method-M000073" class="method-detail">
108
+ <a name="M000073"></a>
108
109
 
109
110
  <div class="method-heading">
110
- <a href="#M000070" class="method-signature">
111
+ <a href="#M000073" class="method-signature">
111
112
  <span class="method-name">pp_to_s</span><span class="method-args">(object)</span>
112
113
  </a>
113
114
  </div>
114
115
 
115
116
  <div class="method-description">
116
117
  <p><a class="source-toggle" href="#"
117
- onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
118
- <div class="method-source-code" id="M000070-source">
118
+ onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
119
+ <div class="method-source-code" id="M000073-source">
119
120
  <pre>
120
121
  <span class="ruby-comment cmt"># File lib/mack-facets/extensions/kernel.rb, line 6</span>
121
122
  6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_to_s</span>(<span class="ruby-identifier">object</span>)
@@ -128,19 +129,19 @@
128
129
  </div>
129
130
  </div>
130
131
 
131
- <div id="method-M000071" class="method-detail">
132
- <a name="M000071"></a>
132
+ <div id="method-M000074" class="method-detail">
133
+ <a name="M000074"></a>
133
134
 
134
135
  <div class="method-heading">
135
- <a href="#M000071" class="method-signature">
136
+ <a href="#M000074" class="method-signature">
136
137
  <span class="method-name">retryable</span><span class="method-args">(options = {}, &amp;block)</span>
137
138
  </a>
138
139
  </div>
139
140
 
140
141
  <div class="method-description">
141
142
  <p><a class="source-toggle" href="#"
142
- onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
143
- <div class="method-source-code" id="M000071-source">
143
+ onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
144
+ <div class="method-source-code" id="M000074-source">
144
145
  <pre>
145
146
  <span class="ruby-comment cmt"># File lib/mack-facets/extensions/kernel.rb, line 12</span>
146
147
  12: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retryable</span>(<span class="ruby-identifier">options</span> = {}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -169,6 +170,33 @@
169
170
  </div>
170
171
  </div>
171
172
 
173
+ <div id="method-M000075" class="method-detail">
174
+ <a name="M000075"></a>
175
+
176
+ <div class="method-heading">
177
+ <a href="#M000075" class="method-signature">
178
+ <span class="method-name">ruby?</span><span class="method-args">(v)</span>
179
+ </a>
180
+ </div>
181
+
182
+ <div class="method-description">
183
+ <p>
184
+ Returns true/false if the current version of Ruby equals the specified
185
+ version
186
+ </p>
187
+ <p><a class="source-toggle" href="#"
188
+ onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
189
+ <div class="method-source-code" id="M000075-source">
190
+ <pre>
191
+ <span class="ruby-comment cmt"># File lib/mack-facets/extensions/kernel.rb, line 35</span>
192
+ 35: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ruby?</span>(<span class="ruby-identifier">v</span>)
193
+ 36: <span class="ruby-constant">RUBY_VERSION</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">v</span>
194
+ 37: <span class="ruby-keyword kw">end</span>
195
+ </pre>
196
+ </div>
197
+ </div>
198
+ </div>
199
+
172
200
 
173
201
  </div>
174
202