lazier 1.0.7 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -1,8 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.8.7
4
3
  - 1.9.2
5
4
  - 1.9.3
5
+ - 2.0.0
6
6
  script: bundle exec rake spec:coverage
7
7
  notifications:
8
8
  email: false
data/README.md CHANGED
@@ -6,7 +6,9 @@
6
6
 
7
7
  Several Ruby object enhancements.
8
8
 
9
- http://github.com/ShogunPanda/lazier
9
+ http://sw.cow.tc/lazier
10
+
11
+ http://rdoc.info/gems/lazier
10
12
 
11
13
  ## Usage
12
14
 
@@ -30,5 +32,6 @@ See documentation for more informations.
30
32
 
31
33
  ## Copyright
32
34
 
33
- Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
35
+ Copyright (C) 2013 and above Shogun (shogun_panda@me.com).
36
+
34
37
  Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
data/doc/Lazier.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Lazier
8
8
 
9
- &mdash; Documentation by YARD 0.8.2.1
9
+ &mdash; Documentation by YARD 0.8.3
10
10
 
11
11
  </title>
12
12
 
@@ -127,7 +127,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
127
127
  <li class="public ">
128
128
  <span class="summary_signature">
129
129
 
130
- <a href="#is_ruby_18%3F-class_method" title="is_ruby_18? (class method)">+ (Boolean) <strong>is_ruby_18?</strong> </a>
130
+ <a href="#load%21-class_method" title="load! (class method)">+ (Settings) <strong>load!</strong>(*what) </a>
131
131
 
132
132
 
133
133
 
@@ -141,7 +141,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
141
141
 
142
142
 
143
143
 
144
- <span class="summary_desc"><div class='inline'><p>Checks if we are running under Ruby 1.8.</p>
144
+ <span class="summary_desc"><div class='inline'><p>Loads the extensions.</p>
145
145
  </div></span>
146
146
 
147
147
  </li>
@@ -150,7 +150,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
150
150
  <li class="public ">
151
151
  <span class="summary_signature">
152
152
 
153
- <a href="#load%21-class_method" title="load! (class method)">+ (Settings) <strong>load!</strong>(*what) </a>
153
+ <a href="#load_boolean-class_method" title="load_boolean (class method)">+ (Object) <strong>load_boolean</strong> </a>
154
154
 
155
155
 
156
156
 
@@ -164,7 +164,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
164
164
 
165
165
 
166
166
 
167
- <span class="summary_desc"><div class='inline'><p>Loads the extensions.</p>
167
+ <span class="summary_desc"><div class='inline'><p>Loads Boolean extensions.</p>
168
168
  </div></span>
169
169
 
170
170
  </li>
@@ -173,7 +173,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
173
173
  <li class="public ">
174
174
  <span class="summary_signature">
175
175
 
176
- <a href="#settings-class_method" title="settings (class method)">+ (Settings) <strong>settings</strong> </a>
176
+ <a href="#load_datetime-class_method" title="load_datetime (class method)">+ (Object) <strong>load_datetime</strong> </a>
177
177
 
178
178
 
179
179
 
@@ -187,81 +187,161 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
187
187
 
188
188
 
189
189
 
190
- <span class="summary_desc"><div class='inline'><p>Returns the settings for the extensions.</p>
190
+ <span class="summary_desc"><div class='inline'><p>Loads DateTime extensions.</p>
191
191
  </div></span>
192
192
 
193
193
  </li>
194
194
 
195
195
 
196
- </ul>
197
-
196
+ <li class="public ">
197
+ <span class="summary_signature">
198
+
199
+ <a href="#load_hash-class_method" title="load_hash (class method)">+ (Object) <strong>load_hash</strong> </a>
200
+
198
201
 
202
+
203
+ </span>
204
+
205
+
206
+
207
+
208
+
209
+
210
+
199
211
 
212
+
213
+ <span class="summary_desc"><div class='inline'><p>Loads Hash extensions.</p>
214
+ </div></span>
215
+
216
+ </li>
200
217
 
201
- <div id="class_method_details" class="method_details_list">
202
- <h2>Class Method Details</h2>
218
+
219
+ <li class="public ">
220
+ <span class="summary_signature">
221
+
222
+ <a href="#load_math-class_method" title="load_math (class method)">+ (Object) <strong>load_math</strong> </a>
223
+
203
224
 
204
225
 
