lazier 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/Lazier.html +22 -34
- data/doc/Lazier/Boolean.html +1 -1
- data/doc/Lazier/DateTime.html +28 -34
- data/doc/Lazier/DateTime/ClassMethods.html +17 -13
- data/doc/Lazier/Exceptions.html +1 -1
- data/doc/Lazier/Exceptions/Dump.html +1 -1
- data/doc/Lazier/Hash.html +1 -1
- data/doc/Lazier/I18n.html +20 -10
- data/doc/Lazier/Math.html +1 -1
- data/doc/Lazier/Math/ClassMethods.html +1 -1
- data/doc/Lazier/Object.html +1 -1
- data/doc/Lazier/Pathname.html +1 -1
- data/doc/Lazier/Settings.html +1 -1
- data/doc/Lazier/String.html +1 -1
- data/doc/Lazier/TimeZone.html +96 -110
- data/doc/Lazier/TimeZone/ClassMethods.html +65 -69
- data/doc/Lazier/Version.html +3 -3
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/lazier.rb +4 -10
- data/lib/lazier/datetime.rb +68 -37
- data/lib/lazier/i18n.rb +1 -0
- data/lib/lazier/version.rb +1 -1
- metadata +2 -2
data/doc/Lazier.html
CHANGED
@@ -525,13 +525,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
525
525
|
98
|
526
526
|
99
|
527
527
|
100
|
528
|
-
101
|
529
|
-
102
|
530
|
-
103
|
531
|
-
104
|
532
|
-
105
|
533
|
-
106
|
534
|
-
107</pre>
|
528
|
+
101</pre>
|
535
529
|
</td>
|
536
530
|
<td>
|
537
531
|
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 89</span>
|
@@ -539,16 +533,10 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
539
533
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_datetime'>load_datetime</span>
|
540
534
|
<span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_load_object'>load_object</span>
|
541
535
|
|
542
|
-
<span class='op'>::</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier
|
543
|
-
<span class='id identifier
|
544
|
-
|
545
|
-
|
546
|
-
<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>
|
547
|
-
<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>
|
548
|
-
<span class='kw'>end</span>
|
549
|
-
|
550
|
-
<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>
|
551
|
-
<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>
|
536
|
+
<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>
|
537
|
+
<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>
|
538
|
+
<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>
|
539
|
+
<span class='kw'>end</span>
|
552
540
|
<span class='kw'>end</span>
|
553
541
|
|
554
542
|
<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>
|
@@ -629,16 +617,16 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
629
617
|
<pre class="lines">
|
630
618
|
|
631
619
|
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
620
|
+
104
|
621
|
+
105
|
622
|
+
106
|
623
|
+
107
|
624
|
+
108
|
625
|
+
109
|
626
|
+
110</pre>
|
639
627
|
</td>
|
640
628
|
<td>
|
641
|
-
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line
|
629
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 104</span>
|
642
630
|
|
643
631
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_math'>load_math</span>
|
644
632
|
<span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_load_object'>load_object</span>
|
@@ -721,16 +709,16 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
721
709
|
<pre class="lines">
|
722
710
|
|
723
711
|
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
712
|
+
113
|
713
|
+
114
|
714
|
+
115
|
715
|
+
116
|
716
|
+
117
|
717
|
+
118
|
718
|
+
119</pre>
|
731
719
|
</td>
|
732
720
|
<td>
|
733
|
-
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line
|
721
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 113</span>
|
734
722
|
|
735
723
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_pathname'>load_pathname</span>
|
736
724
|
<span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>pathname</span><span class='tstring_end'>"</span></span>
|
@@ -850,7 +838,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
850
838
|
</div>
|
851
839
|
|
852
840
|
<div id="footer">
|
853
|
-
Generated on
|
841
|
+
Generated on Thu Jan 31 20:15:55 2013 by
|
854
842
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
855
843
|
0.8.3 (ruby-1.9.3).
|
856
844
|
</div>
|
data/doc/Lazier/Boolean.html
CHANGED
@@ -288,7 +288,7 @@
|
|
288
288
|
</div>
|
289
289
|
|
290
290
|
<div id="footer">
|
291
|
-
Generated on
|
291
|
+
Generated on Thu Jan 31 20:15:55 2013 by
|
292
292
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
293
293
|
0.8.3 (ruby-1.9.3).
|
294
294
|
</div>
|
data/doc/Lazier/DateTime.html
CHANGED
@@ -338,13 +338,13 @@
|
|
338
338
|
<pre class="lines">
|
339
339
|
|
340
340
|
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
341
|
+
235
|
342
|
+
236
|
343
|
+
237
|
344
|
+
238</pre>
|
345
345
|
</td>
|
346
346
|
<td>
|
347
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line
|
347
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 235</span>
|
348
348
|
|
349
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>
|
350
350
|
<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>
|
@@ -425,12 +425,12 @@
|
|
425
425
|
<pre class="lines">
|
426
426
|
|
427
427
|
|
428
|
-
|
429
|
-
|
430
|
-
|
428
|
+
269
|
429
|
+
270
|
430
|
+
271</pre>
|
431
431
|
</td>
|
432
432
|
<td>
|
433
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line
|
433
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 269</span>
|
434
434
|
|
435
435
|
<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>
|
436
436
|
<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>
|
@@ -503,12 +503,12 @@
|
|
503
503
|
<pre class="lines">
|
504
504
|
|
505
505
|
|
506
|
-
|
507
|
-
|
508
|
-
|
506
|
+
260
|
507
|
+
261
|
508
|
+
262</pre>
|
509
509
|
</td>
|
510
510
|
<td>
|
511
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line
|
511
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 260</span>
|
512
512
|
|
513
513
|
<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>
|
514
514
|
<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>
|
@@ -588,21 +588,15 @@
|
|
588
588
|
<pre class="lines">
|
589
589
|
|
590
590
|
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
249
|
595
|
-
250
|
596
|
-
251</pre>
|
591
|
+
252
|
592
|
+
253
|
593
|
+
254</pre>
|
597
594
|
</td>
|
598
595
|
<td>
|
599
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line
|
596
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 252</span>
|
600
597
|
|
601
598
|
<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>
|
602
|
-
<span class='id identifier
|
603
|
-
<span class='id identifier rubyid_names'>names</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_settings'>settings</span><span class='period'>.</span><span class='id identifier rubyid_date_names'>date_names</span>
|
604
|
-
<span class='id identifier rubyid_substitutions'>substitutions</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%a</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_names'>names</span><span class='lbracket'>[</span><span class='symbol'>:short_days</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_wday'>wday</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%A</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_names'>names</span><span class='lbracket'>[</span><span class='symbol'>:long_days</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_wday'>wday</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%b</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_names'>names</span><span class='lbracket'>[</span><span class='symbol'>:short_months</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_month'>month</span> <span class='op'>-</span> <span class='int'>1</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%B</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_names'>names</span><span class='lbracket'>[</span><span class='symbol'>:long_months</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_month'>month</span> <span class='op'>-</span> <span class='int'>1</span><span class='rbracket'>]</span><span class='rbrace'>}</span>
|
605
|
-
<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'>(?<!%)(%[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_substitutions'>substitutions</span><span class='lbracket'>[</span><span class='id identifier rubyid_mo'>mo</span><span class='rbracket'>]</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
|
599
|
+
<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'>(?<!%)(%[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>
|
606
600
|
<span class='kw'>end</span></pre>
|
607
601
|
</td>
|
608
602
|
</tr>
|
@@ -651,12 +645,12 @@
|
|
651
645
|
<pre class="lines">
|
652
646
|
|
653
647
|
|
654
|
-
|
655
|
-
|
656
|
-
|
648
|
+
243
|
649
|
+
244
|
650
|
+
245</pre>
|
657
651
|
</td>
|
658
652
|
<td>
|
659
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line
|
653
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 243</span>
|
660
654
|
|
661
655
|
<span class='kw'>def</span> <span class='id identifier rubyid_padded_month'>padded_month</span>
|
662
656
|
<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'>"</span><span class='tstring_content'>0</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
@@ -708,13 +702,13 @@
|
|
708
702
|
<pre class="lines">
|
709
703
|
|
710
704
|
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
705
|
+
221
|
706
|
+
222
|
707
|
+
223
|
708
|
+
224</pre>
|
715
709
|
</td>
|
716
710
|
<td>
|
717
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line
|
711
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 221</span>
|
718
712
|
|
719
713
|
<span class='kw'>def</span> <span class='id identifier rubyid_utc_time'>utc_time</span>
|
720
714
|
<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>
|
@@ -730,7 +724,7 @@
|
|
730
724
|
</div>
|
731
725
|
|
732
726
|
<div id="footer">
|
733
|
-
Generated on
|
727
|
+
Generated on Thu Jan 31 20:15:56 2013 by
|
734
728
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
735
729
|
0.8.3 (ruby-1.9.3).
|
736
730
|
</div>
|
@@ -462,12 +462,12 @@
|
|
462
462
|
<pre class="lines">
|
463
463
|
|
464
464
|
|
465
|
-
|
466
|
-
|
467
|
-
|
465
|
+
142
|
466
|
+
143
|
467
|
+
144</pre>
|
468
468
|
</td>
|
469
469
|
<td>
|
470
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line
|
470
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 142</span>
|
471
471
|
|
472
472
|
<span class='kw'>def</span> <span class='id identifier rubyid_custom_format'>custom_format</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
|
473
473
|
<span class='op'>::</span><span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_settings'>settings</span><span class='period'>.</span><span class='id identifier rubyid_date_formats'>date_formats</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='comma'>,</span> <span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span>
|
@@ -649,7 +649,9 @@
|
|
649
649
|
130
|
650
650
|
131
|
651
651
|
132
|
652
|
-
133
|
652
|
+
133
|
653
|
+
134
|
654
|
+
135</pre>
|
653
655
|
</td>
|
654
656
|
<td>
|
655
657
|
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 124</span>
|
@@ -658,9 +660,11 @@
|
|
658
660
|
<span class='id identifier rubyid_year'>year</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='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_year'>year</span><span class='period'>.</span><span class='id identifier rubyid_is_integer?'>is_integer?</span>
|
659
661
|
|
660
662
|
<span class='comment'># Compute using Anonymouse Gregorian Algorithm: http://en.wikipedia.org/wiki/Computus#Anonymous_Gregorian_algorithm
|
661
|
-
</span> <span class='id identifier
|
662
|
-
<span class='id identifier
|
663
|
-
<span class='id identifier
|
663
|
+
</span> <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='id identifier rubyid_easter_start'>easter_start</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span>
|
664
|
+
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='id identifier rubyid_easter_part_1'>easter_part_1</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
665
|
+
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='id identifier rubyid_easter_part_2'>easter_part_2</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
666
|
+
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='id identifier rubyid_easter_part_3'>easter_part_3</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
667
|
+
<span class='id identifier rubyid_day'>day</span><span class='comma'>,</span> <span class='id identifier rubyid_month'>month</span> <span class='op'>=</span> <span class='id identifier rubyid_easter_end'>easter_end</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
664
668
|
|
665
669
|
<span class='op'>::</span><span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_civil'>civil</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='comma'>,</span> <span class='id identifier rubyid_month'>month</span><span class='comma'>,</span> <span class='id identifier rubyid_day'>day</span><span class='rparen'>)</span>
|
666
670
|
<span class='kw'>end</span></pre>
|
@@ -849,8 +853,6 @@
|
|
849
853
|
<pre class="lines">
|
850
854
|
|
851
855
|
|
852
|
-
150
|
853
|
-
151
|
854
856
|
152
|
855
857
|
153
|
856
858
|
154
|
@@ -861,10 +863,12 @@
|
|
861
863
|
159
|
862
864
|
160
|
863
865
|
161
|
864
|
-
162
|
866
|
+
162
|
867
|
+
163
|
868
|
+
164</pre>
|
865
869
|
</td>
|
866
870
|
<td>
|
867
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line
|
871
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 152</span>
|
868
872
|
|
869
873
|
<span class='kw'>def</span> <span class='id identifier rubyid_is_valid?'>is_valid?</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_format'>format</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%F %T</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
870
874
|
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='kw'>true</span>
|
@@ -1561,7 +1565,7 @@
|
|
1561
1565
|
</div>
|
1562
1566
|
|
1563
1567
|
<div id="footer">
|
1564
|
-
Generated on
|
1568
|
+
Generated on Thu Jan 31 20:15:56 2013 by
|
1565
1569
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1566
1570
|
0.8.3 (ruby-1.9.3).
|
1567
1571
|
</div>
|
data/doc/Lazier/Exceptions.html
CHANGED
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Thu Jan 31 20:15:56 2013 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.8.3 (ruby-1.9.3).
|
122
122
|
</div>
|
@@ -124,7 +124,7 @@
|
|
124
124
|
</div>
|
125
125
|
|
126
126
|
<div id="footer">
|
127
|
-
Generated on
|
127
|
+
Generated on Thu Jan 31 20:15:56 2013 by
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
129
129
|
0.8.3 (ruby-1.9.3).
|
130
130
|
</div>
|
data/doc/Lazier/Hash.html
CHANGED
@@ -384,7 +384,7 @@
|
|
384
384
|
</div>
|
385
385
|
|
386
386
|
<div id="footer">
|
387
|
-
Generated on
|
387
|
+
Generated on Thu Jan 31 20:15:55 2013 by
|
388
388
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
389
389
|
0.8.3 (ruby-1.9.3).
|
390
390
|
</div>
|
data/doc/Lazier/I18n.html
CHANGED
@@ -88,7 +88,17 @@
|
|
88
88
|
</dl>
|
89
89
|
<div class="clear"></div>
|
90
90
|
|
91
|
+
<h2>Overview</h2><div class="docstring">
|
92
|
+
<div class="discussion">
|
93
|
+
<p>Provides an easy way to localized messages in a class.</p>
|
94
|
+
|
95
|
+
|
96
|
+
</div>
|
97
|
+
</div>
|
98
|
+
<div class="tags">
|
99
|
+
|
91
100
|
|
101
|
+
</div>
|
92
102
|
|
93
103
|
|
94
104
|
|
@@ -223,12 +233,12 @@
|
|
223
233
|
<pre class="lines">
|
224
234
|
|
225
235
|
|
226
|
-
21
|
227
236
|
22
|
228
|
-
23
|
237
|
+
23
|
238
|
+
24</pre>
|
229
239
|
</td>
|
230
240
|
<td>
|
231
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/i18n.rb', line
|
241
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/i18n.rb', line 22</span>
|
232
242
|
|
233
243
|
<span class='kw'>def</span> <span class='id identifier rubyid_i18n'>i18n</span>
|
234
244
|
<span class='ivar'>@i18n</span> <span class='op'>||=</span> <span class='id identifier rubyid_i18n_load_locale'>i18n_load_locale</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
@@ -299,12 +309,12 @@
|
|
299
309
|
<pre class="lines">
|
300
310
|
|
301
311
|
|
302
|
-
29
|
303
312
|
30
|
304
|
-
31
|
313
|
+
31
|
314
|
+
32</pre>
|
305
315
|
</td>
|
306
316
|
<td>
|
307
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/i18n.rb', line
|
317
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/i18n.rb', line 30</span>
|
308
318
|
|
309
319
|
<span class='kw'>def</span> <span class='id identifier rubyid_i18n='>i18n=</span><span class='lparen'>(</span><span class='id identifier rubyid_locale'>locale</span><span class='rparen'>)</span>
|
310
320
|
<span class='ivar'>@i18n</span> <span class='op'>=</span> <span class='id identifier rubyid_i18n_load_locale'>i18n_load_locale</span><span class='lparen'>(</span><span class='id identifier rubyid_locale'>locale</span><span class='rparen'>)</span>
|
@@ -373,13 +383,13 @@
|
|
373
383
|
<pre class="lines">
|
374
384
|
|
375
385
|
|
376
|
-
13
|
377
386
|
14
|
378
387
|
15
|
379
|
-
16
|
388
|
+
16
|
389
|
+
17</pre>
|
380
390
|
</td>
|
381
391
|
<td>
|
382
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/i18n.rb', line
|
392
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/i18n.rb', line 14</span>
|
383
393
|
|
384
394
|
<span class='kw'>def</span> <span class='id identifier rubyid_i18n_setup'>i18n_setup</span><span class='lparen'>(</span><span class='id identifier rubyid_root'>root</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
385
395
|
<span class='ivar'>@i18n_root</span> <span class='op'>=</span> <span class='id identifier rubyid_root'>root</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
@@ -395,7 +405,7 @@
|
|
395
405
|
</div>
|
396
406
|
|
397
407
|
<div id="footer">
|
398
|
-
Generated on
|
408
|
+
Generated on Thu Jan 31 20:15:55 2013 by
|
399
409
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
400
410
|
0.8.3 (ruby-1.9.3).
|
401
411
|
</div>
|
data/doc/Lazier/Math.html
CHANGED
@@ -121,7 +121,7 @@
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on
|
124
|
+
Generated on Thu Jan 31 20:15:55 2013 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
126
|
0.8.3 (ruby-1.9.3).
|
127
127
|
</div>
|
@@ -321,7 +321,7 @@
|
|
321
321
|
</div>
|
322
322
|
|
323
323
|
<div id="footer">
|
324
|
-
Generated on
|
324
|
+
Generated on Thu Jan 31 20:15:55 2013 by
|
325
325
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
326
326
|
0.8.3 (ruby-1.9.3).
|
327
327
|
</div>
|
data/doc/Lazier/Object.html
CHANGED
@@ -1586,7 +1586,7 @@
|
|
1586
1586
|
</div>
|
1587
1587
|
|
1588
1588
|
<div id="footer">
|
1589
|
-
Generated on
|
1589
|
+
Generated on Thu Jan 31 20:15:55 2013 by
|
1590
1590
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1591
1591
|
0.8.3 (ruby-1.9.3).
|
1592
1592
|
</div>
|
data/doc/Lazier/Pathname.html
CHANGED
@@ -216,7 +216,7 @@
|
|
216
216
|
</div>
|
217
217
|
|
218
218
|
<div id="footer">
|
219
|
-
Generated on
|
219
|
+
Generated on Thu Jan 31 20:15:55 2013 by
|
220
220
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
221
221
|
0.8.3 (ruby-1.9.3).
|
222
222
|
</div>
|
data/doc/Lazier/Settings.html
CHANGED
@@ -1458,7 +1458,7 @@
|
|
1458
1458
|
</div>
|
1459
1459
|
|
1460
1460
|
<div id="footer">
|
1461
|
-
Generated on
|
1461
|
+
Generated on Thu Jan 31 20:15:56 2013 by
|
1462
1462
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1463
1463
|
0.8.3 (ruby-1.9.3).
|
1464
1464
|
</div>
|