lazier 2.8.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/Gemfile +3 -3
  2. data/doc/Lazier.html +69 -99
  3. data/doc/Lazier/Boolean.html +6 -6
  4. data/doc/Lazier/DateTime.html +35 -39
  5. data/doc/Lazier/DateTime/ClassMethods.html +59 -85
  6. data/doc/Lazier/Exceptions.html +6 -6
  7. data/doc/Lazier/Exceptions/Debug.html +133 -0
  8. data/doc/Lazier/Exceptions/MissingTranslation.html +8 -8
  9. data/doc/Lazier/Hash.html +5 -270
  10. data/doc/Lazier/I18n.html +68 -26
  11. data/doc/Lazier/Localizer.html +17 -21
  12. data/doc/Lazier/Math.html +5 -5
  13. data/doc/Lazier/Math/ClassMethods.html +5 -5
  14. data/doc/Lazier/Object.html +681 -218
  15. data/doc/Lazier/Pathname.html +7 -11
  16. data/doc/Lazier/Settings.html +166 -262
  17. data/doc/Lazier/String.html +21 -25
  18. data/doc/Lazier/TimeZone.html +119 -130
  19. data/doc/Lazier/TimeZone/ClassMethods.html +75 -83
  20. data/doc/Lazier/Version.html +8 -8
  21. data/doc/_index.html +7 -7
  22. data/doc/class_list.html +2 -2
  23. data/doc/file.README.html +5 -5
  24. data/doc/file_list.html +1 -1
  25. data/doc/frames.html +1 -1
  26. data/doc/index.html +5 -5
  27. data/doc/js/full_list.js +6 -1
  28. data/doc/method_list.html +134 -324
  29. data/doc/top-level-namespace.html +5 -5
  30. data/lazier.gemspec +4 -3
  31. data/lib/lazier.rb +9 -23
  32. data/lib/lazier/boolean.rb +1 -1
  33. data/lib/lazier/datetime.rb +47 -79
  34. data/lib/lazier/exceptions.rb +4 -4
  35. data/lib/lazier/hash.rb +0 -24
  36. data/lib/lazier/i18n.rb +13 -6
  37. data/lib/lazier/localizer.rb +3 -5
  38. data/lib/lazier/object.rb +107 -78
  39. data/lib/lazier/pathname.rb +1 -3
  40. data/lib/lazier/settings.rb +22 -30
  41. data/lib/lazier/string.rb +3 -5
  42. data/lib/lazier/version.rb +3 -3
  43. data/spec/lazier/datetime_spec.rb +8 -8
  44. data/spec/lazier/hash_spec.rb +9 -10
  45. data/spec/lazier/object_spec.rb +85 -11
  46. data/spec/lazier/settings_spec.rb +10 -17
  47. data/spec/lazier_spec.rb +1 -1
  48. metadata +26 -9
data/Gemfile CHANGED
@@ -10,11 +10,11 @@ gemspec
10
10
 
11
11
  # Testing
12
12
  gem "rspec", "~> 2.13.0"
13
- gem "rake", "~> 10.0.3"
13
+ gem "rake", "~> 10.0.4"
14
14
 
15
15
  # Documentation
16
16
  gem "simplecov", ">= 0.7.1"
17
17
  gem "pry", ">= 0"
18
- gem "yard", ">= 0.8.5"
19
- gem "kramdown", ">= 1.0.1"
18
+ gem "yard", ">= 0.8.6"
19
+ gem "kramdown", ">= 1.0.2"
20
20
  gem "github-markup", ">= 0.7.5"
data/doc/Lazier.html CHANGED
@@ -6,13 +6,13 @@
6
6
  <title>
7
7
  Module: Lazier
8
8
 
9
- &mdash; Documentation by YARD 0.8.5.2
9
+ &mdash; Documentation by YARD 0.8.6.1
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
14
 
15
- <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
16
 
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
@@ -458,26 +458,26 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
458
458
  <pre class="lines">
459
459
 
460
460
 
461
+ 114
462
+ 115
463
+ 116
464
+ 117
465
+ 118
466
+ 119
467
+ 120
468
+ 121
469
+ 122
470
+ 123
471
+ 124
472
+ 125
473
+ 126
474
+ 127
461
475
  128
462
476
  129
463
- 130
464
- 131
465
- 132
466
- 133
467
- 134
468
- 135
469
- 136
470
- 137
471
- 138
472
- 139
473
- 140
474
- 141
475
- 142
476
- 143
477
- 144</pre>
477
+ 130</pre>
478
478
  </td>