205
- <div class="method_details first">
206
- <h3 class="signature first" id="is_ruby_18?-class_method">
226
+ </span>
227
+
228
+
229
+
230
+
207
231
 
208
- + (<tt><span class='object_link'><a href="Lazier/Boolean.html" title="Lazier::Boolean (module)">Boolean</a></span></tt>) <strong>is_ruby_18?</strong>
209
232
 
210
-
211
233
 
212
234
 
213
235
 
214
- </h3><div class="docstring">
215
- <div class="discussion">
216
- <p>Checks if we are running under Ruby 1.8</p>
236
+ <span class="summary_desc"><div class='inline'><p>Loads Math extensions.</p>
237
+ </div></span>
238
+
239
+ </li>
217
240
 
241
+
242
+ <li class="public ">
243
+ <span class="summary_signature">
244
+
245
+ <a href="#load_object-class_method" title="load_object (class method)">+ (Object) <strong>load_object</strong> </a>
246
+
218
247
 
219
- </div>
220
- </div>
221
- <div class="tags">
248
+
249
+ </span>
222
250
 
223
- <p class="tag_title">Returns:</p>
224
- <ul class="return">
225
251
 
226
- <li>
227
-
228
-
229
- <span class='type'>(<tt><span class='object_link'><a href="Lazier/Boolean.html" title="Lazier::Boolean (module)">Boolean</a></span></tt>)</span>
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+ <span class="summary_desc"><div class='inline'><p>Loads Object extensions.</p>
260
+ </div></span>
261
+
262
+ </li>
263
+
230
264
 
265
+ <li class="public ">
266
+ <span class="summary_signature">
267
+
268
+ <a href="#load_pathname-class_method" title="load_pathname (class method)">+ (Object) <strong>load_pathname</strong> </a>
269
+
270
+
271
+
272
+ </span>
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+ <span class="summary_desc"><div class='inline'><p>Loads Pathname extensions.</p>
283
+ </div></span>
284
+
285
+ </li>
286
+
231
287
 
288
+ <li class="public ">
289
+ <span class="summary_signature">
290
+
291
+ <a href="#load_string-class_method" title="load_string (class method)">+ (Object) <strong>load_string</strong> </a>
292
+
293
+
294
+
295
+ </span>
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+ <span class="summary_desc"><div class='inline'><p>Loads String extensions.</p>
306
+ </div></span>
307
+
308
+ </li>
309
+
232
310
 
233
- &mdash;
234
- <div class='inline'><p><code>true</code> for Ruby 1.8, <code>false</code> otherwise.</p>
235
- </div>
311
+ <li class="public ">
312
+ <span class="summary_signature">
313
+
314
+ <a href="#settings-class_method" title="settings (class method)">+ (Settings) <strong>settings</strong> </a>
315
+
316
+
317
+
318
+ </span>
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+ <span class="summary_desc"><div class='inline'><p>Returns the settings for the extensions.</p>
329
+ </div></span>
330
+
331
+ </li>
332
+
236
333
 
237
- </li>
334
+ </ul>
238
335
 
239
- </ul>
240
336
 
241
- </div><table class="source_code">
242
- <tr>
243
- <td>
244
- <pre class="lines">
245
337
 
246
338
 
247
- 30
248
- 31
249
- 32</pre>
250
- </td>
251
- <td>
252
- <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 30</span>
339
+ <div id="class_method_details" class="method_details_list">
340
+ <h2>Class Method Details</h2>
253
341
 
254
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_is_ruby_18? fid id'>is_ruby_18?</span>
255
- <span class='rubyid_RUBY_VERSION constant id'>RUBY_VERSION</span> <span class='match op'>=~</span> <span class='regexp val'>/^1\.8/</span>
256
- <span class='rubyid_end end kw'>end</span>
257
- </pre>
258
- </td>
259
- </tr>
260
- </table>
261
- </div>
262
342
 
263
- <div class="method_details ">
264
- <h3 class="signature " id="load!-class_method">
343
+ <div class="method_details first">
344
+ <h3 class="signature first" id="load!-class_method">
265
345
 
266
346
  + (<tt><span class='object_link'><a href="Lazier/Settings.html" title="Lazier::Settings (class)">Settings</a></span></tt>) <strong>load!</strong>(*what)
267
347
 
@@ -328,13 +408,54 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
328
408
  <pre class="lines">
329
409
 
330
410
 
