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.
- data/doc/classes/Array.html +60 -60
- data/doc/classes/Class.html +18 -18
- data/doc/classes/Hash.html +18 -18
- data/doc/classes/Kernel.html +40 -12
- data/doc/classes/Mack/Facets/DateTime.html +168 -0
- data/doc/classes/Mack/Facets.html +111 -0
- data/doc/classes/Mack/Utils/BlankSlate.html +113 -0
- data/doc/classes/Mack/Utils/Inflector.html +47 -47
- data/doc/classes/Mack/Utils/RegistryList.html +74 -74
- data/doc/classes/Mack/Utils/RegistryMap.html +71 -71
- data/doc/classes/Math.html +18 -18
- data/doc/classes/Module.html +12 -12
- data/doc/classes/NilClass.html +6 -6
- data/doc/classes/Object.html +68 -68
- data/doc/classes/String.html +185 -172
- data/doc/classes/Symbol.html +6 -6
- data/doc/classes/Time.html +204 -0
- data/doc/created.rid +1 -1
- data/doc/files/README.html +1 -1
- data/doc/files/lib/mack-facets/english_extensions/inflect_rb.html +1 -1
- data/doc/files/lib/mack-facets/english_extensions/numerals_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/array_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/class_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/date_time_rb.html +129 -0
- data/doc/files/lib/mack-facets/extensions/hash_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/kernel_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/math_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/module_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/nil_class_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/object_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/string_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/symbol_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/time_rb.html +108 -0
- data/doc/files/lib/mack-facets/utils/blank_slate_rb.html +101 -0
- data/doc/files/lib/mack-facets/utils/inflections_rb.html +1 -1
- data/doc/files/lib/mack-facets/utils/inflector_rb.html +1 -1
- data/doc/files/lib/mack-facets/utils/options_merger_rb.html +1 -1
- data/doc/files/lib/mack-facets/utils/registry_list_rb.html +1 -1
- data/doc/files/lib/mack-facets/utils/registry_map_rb.html +1 -1
- data/doc/files/lib/mack-facets_rb.html +3 -3
- data/doc/fr_class_index.html +2 -0
- data/doc/fr_file_index.html +1 -0
- data/doc/fr_method_index.html +75 -71
- data/lib/mack-facets/extensions/date_time.rb +36 -0
- data/lib/mack-facets/extensions/kernel.rb +5 -0
- data/lib/mack-facets/extensions/string.rb +2 -0
- data/lib/mack-facets/extensions/time.rb +5 -0
- data/lib/mack-facets.rb +3 -4
- metadata +12 -4
data/doc/classes/Array.html
CHANGED
@@ -88,15 +88,15 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
91
|
+
<a href="#M000021">count</a>
|
92
|
+
<a href="#M000022">invert</a>
|
93
|
+
<a href="#M000014">parse_splat_args</a>
|
94
|
+
<a href="#M000017">pick_random</a>
|
95
|
+
<a href="#M000018">random_each</a>
|
96
|
+
<a href="#M000015">randomize</a>
|
97
|
+
<a href="#M000016">randomize!</a>
|
98
|
+
<a href="#M000019">subset?</a>
|
99
|
+
<a href="#M000020">superset?</a>
|
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-
|
122
|
-
<a name="
|
121
|
+
<div id="method-M000021" class="method-detail">
|
122
|
+
<a name="M000021"></a>
|
123
123
|
|
124
124
|
<div class="method-heading">
|
125
|
-
<a href="#
|
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#
|
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#
|
135
|
+
href="Array.html#M000021">count</a> # => {"eggs" => 2,
|
136
136
|
"ham" => 1, "spam" => 3}
|
137
137
|
</p>
|
138
138
|
<p><a class="source-toggle" href="#"
|
139
|
-
onclick="toggleCode('
|
140
|
-
<div class="method-source-code" id="
|
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> # => {"eggs" => 2,
|
|
150
150
|
</div>
|
151
151
|
</div>
|
152
152
|
|
153
|
-
<div id="method-
|
154
|
-
<a name="
|
153
|
+
<div id="method-M000022" class="method-detail">
|
154
|
+
<a name="M000022"></a>
|
155
155
|
|
156
156
|
<div class="method-heading">
|
157
|
-
<a href="#
|
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#
|
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#
|
166
|
+
orange}.<a href="Array.html#M000022">invert</a> # => {"red"
|
167
167
|
=> 0, "orange" => 2, "yellow" => 1}
|
168
168
|
</p>
|
169
169
|
<p><a class="source-toggle" href="#"
|
170
|
-
onclick="toggleCode('
|
171
|
-
<div class="method-source-code" id="
|
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> # => {"red"
|
|
181
181
|
</div>
|
182
182
|
</div>
|
183
183
|
|
184
|
-
<div id="method-
|
185
|
-
<a name="
|
184
|
+
<div id="method-M000014" class="method-detail">
|
185
|
+
<a name="M000014"></a>
|
186
186
|
|
187
187
|
<div class="method-heading">
|
188
|
-
<a href="#
|
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#
|
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 # => [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 # => 1 Finally foo args.parse_splat_args # =>
|
209
209
|
nil
|
210
210
|
</p>
|
211
211
|
<p><a class="source-toggle" href="#"
|
212
|
-
onclick="toggleCode('
|
213
|
-
<div class="method-source-code" id="
|
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-
|
235
|
-
<a name="
|
234
|
+
<div id="method-M000017" class="method-detail">
|
235
|
+
<a name="M000017"></a>
|
236
236
|
|
237
237
|
<div class="method-heading">
|
238
|
-
<a href="#
|
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('
|
249
|
-
<div class="method-source-code" id="
|
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-
|
261
|
-
<a name="
|
260
|
+
<div id="method-M000018" class="method-detail">
|
261
|
+
<a name="M000018"></a>
|
262
262
|
|
263
263
|
<div class="method-heading">
|
264
|
-
<a href="#
|
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('
|
275
|
-
<div class="method-source-code" id="
|
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-
|
287
|
-
<a name="
|
286
|
+
<div id="method-M000015" class="method-detail">
|
287
|
+
<a name="M000015"></a>
|
288
288
|
|
289
289
|
<div class="method-heading">
|
290
|
-
<a href="#
|
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('
|
301
|
-
<div class="method-source-code" id="
|
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">&</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-
|
317
|
-
<a name="
|
316
|
+
<div id="method-M000016" class="method-detail">
|
317
|
+
<a name="M000016"></a>
|
318
318
|
|
319
319
|
<div class="method-heading">
|
320
|
-
<a href="#
|
320
|
+
<a href="#M000016" class="method-signature">
|
321
321
|
<span class="method-name">randomize!</span><span class="method-args">(&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#
|
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('
|
332
|
-
<div class="method-source-code" id="
|
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">&</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-
|
348
|
-
<a name="
|
347
|
+
<div id="method-M000019" class="method-detail">
|
348
|
+
<a name="M000019"></a>
|
349
349
|
|
350
350
|
<div class="method-heading">
|
351
|
-
<a href="#
|
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('
|
359
|
-
<div class="method-source-code" id="
|
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-
|
374
|
-
<a name="
|
373
|
+
<div id="method-M000020" class="method-detail">
|
374
|
+
<a name="M000020"></a>
|
375
375
|
|
376
376
|
<div class="method-heading">
|
377
|
-
<a href="#
|
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('
|
385
|
-
<div class="method-source-code" id="
|
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>)
|
data/doc/classes/Class.html
CHANGED
@@ -88,9 +88,9 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
91
|
+
<a href="#M000028">class_is_a?</a>
|
92
|
+
<a href="#M000027">new_instance_of</a>
|
93
|
+
<a href="#M000029">parents</a>
|
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-
|
116
|
-
<a name="
|
115
|
+
<div id="method-M000027" class="method-detail">
|
116
|
+
<a name="M000027"></a>
|
117
117
|
|
118
118
|
<div class="method-heading">
|
119
|
-
<a href="#
|
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("Animals::Dog") => #<Animals::Dog:0x376a2c>
|
135
135
|
</pre>
|
136
136
|
<p><a class="source-toggle" href="#"
|
137
|
-
onclick="toggleCode('
|
138
|
-
<div class="method-source-code" id="
|
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-
|
152
|
-
<a name="
|
151
|
+
<div id="method-M000028" class="method-detail">
|
152
|
+
<a name="M000028"></a>
|
153
153
|
|
154
154
|
<div class="method-heading">
|
155
|
-
<a href="#
|
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('
|
167
|
-
<div class="method-source-code" id="
|
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-
|
184
|
-
<a name="
|
183
|
+
<div id="method-M000029" class="method-detail">
|
184
|
+
<a name="M000029"></a>
|
185
185
|
|
186
186
|
<div class="method-heading">
|
187
|
-
<a href="#
|
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 # => [Object]
|
203
203
|
</pre>
|
204
204
|
<p><a class="source-toggle" href="#"
|
205
|
-
onclick="toggleCode('
|
206
|
-
<div class="method-source-code" id="
|
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>
|
data/doc/classes/Hash.html
CHANGED
@@ -88,9 +88,9 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
91
|
+
<a href="#M000031">-</a>
|
92
|
+
<a href="#M000030">join</a>
|
93
|
+
<a href="#M000032">to_params</a>
|
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-
|
116
|
-
<a name="
|
115
|
+
<div id="method-M000031" class="method-detail">
|
116
|
+
<a name="M000031"></a>
|
117
117
|
|
118
118
|
<div class="method-heading">
|
119
|
-
<a href="#
|
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('
|
130
|
-
<div class="method-source-code" id="
|
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-
|
143
|
-
<a name="
|
142
|
+
<div id="method-M000030" class="method-detail">
|
143
|
+
<a name="M000030"></a>
|
144
144
|
|
145
145
|
<div class="method-heading">
|
146
|
-
<a href="#
|
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('
|
154
|
-
<div class="method-source-code" id="
|
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-
|
171
|
-
<a name="
|
170
|
+
<div id="method-M000032" class="method-detail">
|
171
|
+
<a name="M000032"></a>
|
172
172
|
|
173
173
|
<div class="method-heading">
|
174
|
-
<a href="#
|
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('
|
186
|
-
<div class="method-source-code" id="
|
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>)
|
data/doc/classes/Kernel.html
CHANGED
@@ -80,8 +80,9 @@
|
|
80
80
|
<h3 class="section-bar">Methods</h3>
|
81
81
|
|
82
82
|
<div class="name-list">
|
83
|
-
<a href="#
|
84
|
-
<a href="#
|
83
|
+
<a href="#M000073">pp_to_s</a>
|
84
|
+
<a href="#M000074">retryable</a>
|
85
|
+
<a href="#M000075">ruby?</a>
|
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-
|
107
|
-
<a name="
|
107
|
+
<div id="method-M000073" class="method-detail">
|
108
|
+
<a name="M000073"></a>
|
108
109
|
|
109
110
|
<div class="method-heading">
|
110
|
-
<a href="#
|
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('
|
118
|
-
<div class="method-source-code" id="
|
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-
|
132
|
-
<a name="
|
132
|
+
<div id="method-M000074" class="method-detail">
|
133
|
+
<a name="M000074"></a>
|
133
134
|
|
134
135
|
<div class="method-heading">
|
135
|
-
<a href="#
|
136
|
+
<a href="#M000074" class="method-signature">
|
136
137
|
<span class="method-name">retryable</span><span class="method-args">(options = {}, &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('
|
143
|
-
<div class="method-source-code" id="
|
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">&</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
|
|