479
479
  <td>
480
- <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 128</span>
480
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 114</span>
481
481
 
482
482
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_find_class'>find_class</span><span class='lparen'>(</span><span class='id identifier rubyid_cls'>cls</span><span class='comma'>,</span> <span class='id identifier rubyid_scope'>scope</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>::%CLASS%</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_only_in_scope'>only_in_scope</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
483
483
  <span class='kw'>if</span> <span class='id identifier rubyid_cls'>cls</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>String</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_cls'>cls</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Symbol</span><span class='rparen'>)</span> <span class='kw'>then</span>
@@ -570,21 +570,17 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
570
570
  <pre class="lines">
571
571
 
572
572
 
573
- 47
574
573
  48
575
574
  49
576
575
  50
577
576
  51
578
- 52
579
- 53</pre>
577
+ 52</pre>
580
578
  </td>
581
579
  <td>
582
- <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 47</span>
580
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 48</span>
583
581
 
584
582
  <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>
585
- <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>
586
- <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='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>
587
-
583
+ <span class='lparen'>(</span><span class='id identifier rubyid_what'>what</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='op'>?</span> <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='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_w'>w</span><span class='op'>|</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>
588
584
  <span class='kw'>yield</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
589
585
  <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>
590
586
  <span class='kw'>end</span></pre>
@@ -618,6 +614,9 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
618
614
  <pre class="lines">
619
615
 
620
616
 
617
+ 60
618
+ 61
619
+ 62
621
620
  63
622
621
  64
623
622
  65
@@ -625,13 +624,10 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
625
624
  67
626
625
  68
627
626
  69
628
- 70
629
- 71
630
- 72
631
- 73</pre>
627
+ 70</pre>
632
628
  </td>
633
629
  <td>
634
- <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 63</span>
630
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 60</span>
635
631
 
636
632
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_boolean'>load_boolean</span>
637
633
  <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>
@@ -674,35 +670,27 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
674
670
  <pre class="lines">
675
671
 
676
672
 
673
+ 86
674
+ 87
675
+ 88
676
+ 89
677
677
  90
678
678
  91
679
679
  92
680
680
  93
681
- 94
682
- 95
683
- 96
684
- 97
685
- 98
686
- 99
687
- 100
688
- 101
689
- 102</pre>
681
+ 94</pre>
690
682
  </td>
691
683
  <td>
692
- <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 90</span>
684
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 86</span>
693
685
 
694
686
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_datetime'>load_datetime</span>
695
687
  <span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_load_object'>load_object</span>
696
688
 
697
689
  <span class='lbracket'>[</span><span class='op'>::</span><span class='const'>Time</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>Date</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>DateTime</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_c'>c</span><span class='op'>|</span>
698
- <span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
699
- <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>
700
- <span class='kw'>end</span>
690
+ <span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='lbrace'>{</span> <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> <span class='rbrace'>}</span>
701
691
  <span class='kw'>end</span>
702
692
 
703
- <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>
704
- <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>
705
- <span class='kw'>end</span>
693
+ <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='lbrace'>{</span> <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> <span class='rbrace'>}</span>
706
694
  <span class='kw'>end</span></pre>
707
695
  </td>
708
696
  </tr>
@@ -734,17 +722,19 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
734
722
  <pre class="lines">
735
723
 
736
724
 
737
- 83
738
- 84
739
- 85
740
- 86
741
- 87</pre>
725
+ 78
726
+ 79
727
+ 80
728
+ 81
729
+ 82
730
+ 83</pre>
742
731
  </td>
743
732
  <td>
744
- <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 83</span>
733
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 78</span>
745
734
 
746
735
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_hash'>load_hash</span>
747
736
  <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>
737
+ <span class='id identifier rubyid_include'>include</span> <span class='const'>Hashie</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>MethodAccess</span>
748
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'>Hash</span>
749
739
  <span class='kw'>end</span>
750
740
  <span class='kw'>end</span></pre>
@@ -778,23 +768,17 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
778
768
  <pre class="lines">
779
769
 
780
770
 
781
- 105
782
- 106
783
- 107
784
- 108
785
- 109
786
- 110
787
- 111</pre>
771
+ 97
772
+ 98
773
+ 99
774
+ 100</pre>
788
775
  </td>
789
776
  <td>
790
- <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 105</span>
777
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 97</span>
791
778
 
792
779
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_math'>load_math</span>
793
780
  <span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_load_object'>load_object</span>
794
-
795
- <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>
796
- <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>
797
- <span class='kw'>end</span>
781
+ <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='lbrace'>{</span> <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> <span class='rbrace'>}</span>
798
782
  <span class='kw'>end</span></pre>
799
783
  </td>
800
784
  </tr>
@@ -826,19 +810,15 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
826
810
  <pre class="lines">
827
811
 
828
812
 
813
+ 55
829
814
  56
830
- 57
831
- 58
832
- 59
833
- 60</pre>
815
+ 57</pre>
834
816
  </td>
835
817
  <td>
836
- <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 56</span>
818
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 55</span>
837
819
 
838
820
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_object'>load_object</span>
839
- <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>
840
- <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>
841
- <span class='kw'>end</span>
821
+ <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='lbrace'>{</span> <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> <span class='rbrace'>}</span>
842
822
  <span class='kw'>end</span></pre>
843
823
  </td>
844
824
  </tr>
@@ -870,23 +850,17 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
870
850
  <pre class="lines">
871
851
 
872
852
 
873
- 114
874
- 115
875
- 116
876
- 117
877
- 118
878
- 119
879
- 120</pre>
853
+ 103
854
+ 104
855
+ 105
856
+ 106</pre>
880
857
  </td>
881
858
  <td>
882
- <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 114</span>
859
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 103</span>
883
860
 
884
861
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_pathname'>load_pathname</span>
885
862
  <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>
886
-
887
- <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>
888
- <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>
889
- <span class='kw'>end</span>
863
+ <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='lbrace'>{</span> <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> <span class='rbrace'>}</span>
890
864
  <span class='kw'>end</span></pre>
891
865
  </td>
892
866
  </tr>
@@ -918,19 +892,15 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
918
892
  <pre class="lines">
919
893
 
920
894
 
921
- 76
922
- 77
923
- 78
924
- 79
925
- 80</pre>
895
+ 73
896
+ 74
897
+ 75</pre>
926
898
  </td>
927
899
  <td>
928
- <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 76</span>
900
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 73</span>
929
901
 
930
902
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_string'>load_string</span>
931
- <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>
932
- <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>
933
- <span class='kw'>end</span>
903
+ <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='lbrace'>{</span> <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> <span class='rbrace'>}</span>
934
904
  <span class='kw'>end</span></pre>
935
905
  </td>
936
906
  </tr>
@@ -979,12 +949,12 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
979
949
  <pre class="lines">
980
950
 
981
951
 
982
- 31
983
952
  32
984
- 33</pre>
953
+ 33
954
+ 34</pre>
985
955
  </td>
986
956
  <td>
987
- <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 31</span>
957
+ <pre class="code"><span class="info file"># File 'lib/lazier.rb', line 32</span>
988
958
 
989
959
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_settings'>settings</span>
990
960
  <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>
@@ -999,9 +969,9 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
999
969
  </div>
1000
970
 
1001
971
  <div id="footer">
1002
- Generated on Sat Apr 13 11:56:53 2013 by
972
+ Generated on Fri May 17 12:03:20 2013 by
1003
973
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1004
- 0.8.5.2 (ruby-1.9.3).
974
+ 0.8.6.1 (ruby-1.9.3).
1005
975
  </div>
1006
976
 
1007
977
  </body>
@@ -6,13 +6,13 @@
6
6
  <title>
7
7
  Module: Lazier::Boolean
8
8
 
9
- &mdash; Documentation by YARD 0.8.5.2
9
+ &mdash; Documentation by YARD 0.8.6.1
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
14
 
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
16
 
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
@@ -219,7 +219,7 @@
219
219
  <pre class="code"><span class="info file"># File 'lib/lazier/boolean.rb', line 15</span>
220
220
 
221
221
  <span class='kw'>def</span> <span class='id identifier rubyid_to_i'>to_i</span>
222
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>TrueClass</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='int'>1</span> <span class='op'>:</span> <span class='int'>0</span>
222
+ <span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>TrueClass</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='int'>1</span> <span class='op'>:</span> <span class='int'>0</span>
223
223
  <span class='kw'>end</span></pre>
224
224
  </td>
225
225
  </tr>
@@ -288,9 +288,9 @@
288
288
  </div>
289
289
 
290
290
  <div id="footer">
291
- Generated on Sat Apr 13 11:56:53 2013 by
291
+ Generated on Fri May 17 12:03:21 2013 by
292
292
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
293
- 0.8.5.2 (ruby-1.9.3).
293
+ 0.8.6.1 (ruby-1.9.3).
294
294
  </div>
295
295
 
296
296
  </body>
@@ -6,13 +6,13 @@
6
6
  <title>
7
7
  Module: Lazier::DateTime
8
8
 
9
- &mdash; Documentation by YARD 0.8.5.2
9
+ &mdash; Documentation by YARD 0.8.6.1
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
14
 
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
16
 
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
@@ -339,17 +339,15 @@ DateTime.civil(2013, 6, 1).in_months(2011)
339
339
  <pre class="lines">
340
340
 
341
341
 
342
- 235
343
- 236
344
- 237
345
- 238</pre>
342
+ 222
343
+ 223
344
+ 224</pre>
346
345
  </td>
347
346
  <td>
348
- <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 235</span>
347
+ <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 222</span>
349
348
 
350
349
  <span class='kw'>def</span> <span class='id identifier rubyid_in_months'>in_months</span><span class='lparen'>(</span><span class='id identifier rubyid_base'>base</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
351
- <span class='id identifier rubyid_base'>base</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_today'>today</span><span class='period'>.</span><span class='id identifier rubyid_year'>year</span>
352
- <span class='lparen'>(</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span> <span class='op'>-</span> <span class='id identifier rubyid_base'>base</span><span class='rparen'>)</span> <span class='op'>*</span> <span class='int'>12</span> <span class='op'>+</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_month'>month</span>
350
+ <span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span> <span class='op'>-</span> <span class='lparen'>(</span><span class='id identifier rubyid_base'>base</span> <span class='op'>||</span> <span class='op'>::</span><span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_today'>today</span><span class='period'>.</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='op'>*</span> <span class='int'>12</span> <span class='op'>+</span> <span class='id identifier rubyid_month'>month</span>
353
351
  <span class='kw'>end</span></pre>
354
352
  </td>
355
353
  </tr>
@@ -426,15 +424,15 @@ DateTime.civil(2013, 6, 1).in_months(2011)
426
424
  <pre class="lines">
427
425
 
428
426
 
429
- 269
430
- 270
431
- 271</pre>
427
+ 255
428
+ 256
429
+ 257</pre>
432
430
  </td>
433
431
  <td>
434
- <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 269</span>
432
+ <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 255</span>
435
433
 
436
434
  <span class='kw'>def</span> <span class='id identifier rubyid_local_lstrftime'>local_lstrftime</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
437
- <span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:in_time_zone</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_in_time_zone'>in_time_zone</span> <span class='op'>:</span> <span class='kw'>self</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_lstrftime'>lstrftime</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span><span class='rparen'>)</span>
435
+ <span class='lparen'>(</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:in_time_zone</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_in_time_zone'>in_time_zone</span> <span class='op'>:</span> <span class='kw'>self</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_lstrftime'>lstrftime</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span><span class='rparen'>)</span>
438
436
  <span class='kw'>end</span></pre>
439
437
  </td>
440
438
  </tr>
@@ -504,15 +502,15 @@ DateTime.civil(2013, 6, 1).in_months(2011)
504
502
  <pre class="lines">
505
503
 
506
504
 
507
- 260
508
- 261
509
- 262</pre>
505
+ 246
506
+ 247
507
+ 248</pre>
510
508
  </td>
511
509
  <td>
512
- <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 260</span>
510
+ <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 246</span>
513
511
 
514
512
  <span class='kw'>def</span> <span class='id identifier rubyid_local_strftime'>local_strftime</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
515
- <span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:in_time_zone</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_in_time_zone'>in_time_zone</span> <span class='op'>:</span> <span class='kw'>self</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>DateTime</span><span class='period'>.</span><span class='id identifier rubyid_custom_format'>custom_format</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span><span class='rparen'>)</span><span class='rparen'>)</span>
513
+ <span class='lparen'>(</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:in_time_zone</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_in_time_zone'>in_time_zone</span> <span class='op'>:</span> <span class='kw'>self</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>DateTime</span><span class='period'>.</span><span class='id identifier rubyid_custom_format'>custom_format</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span><span class='rparen'>)</span><span class='rparen'>)</span>
516
514
  <span class='kw'>end</span></pre>
517
515
  </td>
518
516
  </tr>
@@ -589,15 +587,15 @@ DateTime.civil(2013, 6, 1).in_months(2011)
589
587
  <pre class="lines">
590
588
 
591
589
 
592
- 252
593
- 253
594
- 254</pre>
590
+ 238
591
+ 239
592
+ 240</pre>
595
593
  </td>
596
594
  <td>
597
- <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 252</span>
595
+ <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 238</span>
598
596
 
599
597
  <span class='kw'>def</span> <span class='id identifier rubyid_lstrftime'>lstrftime</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
600
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>DateTime</span><span class='period'>.</span><span class='id identifier rubyid_custom_format'>custom_format</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>(?&lt;!%)(%[ab])</span><span class='regexp_end'>/i</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_mo'>mo</span><span class='op'>|</span> <span class='id identifier rubyid_localize_time_component'>localize_time_component</span><span class='lparen'>(</span><span class='id identifier rubyid_mo'>mo</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
598
+ <span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>DateTime</span><span class='period'>.</span><span class='id identifier rubyid_custom_format'>custom_format</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>(?&lt;!%)(%[ab])</span><span class='regexp_end'>/i</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_mo'>mo</span><span class='op'>|</span> <span class='id identifier rubyid_localize_time_component'>localize_time_component</span><span class='lparen'>(</span><span class='id identifier rubyid_mo'>mo</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
601
599
  <span class='kw'>end</span></pre>
602
600
  </td>
603
601
  </tr>
@@ -646,15 +644,15 @@ DateTime.civil(2013, 6, 1).in_months(2011)
646
644
  <pre class="lines">
647
645
 
648
646
 
649
- 243
650
- 244
651
- 245</pre>
647
+ 229
648
+ 230
649
+ 231</pre>
652
650
  </td>
653
651
  <td>
654
- <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 243</span>
652
+ <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 229</span>
655
653
 
656
654
  <span class='kw'>def</span> <span class='id identifier rubyid_padded_month'>padded_month</span>
657
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_month'>month</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_rjust'>rjust</span><span class='lparen'>(</span><span class='int'>2</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
655
+ <span class='id identifier rubyid_month'>month</span><span class='period'>.</span><span class='id identifier rubyid_indexize'>indexize</span>
658
656
  <span class='kw'>end</span></pre>
659
657
  </td>
660
658
  </tr>
@@ -703,17 +701,15 @@ DateTime.civil(2013, 6, 1).in_months(2011)
703
701
  <pre class="lines">
704
702
 
705
703
 
706
- 221
707
- 222
708
- 223
709
- 224</pre>
704
+ 209
705
+ 210
706
+ 211</pre>
710
707
  </td>
711
708
  <td>
712
- <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 221</span>
709
+ <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 209</span>
713
710
 
714
711
  <span class='kw'>def</span> <span class='id identifier rubyid_utc_time'>utc_time</span>
715
- <span class='id identifier rubyid_ua'>ua</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:utc</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='kw'>self</span> <span class='op'>:</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_to_datetime'>to_datetime</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_utc'>utc</span>
716
- <span class='op'>::</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_utc'>utc</span><span class='lparen'>(</span><span class='id identifier rubyid_ua'>ua</span><span class='period'>.</span><span class='id identifier rubyid_year'>year</span><span class='comma'>,</span> <span class='id identifier rubyid_ua'>ua</span><span class='period'>.</span><span class='id identifier rubyid_month'>month</span><span class='comma'>,</span> <span class='id identifier rubyid_ua'>ua</span><span class='period'>.</span><span class='id identifier rubyid_day'>day</span><span class='comma'>,</span> <span class='id identifier rubyid_ua'>ua</span><span class='period'>.</span><span class='id identifier rubyid_hour'>hour</span><span class='comma'>,</span> <span class='id identifier rubyid_ua'>ua</span><span class='period'>.</span><span class='id identifier rubyid_min'>min</span><span class='comma'>,</span> <span class='id identifier rubyid_ua'>ua</span><span class='period'>.</span><span class='id identifier rubyid_sec'>sec</span><span class='rparen'>)</span>
712
+ <span class='id identifier rubyid_utc'>utc</span><span class='period'>.</span><span class='id identifier rubyid_to_time'>to_time</span>
717
713
  <span class='kw'>end</span></pre>
718
714
  </td>
719
715
  </tr>
@@ -725,9 +721,9 @@ DateTime.civil(2013, 6, 1).in_months(2011)
725
721
  </div>
726
722
 
727
723
  <div id="footer">
728
- Generated on Sat Apr 13 11:56:53 2013 by
724
+ Generated on Fri May 17 12:03:21 2013 by
729
725
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
730
- 0.8.5.2 (ruby-1.9.3).
726
+ 0.8.6.1 (ruby-1.9.3).
731
727
  </div>
732
728
 
733
729
  </body>