331
- 52
332
- 53
333
- 54
334
- 55
335
- 56
336
- 57
337
- 58
411
+ 43
412
+ 44
413
+ 45
414
+ 46
415
+ 47
416
+ 48
417
+ 49</pre>
418
+ </td>
419
+ <td>
420
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 43</span>
421
+
422
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load!'>load!</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_what'>what</span><span class='rparen'>)</span>
423
+ <span class='id identifier rubyid_what'>what</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>object</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>boolean</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>string</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>hash</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>datetime</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>math</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>pathname</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_what'>what</span><span class='period'>.</span><span class='id identifier rubyid_count'>count</span> <span class='op'>==</span> <span class='int'>0</span>
424
+ <span class='id identifier rubyid_what'>what</span><span class='period'>.</span><span class='id identifier rubyid_collect!'>collect!</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_w'>w</span><span class='op'>|</span> <span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>load_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_w'>w</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='rbrace'>}</span>
425
+
426
+ <span class='kw'>yield</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
427
+ <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Settings</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
428
+ <span class='kw'>end</span></pre>
429
+ </td>
430
+ </tr>
431
+ </table>
432
+ </div>
433
+
434
+ <div class="method_details ">
435
+ <h3 class="signature " id="load_boolean-class_method">
436
+
437
+ + (<tt><span class='object_link'><a href="Lazier/Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>load_boolean</strong>
438
+
439
+
440
+
441
+
442
+
443
+ </h3><div class="docstring">
444
+ <div class="discussion">
445
+ <p>Loads Boolean extensions.</p>
446
+
447
+
448
+ </div>
449
+ </div>
450
+ <div class="tags">
451
+
452
+
453
+ </div><table class="source_code">
454
+ <tr>
455
+ <td>
456
+ <pre class="lines">
457
+
458
+
338
459
  59
339
460
  60
340
461
  61
@@ -345,23 +466,52 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
345
466
  66
346
467
  67
347
468
  68
348
- 69
349
- 70
350
- 71
351
- 72
352
- 73
353
- 74
354
- 75
355
- 76
356
- 77
357
- 78
358
- 79
359
- 80
360
- 81
361
- 82
362
- 83
363
- 84
364
- 85
469
+ 69</pre>
470
+ </td>
471
+ <td>
472
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 59</span>
473
+
474
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_boolean'>load_boolean</span>
475
+ <span class='op'>::</span><span class='const'>TrueClass</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
476
+ <span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Object</span>
477
+ <span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Boolean</span>
478
+ <span class='kw'>end</span>
479
+
480
+ <span class='op'>::</span><span class='const'>FalseClass</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
481
+ <span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Object</span>
482
+ <span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Boolean</span>
483
+ <span class='kw'>end</span>
484
+ <span class='kw'>end</span></pre>
485
+ </td>
486
+ </tr>
487
+ </table>
488
+ </div>
489
+
490
+ <div class="method_details ">
491
+ <h3 class="signature " id="load_datetime-class_method">
492
+
493
+ + (<tt><span class='object_link'><a href="Lazier/Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>load_datetime</strong>
494
+
495
+
496
+
497
+
498
+
499
+ </h3><div class="docstring">
500
+ <div class="discussion">
501
+ <p>Loads DateTime extensions.</p>
502
+
503
+
504
+ </div>
505
+ </div>
506
+ <div class="tags">
507
+
508
+
509
+ </div><table class="source_code">
510
+ <tr>
511
+ <td>
512
+ <pre class="lines">
513
+
514
+
365
515
  86
366
516
  87
367
517
  88
@@ -380,109 +530,258 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
380
530
  101
381
531
  102
382
532
  103
383
- 104
384
- 105
385
- 106
533
+ 104</pre>
534
+ </td>
535
+ <td>
536
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 86</span>
537
+
538
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_datetime'>load_datetime</span>
539
+ <span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_load_object'>load_object</span>
540
+
541
+ <span class='op'>::</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
542
+ <span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>DateTime</span>
543
+ <span class='kw'>end</span>
544
+
545
+ <span class='op'>::</span><span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
546
+ <span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>DateTime</span>
547
+ <span class='kw'>end</span>
548
+
549
+ <span class='op'>::</span><span class='const'>DateTime</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
550
+ <span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>DateTime</span>
551
+ <span class='kw'>end</span>
552
+
553
+ <span class='op'>::</span><span class='const'>ActiveSupport</span><span class='op'>::</span><span class='const'>TimeZone</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
554
+ <span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>TimeZone</span>
555
+ <span class='kw'>end</span>
556
+ <span class='kw'>end</span></pre>
557
+ </td>
558
+ </tr>
559
+ </table>
560
+ </div>
561
+
562
+ <div class="method_details ">
563
+ <h3 class="signature " id="load_hash-class_method">
564
+
565
+ + (<tt><span class='object_link'><a href="Lazier/Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>load_hash</strong>
566
+
567
+
568
+
569
+
570
+
571
+ </h3><div class="docstring">
572
+ <div class="discussion">
573
+ <p>Loads Hash extensions.</p>
574
+
575
+
576
+ </div>
577
+ </div>
578
+ <div class="tags">
579
+
580
+
581
+ </div><table class="source_code">
582
+ <tr>
583
+ <td>
584
+ <pre class="lines">
585
+
586
+
587
+ 79
588
+ 80
589
+ 81
590
+ 82
591
+ 83</pre>
592
+ </td>
593
+ <td>
594
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 79</span>
595
+
596
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_hash'>load_hash</span>
597
+ <span class='op'>::</span><span class='const'>Hash</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
598
+ <span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Hash</span>
599
+ <span class='kw'>end</span>
600
+ <span class='kw'>end</span></pre>
601
+ </td>
602
+ </tr>
603
+ </table>
604
+ </div>
605
+
606
+ <div class="method_details ">
607
+ <h3 class="signature " id="load_math-class_method">
608
+
609
+ + (<tt><span class='object_link'><a href="Lazier/Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>load_math</strong>
610
+
611
+
612
+
613
+
614
+
615
+ </h3><div class="docstring">
616
+ <div class="discussion">
617
+ <p>Loads Math extensions.</p>
618
+
619
+
620
+ </div>
621
+ </div>
622
+ <div class="tags">
623
+
624
+
625
+ </div><table class="source_code">
626
+ <tr>
627
+ <td>
628
+ <pre class="lines">
629
+
630
+
386
631
  107
387
632
  108
388
633
  109
389
634
  110
390
635
  111
391
636
  112
392
- 113
393
- 114
394
- 115
637
+ 113</pre>
638
+ </td>
639
+ <td>
640
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 107</span>
641
+
642
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_math'>load_math</span>
643
+ <span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_load_object'>load_object</span>
644
+
645
+ <span class='op'>::</span><span class='const'>Math</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
646
+ <span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Math</span>
647
+ <span class='kw'>end</span>
648
+ <span class='kw'>end</span></pre>
649
+ </td>
650
+ </tr>
651
+ </table>
652
+ </div>
653
+
654
+ <div class="method_details ">
655
+ <h3 class="signature " id="load_object-class_method">
656
+
657
+ + (<tt><span class='object_link'><a href="Lazier/Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>load_object</strong>
658
+
659
+
660
+
661
+
662
+
663
+ </h3><div class="docstring">
664
+ <div class="discussion">
665
+ <p>Loads Object extensions.</p>
666
+
667
+
668
+ </div>
669
+ </div>
670
+ <div class="tags">
671
+
672
+
673
+ </div><table class="source_code">
674
+ <tr>
675
+ <td>
676
+ <pre class="lines">
677
+
678
+
679
+ 52
680
+ 53
681
+ 54
682
+ 55
683
+ 56</pre>
684
+ </td>
685
+ <td>
686
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 52</span>
687
+
688
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_object'>load_object</span>
689
+ <span class='op'>::</span><span class='const'>Object</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
690
+ <span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Object</span>
691
+ <span class='kw'>end</span>
692
+ <span class='kw'>end</span></pre>
693
+ </td>
694
+ </tr>
695
+ </table>
696
+ </div>
697
+
698
+ <div class="method_details ">
699
+ <h3 class="signature " id="load_pathname-class_method">
700
+
701
+ + (<tt><span class='object_link'><a href="Lazier/Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>load_pathname</strong>
702
+
703
+
704
+
705
+
706
+
707
+ </h3><div class="docstring">
708
+ <div class="discussion">
709
+ <p>Loads Pathname extensions.</p>
710
+
711
+
712
+ </div>
713
+ </div>
714
+ <div class="tags">
715
+
716
+
717
+ </div><table class="source_code">
718
+ <tr>
719
+ <td>
720
+ <pre class="lines">
721
+
722
+
395
723
  116
396
724
  117
397
725
  118
398
726
  119
399
727
  120
400
728
  121
401
- 122
402
- 123
403
- 124
404
- 125
405
- 126</pre>
729
+ 122</pre>
406
730
  </td>
407
731
  <td>
408
- <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 52</span>
732
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 116</span>
733
+
734
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_pathname'>load_pathname</span>
735
+ <span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>pathname</span><span class='tstring_end'>&quot;</span></span>
736
+
737
+ <span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
738
+ <span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Pathname</span>
739
+ <span class='kw'>end</span>
740
+ <span class='kw'>end</span></pre>
741
+ </td>
742
+ </tr>
743
+ </table>
744
+ </div>
745
+
746
+ <div class="method_details ">
747
+ <h3 class="signature " id="load_string-class_method">
748
+
749
+ + (<tt><span class='object_link'><a href="Lazier/Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>load_string</strong>
750
+
751
+
752
+
753
+
754
+
755
+ </h3><div class="docstring">
756
+ <div class="discussion">
757
+ <p>Loads String extensions.</p>
758
+
759
+
760
+ </div>
761
+ </div>
762
+ <div class="tags">
763
+
764
+
765
+ </div><table class="source_code">
766
+ <tr>
767
+ <td>
768
+ <pre class="lines">
769
+
770
+
771
+ 72
772
+ 73
773
+ 74
774
+ 75
775
+ 76</pre>
776
+ </td>
777
+ <td>
778
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 72</span>
409
779
 
410
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_load! fid id'>load!</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='rubyid_what identifier id'>what</span><span class='rparen token'>)</span>
411
- <span class='rubyid_what identifier id'>what</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='string val'>&quot;object&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;boolean&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;string&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;hash&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;datetime&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;math&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;pathname&quot;</span><span class='rbrack token'>]</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_count identifier id'>count</span> <span class='eq op'>==</span> <span class='integer val'>0</span>
412
- <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_collect! fid id'>collect!</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='rubyid_w identifier id'>w</span><span class='bitor op'>|</span> <span class='rubyid_w identifier id'>w</span><span class='dot token'>.</span><span class='rubyid_to_s identifier id'>to_s</span> <span class='rbrace token'>}</span>
413
-
414
- <span class='comment val'># Dependency resolving</span>
415
- <span class='rubyid_what identifier id'>what</span> <span class='lshft op'>&lt;&lt;</span> <span class='string val'>&quot;object&quot;</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>&quot;datetime&quot;</span><span class='rparen token'>)</span>
416
- <span class='rubyid_what identifier id'>what</span> <span class='lshft op'>&lt;&lt;</span> <span class='string val'>&quot;object&quot;</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>&quot;math&quot;</span><span class='rparen token'>)</span>
417
- <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_compact identifier id'>compact</span><span class='dot token'>.</span><span class='rubyid_uniq! fid id'>uniq!</span>
418
-
419
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>&quot;object&quot;</span><span class='rparen token'>)</span> <span class='rubyid_then then kw'>then</span>
420
- <span class='colon3 op'>::</span><span class='rubyid_Object constant id'>Object</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
421
- <span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Object constant id'>Object</span>
422
- <span class='rubyid_end end kw'>end</span>
423
- <span class='rubyid_end end kw'>end</span>
424
-
425
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>&quot;boolean&quot;</span><span class='rparen token'>)</span> <span class='rubyid_then then kw'>then</span>
426
- <span class='colon3 op'>::</span><span class='rubyid_TrueClass constant id'>TrueClass</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
427
- <span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Object constant id'>Object</span>
428
- <span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Boolean constant id'>Boolean</span>
429
- <span class='rubyid_end end kw'>end</span>
430
-
431
- <span class='colon3 op'>::</span><span class='rubyid_FalseClass constant id'>FalseClass</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
432
- <span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Object constant id'>Object</span>
433
- <span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Boolean constant id'>Boolean</span>
434
- <span class='rubyid_end end kw'>end</span>
435
- <span class='rubyid_end end kw'>end</span>
436
-
437
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>&quot;string&quot;</span><span class='rparen token'>)</span> <span class='rubyid_then then kw'>then</span>
438
- <span class='colon3 op'>::</span><span class='rubyid_String constant id'>String</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
439
- <span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_String constant id'>String</span>
440
- <span class='rubyid_end end kw'>end</span>
441
- <span class='rubyid_end end kw'>end</span>
442
-
443
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>&quot;hash&quot;</span><span class='rparen token'>)</span> <span class='rubyid_then then kw'>then</span>
444
- <span class='colon3 op'>::</span><span class='rubyid_Hash constant id'>Hash</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
445
- <span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Hash constant id'>Hash</span>
446
- <span class='rubyid_end end kw'>end</span>
447
- <span class='rubyid_end end kw'>end</span>
448
-
449
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>&quot;datetime&quot;</span><span class='rparen token'>)</span> <span class='rubyid_then then kw'>then</span>
450
- <span class='colon3 op'>::</span><span class='rubyid_Time constant id'>Time</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
451
- <span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_DateTime constant id'>DateTime</span>
452
- <span class='rubyid_end end kw'>end</span>
453
-
454
- <span class='colon3 op'>::</span><span class='rubyid_Date constant id'>Date</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
455
- <span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_DateTime constant id'>DateTime</span>
456
- <span class='rubyid_end end kw'>end</span>
457
-
458
- <span class='colon3 op'>::</span><span class='rubyid_DateTime constant id'>DateTime</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
459
- <span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_DateTime constant id'>DateTime</span>
460
- <span class='rubyid_end end kw'>end</span>
461
-
462
- <span class='colon3 op'>::</span><span class='rubyid_ActiveSupport constant id'>ActiveSupport</span><span class='colon2 op'>::</span><span class='rubyid_TimeZone constant id'>TimeZone</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
463
- <span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_TimeZone constant id'>TimeZone</span>
464
- <span class='rubyid_end end kw'>end</span>
465
- <span class='rubyid_end end kw'>end</span>
466
-
467
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>&quot;math&quot;</span><span class='rparen token'>)</span> <span class='rubyid_then then kw'>then</span>
468
- <span class='colon3 op'>::</span><span class='rubyid_Math constant id'>Math</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
469
- <span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Math constant id'>Math</span>
470
- <span class='rubyid_end end kw'>end</span>
471
- <span class='rubyid_end end kw'>end</span>
472
-
473
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>&quot;pathname&quot;</span><span class='rparen token'>)</span> <span class='rubyid_then then kw'>then</span>
474
- <span class='rubyid_require identifier id'>require</span> <span class='string val'>&quot;pathname&quot;</span>
475
-
476
- <span class='colon3 op'>::</span><span class='rubyid_Pathname constant id'>Pathname</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
477
- <span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Pathname constant id'>Pathname</span>
478
- <span class='rubyid_end end kw'>end</span>
479
- <span class='rubyid_end end kw'>end</span>
480
-
481
- <span class='rubyid_yield yield kw'>yield</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_block_given? fid id'>block_given?</span>
482
-
483
- <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Settings constant id'>Settings</span><span class='dot token'>.</span><span class='rubyid_instance identifier id'>instance</span>
484
- <span class='rubyid_end end kw'>end</span>
485
- </pre>
780
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_string'>load_string</span>
781
+ <span class='op'>::</span><span class='const'>String</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
782
+ <span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>String</span>
783
+ <span class='kw'>end</span>
784
+ <span class='kw'>end</span></pre>
486
785
  </td>
487
786
  </tr>
488
787
  </table>
@@ -530,17 +829,16 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
530
829
  <pre class="lines">
531
830
 
532
831
 
533
- 37
534
- 38
535
- 39</pre>
832
+ 28
833
+ 29
834
+ 30</pre>
536
835
  </td>
537
836
  <td>
538
- <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 37</span>
837
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 28</span>
539
838
 
540
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_settings identifier id'>settings</span>
541
- <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Settings constant id'>Settings</span><span class='dot token'>.</span><span class='rubyid_instance identifier id'>instance</span>
542
- <span class='rubyid_end end kw'>end</span>
543
- </pre>
839
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_settings'>settings</span>
840
+ <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Settings</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
841
+ <span class='kw'>end</span></pre>
544
842
  </td>
545
843
  </tr>
546
844
  </table>
@@ -551,9 +849,9 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
551
849
  </div>
552
850
 
553
851
  <div id="footer">
554
- Generated on Wed Jan 16 10:02:56 2013 by
852
+ Generated on Mon Jan 28 20:23:45 2013 by
555
853
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
556
- 0.8.2.1 (ruby-1.8.7).
854
+ 0.8.3 (ruby-1.9.3).
557
855
  </div>
558
856
 
559
857
  </body>