lazier 1.0.7 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Lazier::Boolean
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
 
@@ -218,10 +218,9 @@
218
218
  <td>
219
219
  <pre class="code"><span class="info file"># File 'lib/lazier/boolean.rb', line 15</span>
220
220
 
221
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_to_i identifier id'>to_i</span>
222
- <span class='lparen token'>(</span><span class='rubyid_self self kw'>self</span> <span class='eq op'>==</span> <span class='rubyid_true true kw'>true</span><span class='rparen token'>)</span> <span class='question op'>?</span> <span class='integer val'>1</span> <span class='colon op'>:</span> <span class='integer val'>0</span>
223
- <span class='rubyid_end end kw'>end</span>
224
- </pre>
221
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_i'>to_i</span>
222
+ <span class='lparen'>(</span><span class='kw'>self</span> <span class='op'>==</span> <span class='kw'>true</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='int'>1</span> <span class='op'>:</span> <span class='int'>0</span>
223
+ <span class='kw'>end</span></pre>
225
224
  </td>
226
225
  </tr>
227
226
  </table>
@@ -276,10 +275,9 @@
276
275
  <td>
277
276
  <pre class="code"><span class="info file"># File 'lib/lazier/boolean.rb', line 22</span>
278
277
 
279
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_value identifier id'>value</span>
280
- <span class='rubyid_self self kw'>self</span>
281
- <span class='rubyid_end end kw'>end</span>
282
- </pre>
278
+ <span class='kw'>def</span> <span class='id identifier rubyid_value'>value</span>
279
+ <span class='kw'>self</span>
280
+ <span class='kw'>end</span></pre>
283
281
  </td>
284
282
  </tr>
285
283
  </table>
@@ -290,9 +288,9 @@
290
288
  </div>
291
289
 
292
290
  <div id="footer">
293
- Generated on Wed Jan 16 10:02:56 2013 by
291
+ Generated on Mon Jan 28 20:23:46 2013 by
294
292
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
295
- 0.8.2.1 (ruby-1.8.7).
293
+ 0.8.3 (ruby-1.9.3).
296
294
  </div>
297
295
 
298
296
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Lazier::DateTime
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
 
@@ -284,9 +284,9 @@
284
284
  <div class="discussion">
285
285
  <p>Returns the number of months passed between the beginning of the base year and the current date.</p>
286
286
 
287
- <pre class="code ruby"><code><span class='rubyid_DateTime constant id'>DateTime</span><span class='dot token'>.</span><span class='rubyid_civil identifier id'>civil</span><span class='lparen token'>(</span><span class='integer val'>2013</span><span class='comma token'>,</span> <span class='integer val'>6</span><span class='comma token'>,</span> <span class='integer val'>1</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_in_months identifier id'>in_months</span><span class='lparen token'>(</span><span class='integer val'>2011</span><span class='rparen token'>)</span>
288
- <span class='comment val'># =&gt; 18</span>
289
- </code></pre>
287
+ <pre class="code ruby"><code><span class='const'>DateTime</span><span class='period'>.</span><span class='id identifier rubyid_civil'>civil</span><span class='lparen'>(</span><span class='int'>2013</span><span class='comma'>,</span> <span class='int'>6</span><span class='comma'>,</span> <span class='int'>1</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_in_months'>in_months</span><span class='lparen'>(</span><span class='int'>2011</span><span class='rparen'>)</span>
288
+ <span class='comment'># =&gt; 18
289
+ </span></code></pre>
290
290
 
291
291
 
292
292
  </div>
@@ -338,19 +338,18 @@
338
338
  <pre class="lines">
339
339
 
340
340
 
341
- 193
342
- 194
343
- 195
344
- 196</pre>
341
+ 229
342
+ 230
343
+ 231
344
+ 232</pre>
345
345
  </td>
346
346
  <td>
347
- <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 193</span>
347
+ <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 229</span>
348
348
 
349
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_in_months identifier id'>in_months</span><span class='lparen token'>(</span><span class='rubyid_base identifier id'>base</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
350
- <span class='rubyid_base identifier id'>base</span> <span class='opasgn op'>||=</span> <span class='colon3 op'>::</span><span class='rubyid_Date constant id'>Date</span><span class='dot token'>.</span><span class='rubyid_today identifier id'>today</span><span class='dot token'>.</span><span class='rubyid_year identifier id'>year</span>
351
- <span class='lparen token'>(</span><span class='lparen token'>(</span><span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_year identifier id'>year</span><span class='rparen token'>)</span> <span class='minus op'>-</span> <span class='rubyid_base identifier id'>base</span><span class='rparen token'>)</span> <span class='mult op'>*</span> <span class='integer val'>12</span> <span class='plus op'>+</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_month identifier id'>month</span>
352
- <span class='rubyid_end end kw'>end</span>
353
- </pre>
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
+ <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>
351
+ <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>
352
+ <span class='kw'>end</span></pre>
354
353
  </td>
355
354
  </tr>
356
355
  </table>
@@ -426,17 +425,16 @@
426
425
  <pre class="lines">
427
426
 
428
427
 
429
- 254
430
- 255
431
- 256</pre>
428
+ 266
429
+ 267
430
+ 268</pre>
432
431
  </td>
433
432
  <td>
434
- <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 254</span>
433
+ <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 266</span>
435
434
 
436
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_local_lstrftime identifier id'>local_lstrftime</span><span class='lparen token'>(</span><span class='rubyid_format identifier id'>format</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
437
- <span class='lparen token'>(</span><span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_respond_to? fid id'>respond_to?</span><span class='lparen token'>(</span><span class='symbol val'>:in_time_zone</span><span class='rparen token'>)</span> <span class='question op'>?</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_in_time_zone identifier id'>in_time_zone</span> <span class='colon op'>:</span> <span class='rubyid_self self kw'>self</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_lstrftime identifier id'>lstrftime</span><span class='lparen token'>(</span><span class='rubyid_format identifier id'>format</span><span class='rparen token'>)</span>
438
- <span class='rubyid_end end kw'>end</span>
439
- </pre>
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
+ <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>
437
+ <span class='kw'>end</span></pre>
440
438
  </td>
441
439
  </tr>
442
440
  </table>
@@ -505,17 +503,16 @@
505
503
  <pre class="lines">
506
504
 
507
505
 
508
- 245
509
- 246
510
- 247</pre>
506
+ 257
507
+ 258
508
+ 259</pre>
511
509
  </td>
512
510
  <td>
513
- <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 245</span>
511
+ <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 257</span>
514
512
 
515
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_local_strftime identifier id'>local_strftime</span><span class='lparen token'>(</span><span class='rubyid_format identifier id'>format</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
516
- <span class='lparen token'>(</span><span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_respond_to? fid id'>respond_to?</span><span class='lparen token'>(</span><span class='symbol val'>:in_time_zone</span><span class='rparen token'>)</span> <span class='question op'>?</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_in_time_zone identifier id'>in_time_zone</span> <span class='colon op'>:</span> <span class='rubyid_self self kw'>self</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_strftime identifier id'>strftime</span><span class='lparen token'>(</span><span class='colon3 op'>::</span><span class='rubyid_DateTime constant id'>DateTime</span><span class='dot token'>.</span><span class='rubyid_custom_format identifier id'>custom_format</span><span class='lparen token'>(</span><span class='rubyid_format identifier id'>format</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
517
- <span class='rubyid_end end kw'>end</span>
518
- </pre>
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
+ <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>
515
+ <span class='kw'>end</span></pre>
519
516
  </td>
520
517
  </tr>
521
518
  </table>
@@ -591,71 +588,22 @@
591
588
  <pre class="lines">
592
589
 
593
590
 
594
- 210
595
- 211
596
- 212
597
- 213
598
- 214
599
- 215
600
- 216
601
- 217
602
- 218
603
- 219
604
- 220
605
- 221
606
- 222
607
- 223
608
- 224
609
- 225
610
- 226
611
- 227
612
- 228
613
- 229
614
- 230
615
- 231
616
- 232
617
- 233
618
- 234
619
- 235
620
- 236
621
- 237
622
- 238
623
- 239</pre>
591
+ 246
592
+ 247
593
+ 248
594
+ 249
595
+ 250
596
+ 251</pre>
624
597
  </td>
625
598
  <td>
626
- <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 210</span>
627
-
628
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_lstrftime identifier id'>lstrftime</span><span class='lparen token'>(</span><span class='rubyid_format identifier id'>format</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
629
- <span class='rubyid_rv identifier id'>rv</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span>
630
- <span class='rubyid_names identifier id'>names</span> <span class='assign token'>=</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='dot token'>.</span><span class='rubyid_settings identifier id'>settings</span><span class='dot token'>.</span><span class='rubyid_date_names identifier id'>date_names</span>
631
-
632
- <span class='rubyid_final_format identifier id'>final_format</span> <span class='assign token'>=</span> <span class='colon3 op'>::</span><span class='rubyid_DateTime constant id'>DateTime</span><span class='dot token'>.</span><span class='rubyid_custom_format identifier id'>custom_format</span><span class='lparen token'>(</span><span class='rubyid_format identifier id'>format</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_ensure_string identifier id'>ensure_string</span><span class='dot token'>.</span><span class='rubyid_gsub identifier id'>gsub</span><span class='lparen token'>(</span><span class='regexp val'>/(%{1,2}:?[abz])/i</span><span class='rparen token'>)</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_match identifier id'>match</span><span class='bitor op'>|</span>
633
- <span class='rubyid_mrv identifier id'>mrv</span> <span class='assign token'>=</span> <span class='rubyid_match identifier id'>match</span>
634
-
635
- <span class='comment val'># Handling of %z is to fix ruby 1.8 bug in OSX: http://bugs.ruby-lang.org/issues/2396</span>
636
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_match identifier id'>match</span> <span class='nmatch op'>!~</span> <span class='regexp val'>/^%%/</span> <span class='rubyid_then then kw'>then</span>
637
- <span class='rubyid_case case kw'>case</span> <span class='rubyid_match identifier id'>match</span>
638
- <span class='rubyid_when when kw'>when</span> <span class='string val'>&quot;%a&quot;</span>
639
- <span class='rubyid_mrv identifier id'>mrv</span> <span class='assign token'>=</span> <span class='rubyid_names identifier id'>names</span><span class='lbrack token'>[</span><span class='symbol val'>:short_days</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_wday identifier id'>wday</span><span class='rbrack token'>]</span>
640
- <span class='rubyid_when when kw'>when</span> <span class='string val'>&quot;%A&quot;</span>
641
- <span class='rubyid_mrv identifier id'>mrv</span> <span class='assign token'>=</span> <span class='rubyid_names identifier id'>names</span><span class='lbrack token'>[</span><span class='symbol val'>:long_days</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_wday identifier id'>wday</span><span class='rbrack token'>]</span>
642
- <span class='rubyid_when when kw'>when</span> <span class='string val'>&quot;%b&quot;</span>
643
- <span class='rubyid_mrv identifier id'>mrv</span> <span class='assign token'>=</span> <span class='rubyid_names identifier id'>names</span><span class='lbrack token'>[</span><span class='symbol val'>:short_months</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_month identifier id'>month</span> <span class='minus op'>-</span> <span class='integer val'>1</span><span class='rbrack token'>]</span>
644
- <span class='rubyid_when when kw'>when</span> <span class='string val'>&quot;%B&quot;</span>
645
- <span class='rubyid_mrv identifier id'>mrv</span> <span class='assign token'>=</span> <span class='rubyid_names identifier id'>names</span><span class='lbrack token'>[</span><span class='symbol val'>:long_months</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_month identifier id'>month</span> <span class='minus op'>-</span> <span class='integer val'>1</span><span class='rbrack token'>]</span>
646
- <span class='rubyid_when when kw'>when</span> <span class='string val'>&quot;%z&quot;</span>
647
- <span class='rubyid_mrv identifier id'>mrv</span> <span class='assign token'>=</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='dot token'>.</span><span class='rubyid_is_ruby_18? fid id'>is_ruby_18?</span> <span class='integer val'>? </span><span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_formatted_offset identifier id'>formatted_offset</span><span class='lparen token'>(</span><span class='rubyid_false false kw'>false</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='rubyid_nil nil kw'>nil</span>
648
- <span class='rubyid_when when kw'>when</span> <span class='string val'>&quot;%:z&quot;</span>
649
- <span class='rubyid_mrv identifier id'>mrv</span> <span class='assign token'>=</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='dot token'>.</span><span class='rubyid_is_ruby_18? fid id'>is_ruby_18?</span> <span class='integer val'>? </span><span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_formatted_offset identifier id'>formatted_offset</span><span class='lparen token'>(</span><span class='rubyid_true true kw'>true</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='rubyid_nil nil kw'>nil</span>
650
- <span class='rubyid_end end kw'>end</span>
651
- <span class='rubyid_end end kw'>end</span>
652
-
653
- <span class='rubyid_mrv identifier id'>mrv</span> <span class='integer val'>? </span><span class='rubyid_mrv identifier id'>mrv</span><span class='dot token'>.</span><span class='rubyid_sub identifier id'>sub</span><span class='lparen token'>(</span><span class='string val'>&quot;%&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;%%&quot;</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='rubyid_match identifier id'>match</span>
654
- <span class='rubyid_end end kw'>end</span>
655
-
656
- <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_strftime identifier id'>strftime</span><span class='lparen token'>(</span><span class='rubyid_final_format identifier id'>final_format</span><span class='rparen token'>)</span>
657
- <span class='rubyid_end end kw'>end</span>
658
- </pre>
599
+ <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 246</span>
600
+
601
+ <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 rubyid_rv'>rv</span> <span class='op'>=</span> <span class='kw'>nil</span>
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'>&quot;</span><span class='tstring_content'>%a</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</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'>&quot;</span><span class='tstring_content'>%A</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</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'>&quot;</span><span class='tstring_content'>%b</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</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'>&quot;</span><span class='tstring_content'>%B</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</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'>(?&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_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>
606
+ <span class='kw'>end</span></pre>
659
607
  </td>
660
608
  </tr>
661
609
  </table>
@@ -703,17 +651,16 @@
703
651
  <pre class="lines">
704
652
 
705
653
 
706
- 201
707
- 202
708
- 203</pre>
654
+ 237
655
+ 238
656
+ 239</pre>
709
657
  </td>
710
658
  <td>
711
- <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 201</span>
659
+ <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 237</span>
712
660
 
713
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_padded_month identifier id'>padded_month</span>
714
- <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_month identifier id'>month</span><span class='dot token'>.</span><span class='rubyid_to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='rubyid_rjust identifier id'>rjust</span><span class='lparen token'>(</span><span class='integer val'>2</span><span class='comma token'>,</span> <span class='string val'>&quot;0&quot;</span><span class='rparen token'>)</span>
715
- <span class='rubyid_end end kw'>end</span>
716
- </pre>
661
+ <span class='kw'>def</span> <span class='id identifier rubyid_padded_month'>padded_month</span>
662
+ <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>
663
+ <span class='kw'>end</span></pre>
717
664
  </td>
718
665
  </tr>
719
666
  </table>
@@ -761,19 +708,18 @@
761
708
  <pre class="lines">
762
709
 
763
710
 
764
- 179
765
- 180
766
- 181
767
- 182</pre>
711
+ 215
712
+ 216
713
+ 217
714
+ 218</pre>
768
715
  </td>
769
716
  <td>
770
- <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 179</span>
717
+ <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 215</span>
771
718
 
772
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_utc_time identifier id'>utc_time</span>
773
- <span class='rubyid_ua identifier id'>ua</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_respond_to? fid id'>respond_to?</span><span class='lparen token'>(</span><span class='symbol val'>:utc</span><span class='rparen token'>)</span> <span class='question op'>?</span> <span class='rubyid_self self kw'>self</span> <span class='colon op'>:</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_to_datetime identifier id'>to_datetime</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_utc identifier id'>utc</span>
774
- <span class='colon3 op'>::</span><span class='rubyid_Time constant id'>Time</span><span class='dot token'>.</span><span class='rubyid_utc identifier id'>utc</span><span class='lparen token'>(</span><span class='rubyid_ua identifier id'>ua</span><span class='dot token'>.</span><span class='rubyid_year identifier id'>year</span><span class='comma token'>,</span> <span class='rubyid_ua identifier id'>ua</span><span class='dot token'>.</span><span class='rubyid_month identifier id'>month</span><span class='comma token'>,</span> <span class='rubyid_ua identifier id'>ua</span><span class='dot token'>.</span><span class='rubyid_day identifier id'>day</span><span class='comma token'>,</span> <span class='rubyid_ua identifier id'>ua</span><span class='dot token'>.</span><span class='rubyid_hour identifier id'>hour</span><span class='comma token'>,</span> <span class='rubyid_ua identifier id'>ua</span><span class='dot token'>.</span><span class='rubyid_min identifier id'>min</span><span class='comma token'>,</span> <span class='rubyid_ua identifier id'>ua</span><span class='dot token'>.</span><span class='rubyid_sec identifier id'>sec</span><span class='rparen token'>)</span>
775
- <span class='rubyid_end end kw'>end</span>
776
- </pre>
719
+ <span class='kw'>def</span> <span class='id identifier rubyid_utc_time'>utc_time</span>
720
+ <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>
721
+ <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>
722
+ <span class='kw'>end</span></pre>
777
723
  </td>
778
724
  </tr>
779
725
  </table>
@@ -784,9 +730,9 @@
784
730
  </div>
785
731
 
786
732
  <div id="footer">
787
- Generated on Wed Jan 16 10:02:57 2013 by
733
+ Generated on Mon Jan 28 20:23:46 2013 by
788
734
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
789
- 0.8.2.1 (ruby-1.8.7).
735
+ 0.8.3 (ruby-1.9.3).
790
736
  </div>
791
737
 
792
738
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Lazier::DateTime::ClassMethods
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
 
@@ -462,17 +462,16 @@
462
462
  <pre class="lines">
463
463
 
464
464
 
465
- 151
466
- 152
467
- 153</pre>
465
+ 140
466
+ 141
467
+ 142</pre>
468
468
  </td>
469
469
  <td>
470
- <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 151</span>
470
+ <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 140</span>
471
471
 
472
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_custom_format identifier id'>custom_format</span><span class='lparen token'>(</span><span class='rubyid_key identifier id'>key</span><span class='rparen token'>)</span>
473
- <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='dot token'>.</span><span class='rubyid_settings identifier id'>settings</span><span class='dot token'>.</span><span class='rubyid_date_formats identifier id'>date_formats</span><span class='dot token'>.</span><span class='rubyid_fetch identifier id'>fetch</span><span class='lparen token'>(</span><span class='rubyid_key identifier id'>key</span><span class='dot token'>.</span><span class='rubyid_to_sym identifier id'>to_sym</span><span class='comma token'>,</span> <span class='rubyid_key identifier id'>key</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_ensure_string identifier id'>ensure_string</span>
474
- <span class='rubyid_end end kw'>end</span>
475
- </pre>
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
+ <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>
474
+ <span class='kw'>end</span></pre>
476
475
  </td>
477
476
  </tr>
478
477
  </table>
@@ -559,14 +558,13 @@
559
558
  <td>
560
559
  <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 19</span>
561
560
 
562
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_days identifier id'>days</span><span class='lparen token'>(</span><span class='rubyid_short identifier id'>short</span> <span class='assign token'>=</span> <span class='rubyid_true true kw'>true</span><span class='rparen token'>)</span>
563
- <span class='rubyid_days identifier id'>days</span> <span class='assign token'>=</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='dot token'>.</span><span class='rubyid_settings identifier id'>settings</span><span class='dot token'>.</span><span class='rubyid_date_names identifier id'>date_names</span><span class='lbrack token'>[</span><span class='rubyid_short identifier id'>short</span> <span class='integer val'>? </span><span class='symbol val'>:short_days</span> <span class='colon op'>:</span> <span class='symbol val'>:long_days</span><span class='rbrack token'>]</span>
564
- <span class='lparen token'>(</span><span class='float val'>1</span><span class='dot2 op'>..</span><span class='integer val'>7</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_to_a identifier id'>to_a</span><span class='dot token'>.</span><span class='rubyid_collect identifier id'>collect</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='rubyid_i identifier id'>i</span><span class='bitor op'>|</span>
565
- <span class='lbrace token'>{</span><span class='symbol val'>:value</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_i identifier id'>i</span><span class='dot token'>.</span><span class='rubyid_to_s identifier id'>to_s</span><span class='comma token'>,</span> <span class='symbol val'>:label=</span><span class='gt op'>&gt;</span> <span class='rubyid_days identifier id'>days</span><span class='lbrack token'>[</span><span class='rubyid_i identifier id'>i</span> <span class='minus op'>-</span> <span class='integer val'>1</span><span class='rbrack token'>]</span><span class='rbrace token'>}</span>
566
- <span class='rbrace token'>}</span>
561
+ <span class='kw'>def</span> <span class='id identifier rubyid_days'>days</span><span class='lparen'>(</span><span class='id identifier rubyid_short'>short</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
562
+ <span class='id identifier rubyid_days'>days</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><span class='lbracket'>[</span><span class='id identifier rubyid_short'>short</span> <span class='op'>?</span> <span class='symbol'>:short_days</span> <span class='op'>:</span> <span class='symbol'>:long_days</span><span class='rbracket'>]</span>
563
+ <span class='lparen'>(</span><span class='int'>1</span><span class='op'>..</span><span class='int'>7</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</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_i'>i</span><span class='op'>|</span>
564
+ <span class='lbrace'>{</span><span class='label'>value:</span> <span class='id identifier rubyid_i'>i</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='comma'>,</span> <span class='label'>label:</span> <span class='id identifier rubyid_days'>days</span><span class='lbracket'>[</span><span class='id identifier rubyid_i'>i</span> <span class='op'>-</span> <span class='int'>1</span><span class='rbracket'>]</span><span class='rbrace'>}</span>
565
+ <span class='rbrace'>}</span>
567
566
 
568
- <span class='rubyid_end end kw'>end</span>
569
- </pre>
567
+ <span class='kw'>end</span></pre>
570
568
  </td>
571
569
  </tr>
572
570
  </table>
@@ -651,44 +649,21 @@
651
649
  130
652
650
  131
653
651
  132
654
- 133
655
- 134
656
- 135
657
- 136
658
- 137
659
- 138
660
- 139
661
- 140
662
- 141
663
- 142
664
- 143
665
- 144</pre>
652
+ 133</pre>
666
653
  </td>
667
654
  <td>
668
655
  <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 124</span>
669
656
 
670
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_easter identifier id'>easter</span><span class='lparen token'>(</span><span class='rubyid_year identifier id'>year</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
671
- <span class='rubyid_year identifier id'>year</span> <span class='assign token'>=</span> <span class='colon3 op'>::</span><span class='rubyid_Date constant id'>Date</span><span class='dot token'>.</span><span class='rubyid_today identifier id'>today</span><span class='dot token'>.</span><span class='rubyid_year identifier id'>year</span> <span class='rubyid_if if_mod kw'>if</span> <span class='notop op'>!</span><span class='rubyid_year identifier id'>year</span><span class='dot token'>.</span><span class='rubyid_is_integer? fid id'>is_integer?</span>
672
-
673
- <span class='comment val'># Compute using Anonymouse Gregorian Algorithm: http://en.wikipedia.org/wiki/Computus#Anonymous_Gregorian_algorithm</span>
674
- <span class='rubyid_a identifier id'>a</span> <span class='assign token'>=</span> <span class='rubyid_year identifier id'>year</span> <span class='mod op'>%</span> <span class='integer val'>19</span>
675
- <span class='rubyid_b identifier id'>b</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='rubyid_year identifier id'>year</span> <span class='div op'>/</span> <span class='float val'>100.0</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_floor identifier id'>floor</span>
676
- <span class='rubyid_c identifier id'>c</span> <span class='assign token'>=</span> <span class='rubyid_year identifier id'>year</span> <span class='mod op'>%</span> <span class='integer val'>100</span>
677
- <span class='rubyid_d identifier id'>d</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='rubyid_b identifier id'>b</span> <span class='div op'>/</span> <span class='float val'>4.0</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_floor identifier id'>floor</span>
678
- <span class='rubyid_e identifier id'>e</span> <span class='assign token'>=</span> <span class='rubyid_b identifier id'>b</span> <span class='mod op'>%</span> <span class='integer val'>4</span>
679
- <span class='rubyid_f identifier id'>f</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='lparen token'>(</span><span class='rubyid_b identifier id'>b</span> <span class='plus op'>+</span> <span class='integer val'>8</span><span class='rparen token'>)</span> <span class='div op'>/</span> <span class='float val'>25.0</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_floor identifier id'>floor</span>
680
- <span class='rubyid_g identifier id'>g</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='lparen token'>(</span><span class='rubyid_b identifier id'>b</span> <span class='minus op'>-</span> <span class='rubyid_f identifier id'>f</span> <span class='plus op'>+</span> <span class='integer val'>1</span><span class='rparen token'>)</span> <span class='div op'>/</span> <span class='float val'>3.0</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_floor identifier id'>floor</span>
681
- <span class='rubyid_h identifier id'>h</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='lparen token'>(</span><span class='integer val'>19</span> <span class='mult op'>*</span> <span class='rubyid_a identifier id'>a</span><span class='rparen token'>)</span> <span class='plus op'>+</span> <span class='rubyid_b identifier id'>b</span> <span class='minus op'>-</span> <span class='rubyid_d identifier id'>d</span> <span class='minus op'>-</span> <span class='rubyid_g identifier id'>g</span> <span class='plus op'>+</span> <span class='integer val'>15</span><span class='rparen token'>)</span> <span class='mod op'>%</span> <span class='integer val'>30</span>
682
- <span class='rubyid_i identifier id'>i</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='rubyid_c identifier id'>c</span> <span class='div op'>/</span> <span class='float val'>4.0</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_floor identifier id'>floor</span>
683
- <span class='rubyid_k identifier id'>k</span> <span class='assign token'>=</span> <span class='rubyid_c identifier id'>c</span> <span class='mod op'>%</span> <span class='integer val'>4</span>
684
- <span class='rubyid_l identifier id'>l</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='integer val'>32</span> <span class='plus op'>+</span> <span class='lparen token'>(</span><span class='integer val'>2</span> <span class='mult op'>*</span> <span class='rubyid_e identifier id'>e</span><span class='rparen token'>)</span> <span class='plus op'>+</span> <span class='lparen token'>(</span><span class='integer val'>2</span> <span class='mult op'>*</span> <span class='rubyid_i identifier id'>i</span><span class='rparen token'>)</span> <span class='minus op'>-</span> <span class='rubyid_h identifier id'>h</span> <span class='minus op'>-</span> <span class='rubyid_k identifier id'>k</span><span class='rparen token'>)</span> <span class='mod op'>%</span> <span class='integer val'>7</span>
685
- <span class='rubyid_m identifier id'>m</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='lparen token'>(</span><span class='rubyid_a identifier id'>a</span> <span class='plus op'>+</span> <span class='lparen token'>(</span><span class='integer val'>11</span> <span class='mult op'>*</span> <span class='rubyid_h identifier id'>h</span><span class='rparen token'>)</span> <span class='plus op'>+</span> <span class='lparen token'>(</span><span class='integer val'>22</span> <span class='mult op'>*</span> <span class='rubyid_l identifier id'>l</span><span class='rparen token'>)</span><span class='rparen token'>)</span> <span class='div op'>/</span> <span class='float val'>451.0</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_floor identifier id'>floor</span>
686
-
687
- <span class='rubyid_day identifier id'>day</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='lparen token'>(</span><span class='rubyid_h identifier id'>h</span> <span class='plus op'>+</span> <span class='rubyid_l identifier id'>l</span> <span class='minus op'>-</span> <span class='lparen token'>(</span><span class='integer val'>7</span> <span class='mult op'>*</span> <span class='rubyid_m identifier id'>m</span><span class='rparen token'>)</span> <span class='plus op'>+</span> <span class='integer val'>114</span><span class='rparen token'>)</span> <span class='mod op'>%</span> <span class='integer val'>31</span><span class='rparen token'>)</span> <span class='plus op'>+</span> <span class='integer val'>1</span>
688
- <span class='rubyid_month identifier id'>month</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='lparen token'>(</span><span class='rubyid_h identifier id'>h</span> <span class='plus op'>+</span> <span class='rubyid_l identifier id'>l</span> <span class='minus op'>-</span> <span class='lparen token'>(</span><span class='integer val'>7</span> <span class='mult op'>*</span> <span class='rubyid_m identifier id'>m</span><span class='rparen token'>)</span> <span class='plus op'>+</span> <span class='integer val'>114</span><span class='rparen token'>)</span> <span class='div op'>/</span> <span class='float val'>31.0</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_floor identifier id'>floor</span>
689
- <span class='colon3 op'>::</span><span class='rubyid_Date constant id'>Date</span><span class='dot token'>.</span><span class='rubyid_civil identifier id'>civil</span><span class='lparen token'>(</span><span class='rubyid_year identifier id'>year</span><span class='comma token'>,</span> <span class='rubyid_month identifier id'>month</span><span class='comma token'>,</span> <span class='rubyid_day identifier id'>day</span><span class='rparen token'>)</span>
690
- <span class='rubyid_end end kw'>end</span>
691
- </pre>
657
+ <span class='kw'>def</span> <span class='id identifier rubyid_easter'>easter</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
658
+ <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
+
660
+ <span class='comment'># Compute using Anonymouse Gregorian Algorithm: http://en.wikipedia.org/wiki/Computus#Anonymous_Gregorian_algorithm
661
+ </span> <span class='id identifier rubyid_a'>a</span><span class='comma'>,</span> <span class='id identifier rubyid_b'>b</span><span class='comma'>,</span> <span class='id identifier rubyid_c'>c</span> <span class='op'>=</span> <span class='id identifier rubyid_easter_independent'>easter_independent</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span>
662
+ <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_e'>e</span><span class='comma'>,</span> <span class='id identifier rubyid_i'>i</span><span class='comma'>,</span> <span class='id identifier rubyid_k'>k</span> <span class='op'>=</span> <span class='id identifier rubyid_easter_dependent'>easter_dependent</span><span class='lparen'>(</span><span class='id identifier rubyid_b'>b</span><span class='comma'>,</span> <span class='id identifier rubyid_c'>c</span><span class='rparen'>)</span>
663
+ <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_summarize'>easter_summarize</span><span class='lparen'>(</span><span class='id identifier rubyid_easter_finalize'>easter_finalize</span><span class='lparen'>(</span><span class='id identifier rubyid_a'>a</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_e'>e</span><span class='comma'>,</span> <span class='id identifier rubyid_i'>i</span><span class='comma'>,</span> <span class='id identifier rubyid_k'>k</span><span class='rparen'>)</span><span class='rparen'>)</span>
664
+
665
+ <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
+ <span class='kw'>end</span></pre>
692
667
  </td>
693
668
  </tr>
694
669
  </table>
@@ -781,10 +756,9 @@
781
756
  <td>
782
757
  <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 83</span>
783
758
 
784
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_find_timezone identifier id'>find_timezone</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span> <span class='assign token'>=</span> <span class='rubyid_true true kw'>true</span><span class='comma token'>,</span> <span class='rubyid_dst_label identifier id'>dst_label</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
785
- <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_find identifier id'>find</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='rubyid_dst_label identifier id'>dst_label</span><span class='rparen token'>)</span>
786
- <span class='rubyid_end end kw'>end</span>
787
- </pre>
759
+ <span class='kw'>def</span> <span class='id identifier rubyid_find_timezone'>find_timezone</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_dst_label'>dst_label</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
760
+ <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_find'>find</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_dst_label'>dst_label</span><span class='rparen'>)</span>
761
+ <span class='kw'>end</span></pre>
788
762
  </td>
789
763
  </tr>
790
764
  </table>
@@ -875,37 +849,36 @@
875
849
  <pre class="lines">
876
850
 
877
851
 
852
+ 150
853
+ 151
854
+ 152
855
+ 153
856
+ 154
857
+ 155
858
+ 156
859
+ 157
860
+ 158
861
+ 159
862
+ 160
878
863
  161
879
- 162
880
- 163
881
- 164
882
- 165
883
- 166
884
- 167
885
- 168
886
- 169
887
- 170
888
- 171
889
- 172
890
- 173</pre>
864
+ 162</pre>
891
865
  </td>
892
866
  <td>
893
- <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 161</span>
867
+ <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 150</span>
894
868
 
895
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_is_valid? fid id'>is_valid?</span><span class='lparen token'>(</span><span class='rubyid_value identifier id'>value</span><span class='comma token'>,</span> <span class='rubyid_format identifier id'>format</span> <span class='assign token'>=</span> <span class='string val'>&quot;%F %T&quot;</span><span class='rparen token'>)</span>
896
- <span class='rubyid_rv identifier id'>rv</span> <span class='assign token'>=</span> <span class='rubyid_true true kw'>true</span>
869
+ <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'>&quot;</span><span class='tstring_content'>%F %T</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
870
+ <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='kw'>true</span>
897
871
 
898
- <span class='rubyid_format identifier id'>format</span> <span class='assign token'>=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_custom_format identifier id'>custom_format</span><span class='lparen token'>(</span><span class='rubyid_format identifier id'>format</span><span class='rparen token'>)</span>
872
+ <span class='id identifier rubyid_format'>format</span> <span class='op'>=</span> <span class='kw'>self</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>
899
873
 
900
- <span class='rubyid_begin begin kw'>begin</span>
901
- <span class='colon3 op'>::</span><span class='rubyid_DateTime constant id'>DateTime</span><span class='dot token'>.</span><span class='rubyid_strptime identifier id'>strptime</span><span class='lparen token'>(</span><span class='rubyid_value identifier id'>value</span><span class='dot token'>.</span><span class='rubyid_ensure_string identifier id'>ensure_string</span><span class='comma token'>,</span> <span class='rubyid_format identifier id'>format</span><span class='rparen token'>)</span>
902
- <span class='rubyid_rescue rescue kw'>rescue</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_e identifier id'>e</span>
903
- <span class='rubyid_rv identifier id'>rv</span> <span class='assign token'>=</span> <span class='rubyid_false false kw'>false</span>
904
- <span class='rubyid_end end kw'>end</span>
874
+ <span class='kw'>begin</span>
875
+ <span class='op'>::</span><span class='const'>DateTime</span><span class='period'>.</span><span class='id identifier rubyid_strptime'>strptime</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span><span class='comma'>,</span> <span class='id identifier rubyid_format'>format</span><span class='rparen'>)</span>
876
+ <span class='kw'>rescue</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_e'>e</span>
877
+ <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='kw'>false</span>
878
+ <span class='kw'>end</span>
905
879
 
906
- <span class='rubyid_rv identifier id'>rv</span>
907
- <span class='rubyid_end end kw'>end</span>
908
- </pre>
880
+ <span class='id identifier rubyid_rv'>rv</span>
881
+ <span class='kw'>end</span></pre>
909
882
  </td>
910
883
  </tr>
911
884
  </table>
@@ -998,10 +971,9 @@
998
971
  <td>
999
972
  <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 74</span>
1000
973
 
1001
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_list_timezones identifier id'>list_timezones</span><span class='lparen token'>(</span><span class='rubyid_with_dst identifier id'>with_dst</span> <span class='assign token'>=</span> <span class='rubyid_true true kw'>true</span><span class='comma token'>,</span> <span class='rubyid_dst_label identifier id'>dst_label</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
1002
- <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_list_all identifier id'>list_all</span><span class='lparen token'>(</span><span class='rubyid_with_dst identifier id'>with_dst</span><span class='comma token'>,</span> <span class='rubyid_dst_label identifier id'>dst_label</span><span class='rparen token'>)</span>
1003
- <span class='rubyid_end end kw'>end</span>
1004
- </pre>
974
+ <span class='kw'>def</span> <span class='id identifier rubyid_list_timezones'>list_timezones</span><span class='lparen'>(</span><span class='id identifier rubyid_with_dst'>with_dst</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_dst_label'>dst_label</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
975
+ <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_list_all'>list_all</span><span class='lparen'>(</span><span class='id identifier rubyid_with_dst'>with_dst</span><span class='comma'>,</span> <span class='id identifier rubyid_dst_label'>dst_label</span><span class='rparen'>)</span>
976
+ <span class='kw'>end</span></pre>
1005
977
  </td>
1006
978
  </tr>
1007
979
  </table>
@@ -1087,13 +1059,12 @@
1087
1059
  <td>
1088
1060
  <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 32</span>
1089
1061
 
1090
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_months identifier id'>months</span><span class='lparen token'>(</span><span class='rubyid_short identifier id'>short</span> <span class='assign token'>=</span> <span class='rubyid_true true kw'>true</span><span class='rparen token'>)</span>
1091
- <span class='rubyid_months identifier id'>months</span> <span class='assign token'>=</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='dot token'>.</span><span class='rubyid_settings identifier id'>settings</span><span class='dot token'>.</span><span class='rubyid_date_names identifier id'>date_names</span><span class='lbrack token'>[</span><span class='rubyid_short identifier id'>short</span> <span class='integer val'>? </span><span class='symbol val'>:short_months</span> <span class='colon op'>:</span> <span class='symbol val'>:long_months</span><span class='rbrack token'>]</span>
1092
- <span class='lparen token'>(</span><span class='float val'>1</span><span class='dot2 op'>..</span><span class='integer val'>12</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_collect identifier id'>collect</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='rubyid_i identifier id'>i</span><span class='bitor op'>|</span>
1093
- <span class='lbrace token'>{</span><span class='symbol val'>:value</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_i identifier id'>i</span><span class='dot token'>.</span><span class='rubyid_to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='rubyid_rjust identifier id'>rjust</span><span class='lparen token'>(</span><span class='integer val'>2</span><span class='comma token'>,</span> <span class='string val'>&quot;0&quot;</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='symbol val'>:label=</span><span class='gt op'>&gt;</span> <span class='rubyid_months identifier id'>months</span><span class='dot token'>.</span><span class='rubyid_at identifier id'>at</span><span class='lparen token'>(</span><span class='rubyid_i identifier id'>i</span> <span class='minus op'>-</span> <span class='integer val'>1</span><span class='rparen token'>)</span><span class='rbrace token'>}</span>
1094
- <span class='rbrace token'>}</span>
1095
- <span class='rubyid_end end kw'>end</span>
1096
- </pre>
1062
+ <span class='kw'>def</span> <span class='id identifier rubyid_months'>months</span><span class='lparen'>(</span><span class='id identifier rubyid_short'>short</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
1063
+ <span class='id identifier rubyid_months'>months</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><span class='lbracket'>[</span><span class='id identifier rubyid_short'>short</span> <span class='op'>?</span> <span class='symbol'>:short_months</span> <span class='op'>:</span> <span class='symbol'>:long_months</span><span class='rbracket'>]</span>
1064
+ <span class='lparen'>(</span><span class='int'>1</span><span class='op'>..</span><span class='int'>12</span><span class='rparen'>)</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_i'>i</span><span class='op'>|</span>
1065
+ <span class='lbrace'>{</span><span class='label'>value:</span> <span class='id identifier rubyid_i'>i</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><span class='comma'>,</span> <span class='label'>label:</span> <span class='id identifier rubyid_months'>months</span><span class='period'>.</span><span class='id identifier rubyid_at'>at</span><span class='lparen'>(</span><span class='id identifier rubyid_i'>i</span> <span class='op'>-</span> <span class='int'>1</span><span class='rparen'>)</span><span class='rbrace'>}</span>
1066
+ <span class='rbrace'>}</span>
1067
+ <span class='kw'>end</span></pre>
1097
1068
  </td>
1098
1069
  </tr>
1099
1070
  </table>
@@ -1112,9 +1083,9 @@
1112
1083
  <div class="discussion">
1113
1084
  <p>Returns a string representation of a timezone.</p>
1114
1085
 
1115
- <pre class="code ruby"><code><span class='rubyid_DateTime constant id'>DateTime</span><span class='dot token'>.</span><span class='rubyid_parameterize_zone identifier id'>parameterize_zone</span><span class='lparen token'>(</span><span class='rubyid_ActiveSupport constant id'>ActiveSupport</span><span class='colon2 op'>::</span><span class='rubyid_TimeZone constant id'>TimeZone</span><span class='lbrack token'>[</span><span class='string val'>&quot;Pacific Time (US &amp; Canada)&quot;</span><span class='rbrack token'>]</span><span class='rparen token'>)</span>
1116
- <span class='comment val'># =&gt; &quot;-0800@pacific-time-us-canada&quot;</span>
1117
- </code></pre>
1086
+ <pre class="code ruby"><code><span class='const'>DateTime</span><span class='period'>.</span><span class='id identifier rubyid_parameterize_zone'>parameterize_zone</span><span class='lparen'>(</span><span class='const'>ActiveSupport</span><span class='op'>::</span><span class='const'>TimeZone</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Pacific Time (US &amp; Canada)</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
1087
+ <span class='comment'># =&gt; &quot;-0800@pacific-time-us-canada&quot;
1088
+ </span></code></pre>
1118
1089
 
1119
1090
 
1120
1091
  </div>
@@ -1188,10 +1159,9 @@
1188
1159
  <td>
1189
1160
  <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 96</span>
1190
1161
 
1191
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_parameterize_zone identifier id'>parameterize_zone</span><span class='lparen token'>(</span><span class='rubyid_tz identifier id'>tz</span><span class='comma token'>,</span> <span class='rubyid_with_offset identifier id'>with_offset</span> <span class='assign token'>=</span> <span class='rubyid_true true kw'>true</span><span class='rparen token'>)</span>
1192
- <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='colon2 op'>::</span><span class='rubyid_parameterize_zone identifier id'>parameterize_zone</span><span class='lparen token'>(</span><span class='rubyid_tz identifier id'>tz</span><span class='comma token'>,</span> <span class='rubyid_with_offset identifier id'>with_offset</span><span class='rparen token'>)</span>
1193
- <span class='rubyid_end end kw'>end</span>
1194
- </pre>
1162
+ <span class='kw'>def</span> <span class='id identifier rubyid_parameterize_zone'>parameterize_zone</span><span class='lparen'>(</span><span class='id identifier rubyid_tz'>tz</span><span class='comma'>,</span> <span class='id identifier rubyid_with_offset'>with_offset</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
1163
+ <span class='op'>::</span><span class='const'>ActiveSupport</span><span class='op'>::</span><span class='const'>TimeZone</span><span class='op'>::</span><span class='id identifier rubyid_parameterize_zone'>parameterize_zone</span><span class='lparen'>(</span><span class='id identifier rubyid_tz'>tz</span><span class='comma'>,</span> <span class='id identifier rubyid_with_offset'>with_offset</span><span class='rparen'>)</span>
1164
+ <span class='kw'>end</span></pre>
1195
1165
  </td>
1196
1166
  </tr>
1197
1167
  </table>
@@ -1265,10 +1235,9 @@
1265
1235
  <td>
1266
1236
  <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 115</span>
1267
1237
 
1268
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_rationalize_offset identifier id'>rationalize_offset</span><span class='lparen token'>(</span><span class='rubyid_offset identifier id'>offset</span><span class='rparen token'>)</span>
1269
- <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_rationalize_offset identifier id'>rationalize_offset</span><span class='lparen token'>(</span><span class='rubyid_offset identifier id'>offset</span><span class='rparen token'>)</span>
1270
- <span class='rubyid_end end kw'>end</span>
1271
- </pre>
1238
+ <span class='kw'>def</span> <span class='id identifier rubyid_rationalize_offset'>rationalize_offset</span><span class='lparen'>(</span><span class='id identifier rubyid_offset'>offset</span><span class='rparen'>)</span>
1239
+ <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_rationalize_offset'>rationalize_offset</span><span class='lparen'>(</span><span class='id identifier rubyid_offset'>offset</span><span class='rparen'>)</span>
1240
+ <span class='kw'>end</span></pre>
1272
1241
  </td>
1273
1242
  </tr>
1274
1243
  </table>
@@ -1323,10 +1292,9 @@
1323
1292
  <td>
1324
1293
  <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 65</span>
1325
1294
 
1326
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_timezones identifier id'>timezones</span>
1327
- <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_all identifier id'>all</span>
1328
- <span class='rubyid_end end kw'>end</span>
1329
- </pre>
1295
+ <span class='kw'>def</span> <span class='id identifier rubyid_timezones'>timezones</span>
1296
+ <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_all'>all</span>
1297
+ <span class='kw'>end</span></pre>
1330
1298
  </td>
1331
1299
  </tr>
1332
1300
  </table>
@@ -1441,10 +1409,9 @@
1441
1409
  <td>
1442
1410
  <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 107</span>
1443
1411
 
1444
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_unparameterize_zone identifier id'>unparameterize_zone</span><span class='lparen token'>(</span><span class='rubyid_tz identifier id'>tz</span><span class='comma token'>,</span> <span class='rubyid_as_string identifier id'>as_string</span> <span class='assign token'>=</span> <span class='rubyid_false false kw'>false</span><span class='comma token'>,</span> <span class='rubyid_dst_label identifier id'>dst_label</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
1445
- <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='colon2 op'>::</span><span class='rubyid_unparameterize_zone identifier id'>unparameterize_zone</span><span class='lparen token'>(</span><span class='rubyid_tz identifier id'>tz</span><span class='comma token'>,</span> <span class='rubyid_as_string identifier id'>as_string</span><span class='comma token'>,</span> <span class='rubyid_dst_label identifier id'>dst_label</span><span class='rparen token'>)</span>
1446
- <span class='rubyid_end end kw'>end</span>
1447
- </pre>
1412
+ <span class='kw'>def</span> <span class='id identifier rubyid_unparameterize_zone'>unparameterize_zone</span><span class='lparen'>(</span><span class='id identifier rubyid_tz'>tz</span><span class='comma'>,</span> <span class='id identifier rubyid_as_string'>as_string</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_dst_label'>dst_label</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1413
+ <span class='op'>::</span><span class='const'>ActiveSupport</span><span class='op'>::</span><span class='const'>TimeZone</span><span class='op'>::</span><span class='id identifier rubyid_unparameterize_zone'>unparameterize_zone</span><span class='lparen'>(</span><span class='id identifier rubyid_tz'>tz</span><span class='comma'>,</span> <span class='id identifier rubyid_as_string'>as_string</span><span class='comma'>,</span> <span class='id identifier rubyid_dst_label'>dst_label</span><span class='rparen'>)</span>
1414
+ <span class='kw'>end</span></pre>
1448
1415
  </td>
1449
1416
  </tr>
1450
1417
  </table>
@@ -1463,13 +1430,13 @@
1463
1430
  <div class="discussion">
1464
1431
  <p>Returns a range of years.</p>
1465
1432
 
1466
- <pre class="code ruby"><code><span class='rubyid_Date constant id'>Date</span><span class='dot token'>.</span><span class='rubyid_years identifier id'>years</span><span class='lparen token'>(</span><span class='integer val'>3</span><span class='comma token'>,</span> <span class='rubyid_false false kw'>false</span><span class='comma token'>,</span> <span class='integer val'>2010</span><span class='rparen token'>)</span>
1467
- <span class='comment val'># =&gt; [2007, 2008, 2009, 2010]</span>
1468
- </code></pre>
1433
+ <pre class="code ruby"><code><span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_years'>years</span><span class='lparen'>(</span><span class='int'>3</span><span class='comma'>,</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='int'>2010</span><span class='rparen'>)</span>
1434
+ <span class='comment'># =&gt; [2007, 2008, 2009, 2010]
1435
+ </span></code></pre>
1469
1436
 
1470
- <pre class="code ruby"><code><span class='rubyid_Date constant id'>Date</span><span class='dot token'>.</span><span class='rubyid_years identifier id'>years</span><span class='lparen token'>(</span><span class='integer val'>1</span><span class='comma token'>,</span> <span class='rubyid_true true kw'>true</span><span class='comma token'>,</span> <span class='integer val'>2010</span><span class='comma token'>,</span> <span class='rubyid_true true kw'>true</span><span class='rparen token'>)</span>
1471
- <span class='comment val'># =&gt; [{:value=&gt;2009, :label=&gt;2009}, {:value=&gt;2010, :label=&gt;2010}, {:value=&gt;2011, :label=&gt;2011}]</span>
1472
- </code></pre>
1437
+ <pre class="code ruby"><code><span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_years'>years</span><span class='lparen'>(</span><span class='int'>1</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='int'>2010</span><span class='comma'>,</span> <span class='kw'>true</span><span class='rparen'>)</span>
1438
+ <span class='comment'># =&gt; [{:value=&gt;2009, :label=&gt;2009}, {:value=&gt;2010, :label=&gt;2010}, {:value=&gt;2011, :label=&gt;2011}]
1439
+ </span></code></pre>
1473
1440
 
1474
1441
 
1475
1442
  </div>
@@ -1580,11 +1547,10 @@
1580
1547
  <td>
1581
1548
  <pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 57</span>
1582
1549
 
1583
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_years identifier id'>years</span><span class='lparen token'>(</span><span class='rubyid_offset identifier id'>offset</span> <span class='assign token'>=</span> <span class='integer val'>10</span><span class='comma token'>,</span> <span class='rubyid_also_future identifier id'>also_future</span> <span class='assign token'>=</span> <span class='rubyid_true true kw'>true</span><span class='comma token'>,</span> <span class='rubyid_reference identifier id'>reference</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='rubyid_as_objects identifier id'>as_objects</span> <span class='assign token'>=</span> <span class='rubyid_false false kw'>false</span><span class='rparen token'>)</span>
1584
- <span class='rubyid_y identifier id'>y</span> <span class='assign token'>=</span> <span class='rubyid_reference identifier id'>reference</span> <span class='orop op'>||</span> <span class='colon3 op'>::</span><span class='rubyid_Date constant id'>Date</span><span class='dot token'>.</span><span class='rubyid_today identifier id'>today</span><span class='dot token'>.</span><span class='rubyid_year identifier id'>year</span>
1585
- <span class='lparen token'>(</span><span class='rubyid_y identifier id'>y</span> <span class='minus op'>-</span> <span class='rubyid_offset identifier id'>offset</span><span class='dot2 op'>..</span><span class='lparen token'>(</span><span class='rubyid_also_future identifier id'>also_future</span> <span class='integer val'>? </span><span class='rubyid_y identifier id'>y</span> <span class='plus op'>+</span> <span class='rubyid_offset identifier id'>offset</span> <span class='colon op'>:</span> <span class='rubyid_y identifier id'>y</span><span class='rparen token'>)</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_collect identifier id'>collect</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='rubyid_year identifier id'>year</span><span class='bitor op'>|</span> <span class='rubyid_as_objects identifier id'>as_objects</span> <span class='integer val'>? </span><span class='lbrace token'>{</span><span class='symbol val'>:value</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_year identifier id'>year</span><span class='comma token'>,</span> <span class='symbol val'>:label</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_year identifier id'>year</span><span class='rbrace token'>}</span> <span class='colon op'>:</span> <span class='rubyid_year identifier id'>year</span> <span class='rbrace token'>}</span>
1586
- <span class='rubyid_end end kw'>end</span>
1587
- </pre>
1550
+ <span class='kw'>def</span> <span class='id identifier rubyid_years'>years</span><span class='lparen'>(</span><span class='id identifier rubyid_offset'>offset</span> <span class='op'>=</span> <span class='int'>10</span><span class='comma'>,</span> <span class='id identifier rubyid_also_future'>also_future</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_reference'>reference</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_as_objects'>as_objects</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
1551
+ <span class='id identifier rubyid_y'>y</span> <span class='op'>=</span> <span class='id identifier rubyid_reference'>reference</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>
1552
+ <span class='lparen'>(</span><span class='id identifier rubyid_y'>y</span> <span class='op'>-</span> <span class='id identifier rubyid_offset'>offset</span><span class='op'>..</span><span class='lparen'>(</span><span class='id identifier rubyid_also_future'>also_future</span> <span class='op'>?</span> <span class='id identifier rubyid_y'>y</span> <span class='op'>+</span> <span class='id identifier rubyid_offset'>offset</span> <span class='op'>:</span> <span class='id identifier rubyid_y'>y</span><span class='rparen'>)</span><span class='rparen'>)</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_year'>year</span><span class='op'>|</span> <span class='id identifier rubyid_as_objects'>as_objects</span> <span class='op'>?</span> <span class='lbrace'>{</span><span class='label'>value:</span> <span class='id identifier rubyid_year'>year</span><span class='comma'>,</span> <span class='label'>label:</span> <span class='id identifier rubyid_year'>year</span><span class='rbrace'>}</span> <span class='op'>:</span> <span class='id identifier rubyid_year'>year</span> <span class='rbrace'>}</span>
1553
+ <span class='kw'>end</span></pre>
1588
1554
  </td>
1589
1555
  </tr>
1590
1556
  </table>
@@ -1595,9 +1561,9 @@
1595
1561
  </div>
1596
1562
 
1597
1563
  <div id="footer">
1598
- Generated on Wed Jan 16 10:02:57 2013 by
1564
+ Generated on Mon Jan 28 20:23:46 2013 by
1599
1565
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1600
- 0.8.2.1 (ruby-1.8.7).
1566
+ 0.8.3 (ruby-1.9.3).
1601
1567
  </div>
1602
1568
 
1603
1569
  </body>