mack-facets 0.7.0.1 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -96,17 +96,17 @@ much the same.
|
|
96
96
|
<h3 class="section-bar">Methods</h3>
|
97
97
|
|
98
98
|
<div class="name-list">
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
105
|
-
<a href="#
|
106
|
-
<a href="#
|
107
|
-
<a href="#
|
108
|
-
<a href="#
|
109
|
-
<a href="#
|
99
|
+
<a href="#M000062">add</a>
|
100
|
+
<a href="#M000067">add</a>
|
101
|
+
<a href="#M000065">clear!</a>
|
102
|
+
<a href="#M000060">initial_state</a>
|
103
|
+
<a href="#M000070">move_to_bottom</a>
|
104
|
+
<a href="#M000069">move_to_top</a>
|
105
|
+
<a href="#M000064">registered_items</a>
|
106
|
+
<a href="#M000063">remove</a>
|
107
|
+
<a href="#M000068">remove</a>
|
108
|
+
<a href="#M000066">reset!</a>
|
109
|
+
<a href="#M000061">reset!</a>
|
110
110
|
</div>
|
111
111
|
</div>
|
112
112
|
|
@@ -152,11 +152,11 @@ The list of registered items
|
|
152
152
|
<div id="methods">
|
153
153
|
<h3 class="section-bar">Public Class methods</h3>
|
154
154
|
|
155
|
-
<div id="method-
|
156
|
-
<a name="
|
155
|
+
<div id="method-M000067" class="method-detail">
|
156
|
+
<a name="M000067"></a>
|
157
157
|
|
158
158
|
<div class="method-heading">
|
159
|
-
<a href="#
|
159
|
+
<a href="#M000067" class="method-signature">
|
160
160
|
<span class="method-name">add</span><span class="method-args">(klass, position = registered_items.size)</span>
|
161
161
|
</a>
|
162
162
|
</div>
|
@@ -167,8 +167,8 @@ Adds an object to the list at a specified position. By default the position
|
|
167
167
|
is last.
|
168
168
|
</p>
|
169
169
|
<p><a class="source-toggle" href="#"
|
170
|
-
onclick="toggleCode('
|
171
|
-
<div class="method-source-code" id="
|
170
|
+
onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
|
171
|
+
<div class="method-source-code" id="M000067-source">
|
172
172
|
<pre>
|
173
173
|
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_list.rb, line 59</span>
|
174
174
|
59: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-identifier">position</span> = <span class="ruby-identifier">registered_items</span>.<span class="ruby-identifier">size</span>)
|
@@ -179,11 +179,11 @@ is last.
|
|
179
179
|
</div>
|
180
180
|
</div>
|
181
181
|
|
182
|
-
<div id="method-
|
183
|
-
<a name="
|
182
|
+
<div id="method-M000065" class="method-detail">
|
183
|
+
<a name="M000065"></a>
|
184
184
|
|
185
185
|
<div class="method-heading">
|
186
|
-
<a href="#
|
186
|
+
<a href="#M000065" class="method-signature">
|
187
187
|
<span class="method-name">clear!</span><span class="method-args">()</span>
|
188
188
|
</a>
|
189
189
|
</div>
|
@@ -191,11 +191,11 @@ is last.
|
|
191
191
|
<div class="method-description">
|
192
192
|
<p>
|
193
193
|
Emptys out the list of <a
|
194
|
-
href="RegistryList.html#
|
194
|
+
href="RegistryList.html#M000064">registered_items</a>.
|
195
195
|
</p>
|
196
196
|
<p><a class="source-toggle" href="#"
|
197
|
-
onclick="toggleCode('
|
198
|
-
<div class="method-source-code" id="
|
197
|
+
onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
|
198
|
+
<div class="method-source-code" id="M000065-source">
|
199
199
|
<pre>
|
200
200
|
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_list.rb, line 49</span>
|
201
201
|
49: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear!</span>
|
@@ -206,11 +206,11 @@ href="RegistryList.html#M000063">registered_items</a>.
|
|
206
206
|
</div>
|
207
207
|
</div>
|
208
208
|
|
209
|
-
<div id="method-
|
210
|
-
<a name="
|
209
|
+
<div id="method-M000070" class="method-detail">
|
210
|
+
<a name="M000070"></a>
|
211
211
|
|
212
212
|
<div class="method-heading">
|
213
|
-
<a href="#
|
213
|
+
<a href="#M000070" class="method-signature">
|
214
214
|
<span class="method-name">move_to_bottom</span><span class="method-args">(klass)</span>
|
215
215
|
</a>
|
216
216
|
</div>
|
@@ -218,11 +218,11 @@ href="RegistryList.html#M000063">registered_items</a>.
|
|
218
218
|
<div class="method-description">
|
219
219
|
<p>
|
220
220
|
Moves an object to the bottom of the <a
|
221
|
-
href="RegistryList.html#
|
221
|
+
href="RegistryList.html#M000064">registered_items</a> list.
|
222
222
|
</p>
|
223
223
|
<p><a class="source-toggle" href="#"
|
224
|
-
onclick="toggleCode('
|
225
|
-
<div class="method-source-code" id="
|
224
|
+
onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
|
225
|
+
<div class="method-source-code" id="M000070-source">
|
226
226
|
<pre>
|
227
227
|
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_list.rb, line 74</span>
|
228
228
|
74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">move_to_bottom</span>(<span class="ruby-identifier">klass</span>)
|
@@ -234,11 +234,11 @@ href="RegistryList.html#M000063">registered_items</a> list.
|
|
234
234
|
</div>
|
235
235
|
</div>
|
236
236
|
|
237
|
-
<div id="method-
|
238
|
-
<a name="
|
237
|
+
<div id="method-M000069" class="method-detail">
|
238
|
+
<a name="M000069"></a>
|
239
239
|
|
240
240
|
<div class="method-heading">
|
241
|
-
<a href="#
|
241
|
+
<a href="#M000069" class="method-signature">
|
242
242
|
<span class="method-name">move_to_top</span><span class="method-args">(klass)</span>
|
243
243
|
</a>
|
244
244
|
</div>
|
@@ -246,11 +246,11 @@ href="RegistryList.html#M000063">registered_items</a> list.
|
|
246
246
|
<div class="method-description">
|
247
247
|
<p>
|
248
248
|
Moves an object to the top of the <a
|
249
|
-
href="RegistryList.html#
|
249
|
+
href="RegistryList.html#M000064">registered_items</a> list.
|
250
250
|
</p>
|
251
251
|
<p><a class="source-toggle" href="#"
|
252
|
-
onclick="toggleCode('
|
253
|
-
<div class="method-source-code" id="
|
252
|
+
onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
|
253
|
+
<div class="method-source-code" id="M000069-source">
|
254
254
|
<pre>
|
255
255
|
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_list.rb, line 69</span>
|
256
256
|
69: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">move_to_top</span>(<span class="ruby-identifier">klass</span>)
|
@@ -261,11 +261,11 @@ href="RegistryList.html#M000063">registered_items</a> list.
|
|
261
261
|
</div>
|
262
262
|
</div>
|
263
263
|
|
264
|
-
<div id="method-
|
265
|
-
<a name="
|
264
|
+
<div id="method-M000064" class="method-detail">
|
265
|
+
<a name="M000064"></a>
|
266
266
|
|
267
267
|
<div class="method-heading">
|
268
|
-
<a href="#
|
268
|
+
<a href="#M000064" class="method-signature">
|
269
269
|
<span class="method-name">registered_items</span><span class="method-args">()</span>
|
270
270
|
</a>
|
271
271
|
</div>
|
@@ -275,8 +275,8 @@ href="RegistryList.html#M000063">registered_items</a> list.
|
|
275
275
|
Returns the list of registered items.
|
276
276
|
</p>
|
277
277
|
<p><a class="source-toggle" href="#"
|
278
|
-
onclick="toggleCode('
|
279
|
-
<div class="method-source-code" id="
|
278
|
+
onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
|
279
|
+
<div class="method-source-code" id="M000064-source">
|
280
280
|
<pre>
|
281
281
|
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_list.rb, line 44</span>
|
282
282
|
44: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">registered_items</span>
|
@@ -287,11 +287,11 @@ Returns the list of registered items.
|
|
287
287
|
</div>
|
288
288
|
</div>
|
289
289
|
|
290
|
-
<div id="method-
|
291
|
-
<a name="
|
290
|
+
<div id="method-M000068" class="method-detail">
|
291
|
+
<a name="M000068"></a>
|
292
292
|
|
293
293
|
<div class="method-heading">
|
294
|
-
<a href="#
|
294
|
+
<a href="#M000068" class="method-signature">
|
295
295
|
<span class="method-name">remove</span><span class="method-args">(klass)</span>
|
296
296
|
</a>
|
297
297
|
</div>
|
@@ -301,8 +301,8 @@ Returns the list of registered items.
|
|
301
301
|
Removes an object from the list.
|
302
302
|
</p>
|
303
303
|
<p><a class="source-toggle" href="#"
|
304
|
-
onclick="toggleCode('
|
305
|
-
<div class="method-source-code" id="
|
304
|
+
onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
|
305
|
+
<div class="method-source-code" id="M000068-source">
|
306
306
|
<pre>
|
307
307
|
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_list.rb, line 64</span>
|
308
308
|
64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span>(<span class="ruby-identifier">klass</span>)
|
@@ -313,24 +313,24 @@ Removes an object from the list.
|
|
313
313
|
</div>
|
314
314
|
</div>
|
315
315
|
|
316
|
-
<div id="method-
|
317
|
-
<a name="
|
316
|
+
<div id="method-M000066" class="method-detail">
|
317
|
+
<a name="M000066"></a>
|
318
318
|
|
319
319
|
<div class="method-heading">
|
320
|
-
<a href="#
|
320
|
+
<a href="#M000066" class="method-signature">
|
321
321
|
<span class="method-name">reset!</span><span class="method-args">()</span>
|
322
322
|
</a>
|
323
323
|
</div>
|
324
324
|
|
325
325
|
<div class="method-description">
|
326
326
|
<p>
|
327
|
-
Resets the <a href="RegistryList.html#
|
327
|
+
Resets the <a href="RegistryList.html#M000064">registered_items</a> list to
|
328
328
|
the list specified by the <a
|
329
|
-
href="RegistryList.html#
|
329
|
+
href="RegistryList.html#M000060">initial_state</a> method.
|
330
330
|
</p>
|
331
331
|
<p><a class="source-toggle" href="#"
|
332
|
-
onclick="toggleCode('
|
333
|
-
<div class="method-source-code" id="
|
332
|
+
onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
|
333
|
+
<div class="method-source-code" id="M000066-source">
|
334
334
|
<pre>
|
335
335
|
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_list.rb, line 54</span>
|
336
336
|
54: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset!</span>
|
@@ -343,11 +343,11 @@ href="RegistryList.html#M000059">initial_state</a> method.
|
|
343
343
|
|
344
344
|
<h3 class="section-bar">Public Instance methods</h3>
|
345
345
|
|
346
|
-
<div id="method-
|
347
|
-
<a name="
|
346
|
+
<div id="method-M000062" class="method-detail">
|
347
|
+
<a name="M000062"></a>
|
348
348
|
|
349
349
|
<div class="method-heading">
|
350
|
-
<a href="#
|
350
|
+
<a href="#M000062" class="method-signature">
|
351
351
|
<span class="method-name">add</span><span class="method-args">(klass, position = self.registered_items.size)</span>
|
352
352
|
</a>
|
353
353
|
</div>
|
@@ -358,8 +358,8 @@ Adds an object to the list at a specified position. By default the position
|
|
358
358
|
is last.
|
359
359
|
</p>
|
360
360
|
<p><a class="source-toggle" href="#"
|
361
|
-
onclick="toggleCode('
|
362
|
-
<div class="method-source-code" id="
|
361
|
+
onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
|
362
|
+
<div class="method-source-code" id="M000062-source">
|
363
363
|
<pre>
|
364
364
|
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_list.rb, line 30</span>
|
365
365
|
30: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-identifier">position</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">registered_items</span>.<span class="ruby-identifier">size</span>)
|
@@ -372,11 +372,11 @@ is last.
|
|
372
372
|
</div>
|
373
373
|
</div>
|
374
374
|
|
375
|
-
<div id="method-
|
376
|
-
<a name="
|
375
|
+
<div id="method-M000060" class="method-detail">
|
376
|
+
<a name="M000060"></a>
|
377
377
|
|
378
378
|
<div class="method-heading">
|
379
|
-
<a href="#
|
379
|
+
<a href="#M000060" class="method-signature">
|
380
380
|
<span class="method-name">initial_state</span><span class="method-args">()</span>
|
381
381
|
</a>
|
382
382
|
</div>
|
@@ -384,12 +384,12 @@ is last.
|
|
384
384
|
<div class="method-description">
|
385
385
|
<p>
|
386
386
|
Override this method to set the initial state of the <a
|
387
|
-
href="RegistryList.html#
|
387
|
+
href="RegistryList.html#M000064">registered_items</a> <a
|
388
388
|
href="../../Array.html">Array</a>. By default this list is empty.
|
389
389
|
</p>
|
390
390
|
<p><a class="source-toggle" href="#"
|
391
|
-
onclick="toggleCode('
|
392
|
-
<div class="method-source-code" id="
|
391
|
+
onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
|
392
|
+
<div class="method-source-code" id="M000060-source">
|
393
393
|
<pre>
|
394
394
|
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_list.rb, line 20</span>
|
395
395
|
20: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initial_state</span>
|
@@ -400,11 +400,11 @@ href="../../Array.html">Array</a>. By default this list is empty.
|
|
400
400
|
</div>
|
401
401
|
</div>
|
402
402
|
|
403
|
-
<div id="method-
|
404
|
-
<a name="
|
403
|
+
<div id="method-M000063" class="method-detail">
|
404
|
+
<a name="M000063"></a>
|
405
405
|
|
406
406
|
<div class="method-heading">
|
407
|
-
<a href="#
|
407
|
+
<a href="#M000063" class="method-signature">
|
408
408
|
<span class="method-name">remove</span><span class="method-args">(klass)</span>
|
409
409
|
</a>
|
410
410
|
</div>
|
@@ -414,8 +414,8 @@ href="../../Array.html">Array</a>. By default this list is empty.
|
|
414
414
|
Removes an object from the list.
|
415
415
|
</p>
|
416
416
|
<p><a class="source-toggle" href="#"
|
417
|
-
onclick="toggleCode('
|
418
|
-
<div class="method-source-code" id="
|
417
|
+
onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
|
418
|
+
<div class="method-source-code" id="M000063-source">
|
419
419
|
<pre>
|
420
420
|
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_list.rb, line 37</span>
|
421
421
|
37: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span>(<span class="ruby-identifier">klass</span>)
|
@@ -426,24 +426,24 @@ Removes an object from the list.
|
|
426
426
|
</div>
|
427
427
|
</div>
|
428
428
|
|
429
|
-
<div id="method-
|
430
|
-
<a name="
|
429
|
+
<div id="method-M000061" class="method-detail">
|
430
|
+
<a name="M000061"></a>
|
431
431
|
|
432
432
|
<div class="method-heading">
|
433
|
-
<a href="#
|
433
|
+
<a href="#M000061" class="method-signature">
|
434
434
|
<span class="method-name">reset!</span><span class="method-args">()</span>
|
435
435
|
</a>
|
436
436
|
</div>
|
437
437
|
|
438
438
|
<div class="method-description">
|
439
439
|
<p>
|
440
|
-
Resets the <a href="RegistryList.html#
|
440
|
+
Resets the <a href="RegistryList.html#M000064">registered_items</a> list to
|
441
441
|
the list specified by the <a
|
442
|
-
href="RegistryList.html#
|
442
|
+
href="RegistryList.html#M000060">initial_state</a> method.
|
443
443
|
</p>
|
444
444
|
<p><a class="source-toggle" href="#"
|
445
|
-
onclick="toggleCode('
|
446
|
-
<div class="method-source-code" id="
|
445
|
+
onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
|
446
|
+
<div class="method-source-code" id="M000061-source">
|
447
447
|
<pre>
|
448
448
|
<span class="ruby-comment cmt"># File lib/mack-facets/utils/registry_list.rb, line 25</span>
|
449
449
|
25: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset!</span>
|