cowtech-extensions 2.7.1 → 2.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/.gitignore +1 -0
  2. data/.travis.yml +4 -2
  3. data/README.md +4 -1
  4. data/doc/Cowtech.html +2 -2
  5. data/doc/Cowtech/Extensions.html +96 -93
  6. data/doc/Cowtech/Extensions/Boolean.html +10 -8
  7. data/doc/Cowtech/Extensions/DateTime.html +58 -52
  8. data/doc/Cowtech/Extensions/DateTime/ClassMethods.html +91 -79
  9. data/doc/Cowtech/Extensions/Exceptions.html +2 -2
  10. data/doc/Cowtech/Extensions/Exceptions/Dump.html +2 -2
  11. data/doc/Cowtech/Extensions/Hash.html +20 -18
  12. data/doc/Cowtech/Extensions/Math.html +2 -2
  13. data/doc/Cowtech/Extensions/Math/ClassMethods.html +24 -22
  14. data/doc/Cowtech/Extensions/Object.html +95 -81
  15. data/doc/Cowtech/Extensions/Pathname.html +11 -10
  16. data/doc/Cowtech/Extensions/Settings.html +80 -70
  17. data/doc/Cowtech/Extensions/String.html +26 -22
  18. data/doc/Cowtech/Extensions/TimeZone.html +98 -86
  19. data/doc/Cowtech/Extensions/TimeZone/ClassMethods.html +79 -72
  20. data/doc/Cowtech/Extensions/Version.html +11 -7
  21. data/doc/_index.html +2 -2
  22. data/doc/file.README.html +9 -6
  23. data/doc/index.html +9 -6
  24. data/doc/top-level-namespace.html +2 -2
  25. data/lib/cowtech-extensions.rb +2 -1
  26. data/lib/cowtech-extensions/version.rb +2 -2
  27. data/spec/cowtech-extensions/boolean_spec.rb +9 -4
  28. data/spec/cowtech-extensions/datetime_spec.rb +106 -100
  29. data/spec/cowtech-extensions/hash_spec.rb +4 -4
  30. data/spec/cowtech-extensions/math_spec.rb +8 -8
  31. data/spec/cowtech-extensions/object_spec.rb +115 -103
  32. data/spec/cowtech-extensions/pathname_spec.rb +3 -1
  33. data/spec/cowtech-extensions/settings_spec.rb +30 -30
  34. data/spec/cowtech-extensions/string_spec.rb +13 -7
  35. data/spec/cowtech-extensions_spec.rb +21 -11
  36. data/spec/spec_helper.rb +7 -1
  37. metadata +4 -4
@@ -159,9 +159,9 @@
159
159
  <div class="discussion">
160
160
  <p>Returns all the components that are included in this path.</p>
161
161
 
162
- <pre class="code ruby"><code><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/usr/bin/ruby</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_components'>components</span>
163
- <span class='comment'># =&gt; [&quot;usr&quot;, &quot;bin&quot;, &quot;ruby&quot;]
164
- </span></code></pre>
162
+ <pre class="code ruby"><code><span class='rubyid_Pathname constant id'>Pathname</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span><span class='string val'>&quot;/usr/bin/ruby&quot;</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_components identifier id'>components</span>
163
+ <span class='comment val'># =&gt; [&quot;usr&quot;, &quot;bin&quot;, &quot;ruby&quot;]</span>
164
+ </code></pre>
165
165
 
166
166
 
167
167
  </div>
@@ -201,11 +201,12 @@
201
201
  <td>
202
202
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/pathname.rb', line 21</span>
203
203
 
204
- <span class='kw'>def</span> <span class='id identifier rubyid_components'>components</span>
205
- <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
206
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_each_filename'>each_filename</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_p'>p</span><span class='op'>|</span> <span class='id identifier rubyid_rv'>rv</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_p'>p</span> <span class='rbrace'>}</span>
207
- <span class='id identifier rubyid_rv'>rv</span>
208
- <span class='kw'>end</span></pre>
204
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_components identifier id'>components</span>
205
+ <span class='rubyid_rv identifier id'>rv</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
206
+ <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_each_filename identifier id'>each_filename</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='rubyid_p identifier id'>p</span><span class='bitor op'>|</span> <span class='rubyid_rv identifier id'>rv</span> <span class='lshft op'>&lt;&lt;</span> <span class='rubyid_p identifier id'>p</span> <span class='rbrace token'>}</span>
207
+ <span class='rubyid_rv identifier id'>rv</span>
208
+ <span class='rubyid_end end kw'>end</span>
209
+ </pre>
209
210
  </td>
210
211
  </tr>
211
212
  </table>
@@ -216,9 +217,9 @@
216
217
  </div>
217
218
 
218
219
  <div id="footer">
219
- Generated on Tue Jul 24 12:12:52 2012 by
220
+ Generated on Sat Jul 28 11:24:54 2012 by
220
221
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
221
- 0.8.2.1 (ruby-1.9.2).
222
+ 0.8.2.1 (ruby-1.8.7).
222
223
  </div>
223
224
 
224
225
  </body>
@@ -431,12 +431,13 @@
431
431
  <td>
432
432
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/settings.rb', line 31</span>
433
433
 
434
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
435
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup_format_number'>setup_format_number</span>
436
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup_boolean_names'>setup_boolean_names</span>
437
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup_date_formats'>setup_date_formats</span>
438
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup_date_names'>setup_date_names</span>
439
- <span class='kw'>end</span></pre>
434
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span>
435
+ <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_setup_format_number identifier id'>setup_format_number</span>
436
+ <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_setup_boolean_names identifier id'>setup_boolean_names</span>
437
+ <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_setup_date_formats identifier id'>setup_date_formats</span>
438
+ <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_setup_date_names identifier id'>setup_date_names</span>
439
+ <span class='rubyid_end end kw'>end</span>
440
+ </pre>
440
441
  </td>
441
442
  </tr>
442
443
  </table>
@@ -481,9 +482,10 @@
481
482
  <td>
482
483
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/settings.rb', line 15</span>
483
484
 
484
- <span class='kw'>def</span> <span class='id identifier rubyid_boolean_names'>boolean_names</span>
485
- <span class='ivar'>@boolean_names</span>
486
- <span class='kw'>end</span></pre>
485
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_boolean_names identifier id'>boolean_names</span>
486
+ <span class='rubyid_@boolean_names ivar id'>@boolean_names</span>
487
+ <span class='rubyid_end end kw'>end</span>
488
+ </pre>
487
489
  </td>
488
490
  </tr>
489
491
  </table>
@@ -523,9 +525,10 @@
523
525
  <td>
524
526
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/settings.rb', line 21</span>
525
527
 
526
- <span class='kw'>def</span> <span class='id identifier rubyid_date_formats'>date_formats</span>
527
- <span class='ivar'>@date_formats</span>
528
- <span class='kw'>end</span></pre>
528
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_date_formats identifier id'>date_formats</span>
529
+ <span class='rubyid_@date_formats ivar id'>@date_formats</span>
530
+ <span class='rubyid_end end kw'>end</span>
531
+ </pre>
529
532
  </td>
530
533
  </tr>
531
534
  </table>
@@ -565,9 +568,10 @@
565
568
  <td>
566
569
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/settings.rb', line 18</span>
567
570
 
568
- <span class='kw'>def</span> <span class='id identifier rubyid_date_names'>date_names</span>
569
- <span class='ivar'>@date_names</span>
570
- <span class='kw'>end</span></pre>
571
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_date_names identifier id'>date_names</span>
572
+ <span class='rubyid_@date_names ivar id'>@date_names</span>
573
+ <span class='rubyid_end end kw'>end</span>
574
+ </pre>
571
575
  </td>
572
576
  </tr>
573
577
  </table>
@@ -607,9 +611,10 @@
607
611
  <td>
608
612
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/settings.rb', line 12</span>
609
613
 
610
- <span class='kw'>def</span> <span class='id identifier rubyid_format_number'>format_number</span>
611
- <span class='ivar'>@format_number</span>
612
- <span class='kw'>end</span></pre>
614
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_format_number identifier id'>format_number</span>
615
+ <span class='rubyid_@format_number ivar id'>@format_number</span>
616
+ <span class='rubyid_end end kw'>end</span>
617
+ </pre>
613
618
  </td>
614
619
  </tr>
615
620
  </table>
@@ -671,9 +676,10 @@
671
676
  <td>
672
677
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/settings.rb', line 26</span>
673
678
 
674
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
675
- <span class='ivar'>@instance</span> <span class='op'>||=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
676
- <span class='kw'>end</span></pre>
679
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_instance identifier id'>instance</span>
680
+ <span class='rubyid_@instance ivar id'>@instance</span> <span class='opasgn op'>||=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span>
681
+ <span class='rubyid_end end kw'>end</span>
682
+ </pre>
677
683
  </td>
678
684
  </tr>
679
685
  </table>
@@ -781,11 +787,12 @@
781
787
  <td>
782
788
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/settings.rb', line 61</span>
783
789
 
784
- <span class='kw'>def</span> <span class='id identifier rubyid_setup_boolean_names'>setup_boolean_names</span><span class='lparen'>(</span><span class='id identifier rubyid_true_name'>true_name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_false_name'>false_name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
785
- <span class='id identifier rubyid_true_name'>true_name</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Yes</span><span class='tstring_end'>&quot;</span></span>
786
- <span class='id identifier rubyid_false_name'>false_name</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>No</span><span class='tstring_end'>&quot;</span></span>
787
- <span class='ivar'>@boolean_names</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='kw'>true</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_true_name'>true_name</span><span class='comma'>,</span> <span class='kw'>false</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_false_name'>false_name</span><span class='rbrace'>}</span>
788
- <span class='kw'>end</span></pre>
790
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_setup_boolean_names identifier id'>setup_boolean_names</span><span class='lparen token'>(</span><span class='rubyid_true_name identifier id'>true_name</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='rubyid_false_name identifier id'>false_name</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
791
+ <span class='rubyid_true_name identifier id'>true_name</span> <span class='opasgn op'>||=</span> <span class='string val'>&quot;Yes&quot;</span>
792
+ <span class='rubyid_false_name identifier id'>false_name</span> <span class='opasgn op'>||=</span> <span class='string val'>&quot;No&quot;</span>
793
+ <span class='rubyid_@boolean_names ivar id'>@boolean_names</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rubyid_true true kw'>true</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_true_name identifier id'>true_name</span><span class='comma token'>,</span> <span class='rubyid_false false kw'>false</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_false_name identifier id'>false_name</span><span class='rbrace token'>}</span>
794
+ <span class='rubyid_end end kw'>end</span>
795
+ </pre>
789
796
  </td>
790
797
  </tr>
791
798
  </table>
@@ -903,27 +910,28 @@
903
910
  <td>
904
911
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/settings.rb', line 73</span>
905
912
 
906
- <span class='kw'>def</span> <span class='id identifier rubyid_setup_date_formats'>setup_date_formats</span><span class='lparen'>(</span><span class='id identifier rubyid_formats'>formats</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_replace'>replace</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
907
- <span class='id identifier rubyid_formats'>formats</span> <span class='op'>=</span> <span class='lbrace'>{</span>
908
- <span class='symbol'>:ct_date</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>%Y-%m-%d</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
909
- <span class='symbol'>:ct_time</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>%H:%M:%S</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
910
- <span class='symbol'>:ct_date_time</span> <span class='op'>=&gt;</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='comma'>,</span>
911
- <span class='symbol'>:ct_iso_8601</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>%FT%T%z</span><span class='tstring_end'>&quot;</span></span>
912
- <span class='rbrace'>}</span> <span class='kw'>if</span> <span class='id identifier rubyid_formats'>formats</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
913
-
914
- <span class='kw'>if</span> <span class='id identifier rubyid_formats'>formats</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Hash</span><span class='rparen'>)</span> <span class='kw'>then</span>
915
- <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_replace'>replace</span> <span class='kw'>then</span>
916
- <span class='ivar'>@date_formats</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
917
- <span class='ivar'>@date_formats</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span><span class='id identifier rubyid_formats'>formats</span><span class='rparen'>)</span>
918
- <span class='kw'>else</span>
919
- <span class='ivar'>@date_formats</span> <span class='op'>=</span> <span class='id identifier rubyid_formats'>formats</span>
920
- <span class='kw'>end</span>
921
-
922
- <span class='ivar'>@date_formats</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='op'>::</span><span class='const'>Time</span><span class='op'>::</span><span class='const'>DATE_FORMATS</span><span class='lbracket'>[</span><span class='id identifier rubyid_k'>k</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_v'>v</span> <span class='kw'>end</span>
923
- <span class='kw'>end</span>
924
-
925
- <span class='ivar'>@date_formats</span>
926
- <span class='kw'>end</span></pre>
913
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_setup_date_formats identifier id'>setup_date_formats</span><span class='lparen token'>(</span><span class='rubyid_formats identifier id'>formats</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='rubyid_replace identifier id'>replace</span> <span class='assign token'>=</span> <span class='rubyid_false false kw'>false</span><span class='rparen token'>)</span>
914
+ <span class='rubyid_formats identifier id'>formats</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span>
915
+ <span class='symbol val'>:ct_date</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>&quot;%Y-%m-%d&quot;</span><span class='comma token'>,</span>
916
+ <span class='symbol val'>:ct_time</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>&quot;%H:%M:%S&quot;</span><span class='comma token'>,</span>
917
+ <span class='symbol val'>:ct_date_time</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>&quot;%F %T&quot;</span><span class='comma token'>,</span>
918
+ <span class='symbol val'>:ct_iso_8601</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>&quot;%FT%T%z&quot;</span>
919
+ <span class='rbrace token'>}</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_formats identifier id'>formats</span><span class='dot token'>.</span><span class='rubyid_blank? fid id'>blank?</span>
920
+
921
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_formats identifier id'>formats</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='colon3 op'>::</span><span class='rubyid_Hash constant id'>Hash</span><span class='rparen token'>)</span> <span class='rubyid_then then kw'>then</span>
922
+ <span class='rubyid_if if kw'>if</span> <span class='notop op'>!</span><span class='rubyid_replace identifier id'>replace</span> <span class='rubyid_then then kw'>then</span>
923
+ <span class='rubyid_@date_formats ivar id'>@date_formats</span> <span class='opasgn op'>||=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
924
+ <span class='rubyid_@date_formats ivar id'>@date_formats</span><span class='dot token'>.</span><span class='rubyid_merge! fid id'>merge!</span><span class='lparen token'>(</span><span class='rubyid_formats identifier id'>formats</span><span class='rparen token'>)</span>
925
+ <span class='rubyid_else else kw'>else</span>
926
+ <span class='rubyid_@date_formats ivar id'>@date_formats</span> <span class='assign token'>=</span> <span class='rubyid_formats identifier id'>formats</span>
927
+ <span class='rubyid_end end kw'>end</span>
928
+
929
+ <span class='rubyid_@date_formats ivar id'>@date_formats</span><span class='dot token'>.</span><span class='rubyid_each_pair identifier id'>each_pair</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_k identifier id'>k</span><span class='comma token'>,</span> <span class='rubyid_v identifier id'>v</span><span class='bitor op'>|</span> <span class='colon3 op'>::</span><span class='rubyid_Time constant id'>Time</span><span class='colon2 op'>::</span><span class='rubyid_DATE_FORMATS constant id'>DATE_FORMATS</span><span class='lbrack token'>[</span><span class='rubyid_k identifier id'>k</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_v identifier id'>v</span> <span class='rubyid_end end kw'>end</span>
930
+ <span class='rubyid_end end kw'>end</span>
931
+
932
+ <span class='rubyid_@date_formats ivar id'>@date_formats</span>
933
+ <span class='rubyid_end end kw'>end</span>
934
+ </pre>
927
935
  </td>
928
936
  </tr>
929
937
  </table>
@@ -1071,19 +1079,20 @@
1071
1079
  <td>
1072
1080
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/settings.rb', line 105</span>
1073
1081
 
1074
- <span class='kw'>def</span> <span class='id identifier rubyid_setup_date_names'>setup_date_names</span><span class='lparen'>(</span><span class='id identifier rubyid_long_months'>long_months</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_short_months'>short_months</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_long_days'>long_days</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_short_days'>short_days</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1075
- <span class='id identifier rubyid_long_months'>long_months</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>January</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>February</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>March</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>April</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>May</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>June</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>July</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>August</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>September</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>October</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>November</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>December</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_long_months'>long_months</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
1076
- <span class='id identifier rubyid_short_months'>short_months</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Jan</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Feb</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Mar</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Apr</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>May</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Jun</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Jul</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Aug</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Sep</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Oct</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Nov</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Dec</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_short_months'>short_months</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
1077
- <span class='id identifier rubyid_long_days'>long_days</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Sunday</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Monday</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Tuesday</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Wednesday</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Thursday</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Friday</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Saturday</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_long_days'>long_days</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
1078
- <span class='id identifier rubyid_short_days'>short_days</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Sun</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Mon</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Tue</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Wed</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Thu</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Fri</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Sat</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_short_days'>short_days</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
1079
-
1080
- <span class='ivar'>@date_names</span> <span class='op'>=</span> <span class='lbrace'>{</span>
1081
- <span class='symbol'>:long_months</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_long_months'>long_months</span><span class='comma'>,</span>
1082
- <span class='symbol'>:short_months</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_short_months'>short_months</span><span class='comma'>,</span>
1083
- <span class='symbol'>:long_days</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_long_days'>long_days</span><span class='comma'>,</span>
1084
- <span class='symbol'>:short_days</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_short_days'>short_days</span>
1085
- <span class='rbrace'>}</span>
1086
- <span class='kw'>end</span></pre>
1082
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_setup_date_names identifier id'>setup_date_names</span><span class='lparen token'>(</span><span class='rubyid_long_months identifier id'>long_months</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='rubyid_short_months identifier id'>short_months</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='rubyid_long_days identifier id'>long_days</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='rubyid_short_days identifier id'>short_days</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
1083
+ <span class='rubyid_long_months identifier id'>long_months</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='string val'>&quot;January&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;February&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;March&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;April&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;May&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;June&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;July&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;August&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;September&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;October&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;November&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;December&quot;</span><span class='rbrack token'>]</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_long_months identifier id'>long_months</span><span class='dot token'>.</span><span class='rubyid_blank? fid id'>blank?</span>
1084
+ <span class='rubyid_short_months identifier id'>short_months</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='string val'>&quot;Jan&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Feb&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Mar&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Apr&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;May&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Jun&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Jul&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Aug&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Sep&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Oct&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Nov&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Dec&quot;</span><span class='rbrack token'>]</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_short_months identifier id'>short_months</span><span class='dot token'>.</span><span class='rubyid_blank? fid id'>blank?</span>
1085
+ <span class='rubyid_long_days identifier id'>long_days</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='string val'>&quot;Sunday&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Monday&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Tuesday&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Wednesday&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Thursday&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Friday&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Saturday&quot;</span><span class='rbrack token'>]</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_long_days identifier id'>long_days</span><span class='dot token'>.</span><span class='rubyid_blank? fid id'>blank?</span>
1086
+ <span class='rubyid_short_days identifier id'>short_days</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='string val'>&quot;Sun&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Mon&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Tue&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Wed&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Thu&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Fri&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;Sat&quot;</span><span class='rbrack token'>]</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_short_days identifier id'>short_days</span><span class='dot token'>.</span><span class='rubyid_blank? fid id'>blank?</span>
1087
+
1088
+ <span class='rubyid_@date_names ivar id'>@date_names</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span>
1089
+ <span class='symbol val'>:long_months</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_long_months identifier id'>long_months</span><span class='comma token'>,</span>
1090
+ <span class='symbol val'>:short_months</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_short_months identifier id'>short_months</span><span class='comma token'>,</span>
1091
+ <span class='symbol val'>:long_days</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_long_days identifier id'>long_days</span><span class='comma token'>,</span>
1092
+ <span class='symbol val'>:short_days</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_short_days identifier id'>short_days</span>
1093
+ <span class='rbrace token'>}</span>
1094
+ <span class='rubyid_end end kw'>end</span>
1095
+ </pre>
1087
1096
  </td>
1088
1097
  </tr>
1089
1098
  </table>
@@ -1222,14 +1231,15 @@
1222
1231
  <td>
1223
1232
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/settings.rb', line 46</span>
1224
1233
 
1225
- <span class='kw'>def</span> <span class='id identifier rubyid_setup_format_number'>setup_format_number</span><span class='lparen'>(</span><span class='id identifier rubyid_prec'>prec</span> <span class='op'>=</span> <span class='int'>2</span><span class='comma'>,</span> <span class='id identifier rubyid_decimal_separator'>decimal_separator</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>.</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_add_string'>add_string</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_k_separator'>k_separator</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>,</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1226
- <span class='ivar'>@format_number</span> <span class='op'>=</span> <span class='lbrace'>{</span>
1227
- <span class='symbol'>:prec</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_prec'>prec</span><span class='comma'>,</span>
1228
- <span class='symbol'>:decimal_separator</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_decimal_separator'>decimal_separator</span><span class='comma'>,</span>
1229
- <span class='symbol'>:add_string</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_add_string'>add_string</span><span class='comma'>,</span>
1230
- <span class='symbol'>:k_separator</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_k_separator'>k_separator</span>
1231
- <span class='rbrace'>}</span>
1232
- <span class='kw'>end</span></pre>
1234
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_setup_format_number identifier id'>setup_format_number</span><span class='lparen token'>(</span><span class='rubyid_prec identifier id'>prec</span> <span class='assign token'>=</span> <span class='integer val'>2</span><span class='comma token'>,</span> <span class='rubyid_decimal_separator identifier id'>decimal_separator</span> <span class='assign token'>=</span> <span class='string val'>&quot;.&quot;</span><span class='comma token'>,</span> <span class='rubyid_add_string identifier id'>add_string</span> <span class='assign token'>=</span> <span class='string val'>&quot;&quot;</span><span class='comma token'>,</span> <span class='rubyid_k_separator identifier id'>k_separator</span> <span class='assign token'>=</span> <span class='string val'>&quot;,&quot;</span><span class='rparen token'>)</span>
1235
+ <span class='rubyid_@format_number ivar id'>@format_number</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span>
1236
+ <span class='symbol val'>:prec</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_prec identifier id'>prec</span><span class='comma token'>,</span>
1237
+ <span class='symbol val'>:decimal_separator</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_decimal_separator identifier id'>decimal_separator</span><span class='comma token'>,</span>
1238
+ <span class='symbol val'>:add_string</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_add_string identifier id'>add_string</span><span class='comma token'>,</span>
1239
+ <span class='symbol val'>:k_separator</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_k_separator identifier id'>k_separator</span>
1240
+ <span class='rbrace token'>}</span>
1241
+ <span class='rubyid_end end kw'>end</span>
1242
+ </pre>
1233
1243
  </td>
1234
1244
  </tr>
1235
1245
  </table>
@@ -1240,9 +1250,9 @@
1240
1250
  </div>
1241
1251
 
1242
1252
  <div id="footer">
1243
- Generated on Tue Jul 24 12:12:52 2012 by
1253
+ Generated on Sat Jul 28 11:24:56 2012 by
1244
1254
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1245
- 0.8.2.1 (ruby-1.9.2).
1255
+ 0.8.2.1 (ruby-1.8.7).
1246
1256
  </div>
1247
1257
 
1248
1258
  </body>
@@ -228,9 +228,9 @@
228
228
  <div class="discussion">
229
229
  <p>Removes accents from the string, normalizing to the normal letter.</p>
230
230
 
231
- <pre class="code ruby"><code><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>èòàù</span><span class='tstring_end'>&quot;</span></span><span class='period'>.</span><span class='id identifier rubyid_remove_accents'>remove_accents</span>
232
- <span class='comment'># =&gt; &quot;eoau&quot;
233
- </span></code></pre>
231
+ <pre class="code ruby"><code><span class='string val'>&quot;èòàù&quot;</span><span class='dot token'>.</span><span class='rubyid_remove_accents identifier id'>remove_accents</span>
232
+ <span class='comment val'># =&gt; &quot;eoau&quot;</span>
233
+ </code></pre>
234
234
 
235
235
 
236
236
  </div>
@@ -270,11 +270,12 @@
270
270
  <td>
271
271
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/string.rb', line 21</span>
272
272
 
273
- <span class='kw'>def</span> <span class='id identifier rubyid_remove_accents'>remove_accents</span>
274
- <span class='id identifier rubyid_silence_warnings'>silence_warnings</span> <span class='lbrace'>{</span>
275
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_mb_chars'>mb_chars</span><span class='period'>.</span><span class='id identifier rubyid_normalize'>normalize</span><span class='lparen'>(</span><span class='symbol'>:kd</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>[^\x00-\x7F]</span><span class='regexp_end'>/n</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
276
- <span class='rbrace'>}</span>
277
- <span class='kw'>end</span></pre>
273
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_remove_accents identifier id'>remove_accents</span>
274
+ <span class='rubyid_silence_warnings identifier id'>silence_warnings</span> <span class='lbrace token'>{</span>
275
+ <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_mb_chars identifier id'>mb_chars</span><span class='dot token'>.</span><span class='rubyid_normalize identifier id'>normalize</span><span class='lparen token'>(</span><span class='symbol val'>:kd</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_gsub identifier id'>gsub</span><span class='lparen token'>(</span><span class='regexp val'>/[^\x00-\x7F]/n</span><span class='comma token'>,</span> <span class='string val'>&quot;&quot;</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_to_s identifier id'>to_s</span>
276
+ <span class='rbrace token'>}</span>
277
+ <span class='rubyid_end end kw'>end</span>
278
+ </pre>
278
279
  </td>
279
280
  </tr>
280
281
  </table>
@@ -329,9 +330,10 @@
329
330
  <td>
330
331
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/string.rb', line 44</span>
331
332
 
332
- <span class='kw'>def</span> <span class='id identifier rubyid_replace_ampersands'>replace_ampersands</span>
333
- <span class='kw'>self</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'>&amp;amp;(\S+);</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>&amp;\\1;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
334
- <span class='kw'>end</span></pre>
333
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_replace_ampersands identifier id'>replace_ampersands</span>
334
+ <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_gsub identifier id'>gsub</span><span class='lparen token'>(</span><span class='regexp val'>/&amp;amp;(\S+);/</span><span class='comma token'>,</span> <span class='string val'>&quot;&amp;\\1;&quot;</span><span class='rparen token'>)</span>
335
+ <span class='rubyid_end end kw'>end</span>
336
+ </pre>
335
337
  </td>
336
338
  </tr>
337
339
  </table>
@@ -352,9 +354,9 @@
352
354
 
353
355
  <p>The string is downcased and spaces are substituted with <code>-</code>.</p>
354
356
 
355
- <pre class="code ruby"><code><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>ABC cde</span><span class='tstring_end'>&quot;</span></span><span class='period'>.</span><span class='id identifier rubyid_untitleize'>untitleize</span>
356
- <span class='comment'># =&gt; &quot;abc-cde&quot;
357
- </span></code></pre>
357
+ <pre class="code ruby"><code><span class='string val'>&quot;ABC cde&quot;</span><span class='dot token'>.</span><span class='rubyid_untitleize identifier id'>untitleize</span>
358
+ <span class='comment val'># =&gt; &quot;abc-cde&quot;</span>
359
+ </code></pre>
358
360
 
359
361
 
360
362
  </div>
@@ -392,9 +394,10 @@
392
394
  <td>
393
395
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/string.rb', line 37</span>
394
396
 
395
- <span class='kw'>def</span> <span class='id identifier rubyid_untitleize'>untitleize</span>
396
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'> </span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>-</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
397
- <span class='kw'>end</span></pre>
397
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_untitleize identifier id'>untitleize</span>
398
+ <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_downcase identifier id'>downcase</span><span class='dot token'>.</span><span class='rubyid_gsub identifier id'>gsub</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>
399
+ <span class='rubyid_end end kw'>end</span>
400
+ </pre>
398
401
  </td>
399
402
  </tr>
400
403
  </table>
@@ -449,9 +452,10 @@
449
452
  <td>
450
453
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/string.rb', line 51</span>
451
454
 
452
- <span class='kw'>def</span> <span class='id identifier rubyid_value'>value</span>
453
- <span class='kw'>self</span>
454
- <span class='kw'>end</span></pre>
455
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_value identifier id'>value</span>
456
+ <span class='rubyid_self self kw'>self</span>
457
+ <span class='rubyid_end end kw'>end</span>
458
+ </pre>
455
459
  </td>
456
460
  </tr>
457
461
  </table>
@@ -462,9 +466,9 @@
462
466
  </div>
463
467
 
464
468
  <div id="footer">
465
- Generated on Tue Jul 24 12:12:52 2012 by
469
+ Generated on Sat Jul 28 11:24:53 2012 by
466
470
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
467
- 0.8.2.1 (ruby-1.9.2).
471
+ 0.8.2.1 (ruby-1.8.7).
468
472
  </div>
469
473
 
470
474
  </body>
@@ -500,30 +500,31 @@
500
500
  <td>
501
501
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/datetime.rb', line 389</span>
502
502
 
503
- <span class='kw'>def</span> <span class='id identifier rubyid_aliases'>aliases</span><span class='lparen'>(</span><span class='id identifier rubyid_dst_label'>dst_label</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
504
- <span class='id identifier rubyid_reference'>reference</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span>
505
- <span class='id identifier rubyid_reference'>reference</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='op'>::</span><span class='const'>MAPPING</span><span class='lbracket'>[</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='op'>::</span><span class='const'>MAPPING</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='comment'># We are an alias
506
- </span> <span class='id identifier rubyid_reference'>reference</span> <span class='op'>=</span> <span class='id identifier rubyid_reference'>reference</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>_</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'> </span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
507
-
508
- <span class='kw'>if</span> <span class='ivar'>@aliases</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span> <span class='kw'>then</span>
509
- <span class='comment'># First we search for aliases by name
510
- </span> <span class='ivar'>@aliases</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_reference'>reference</span><span class='rbracket'>]</span>
511
-
512
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='op'>::</span><span class='const'>MAPPING</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_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_zone'>zone</span><span class='op'>|</span>
513
- <span class='kw'>if</span> <span class='id identifier rubyid_zone'>zone</span> <span class='op'>==</span> <span class='id identifier rubyid_reference'>reference</span> <span class='kw'>then</span>
514
- <span class='kw'>if</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>International Date Line West</span><span class='tstring_end'>&quot;</span></span> <span class='op'>||</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>UTC</span><span class='tstring_end'>&quot;</span></span> <span class='op'>||</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>(US &amp; Canada)</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
515
- <span class='ivar'>@aliases</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_name'>name</span>
516
- <span class='kw'>else</span>
517
- <span class='ivar'>@aliases</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_reference'>reference</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'>\/.*</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/</span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
518
- <span class='kw'>end</span>
519
- <span class='kw'>end</span>
520
- <span class='kw'>end</span>
521
-
522
- <span class='ivar'>@aliases</span> <span class='op'>=</span> <span class='ivar'>@aliases</span><span class='period'>.</span><span class='id identifier rubyid_uniq'>uniq</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span><span class='period'>.</span><span class='id identifier rubyid_sort'>sort</span>
523
- <span class='kw'>end</span>
524
-
525
- <span class='ivar'>@aliases</span>
526
- <span class='kw'>end</span></pre>
503
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_aliases identifier id'>aliases</span><span class='lparen 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>
504
+ <span class='rubyid_reference identifier id'>reference</span> <span class='assign token'>=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_name identifier id'>name</span>
505
+ <span class='rubyid_reference identifier id'>reference</span> <span class='assign token'>=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_class identifier id'>class</span><span class='colon2 op'>::</span><span class='rubyid_MAPPING constant id'>MAPPING</span><span class='lbrack token'>[</span><span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_name identifier id'>name</span><span class='rbrack token'>]</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_class identifier id'>class</span><span class='colon2 op'>::</span><span class='rubyid_MAPPING constant id'>MAPPING</span><span class='dot token'>.</span><span class='rubyid_has_key? fid id'>has_key?</span><span class='lparen token'>(</span><span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_name identifier id'>name</span><span class='rparen token'>)</span> <span class='comment val'># We are an alias</span>
506
+ <span class='rubyid_reference identifier id'>reference</span> <span class='assign token'>=</span> <span class='rubyid_reference identifier id'>reference</span><span class='dot token'>.</span><span class='rubyid_gsub identifier id'>gsub</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>
507
+
508
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_@aliases ivar id'>@aliases</span><span class='dot token'>.</span><span class='rubyid_blank? fid id'>blank?</span> <span class='rubyid_then then kw'>then</span>
509
+ <span class='comment val'># First we search for aliases by name</span>
510
+ <span class='rubyid_@aliases ivar id'>@aliases</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rubyid_reference identifier id'>reference</span><span class='rbrack token'>]</span>
511
+
512
+ <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_class identifier id'>class</span><span class='colon2 op'>::</span><span class='rubyid_MAPPING constant id'>MAPPING</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='rubyid_zone identifier id'>zone</span><span class='bitor op'>|</span>
513
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_zone identifier id'>zone</span><span class='dot token'>.</span><span class='rubyid_gsub identifier id'>gsub</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='eq op'>==</span> <span class='rubyid_reference identifier id'>reference</span> <span class='rubyid_then then kw'>then</span>
514
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_name identifier id'>name</span> <span class='eq op'>==</span> <span class='string val'>&quot;International Date Line West&quot;</span> <span class='orop op'>||</span> <span class='rubyid_name identifier id'>name</span> <span class='eq op'>==</span> <span class='string val'>&quot;UTC&quot;</span> <span class='orop op'>||</span> <span class='rubyid_name identifier id'>name</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>&quot;(US &amp; Canada)&quot;</span><span class='rparen token'>)</span>
515
+ <span class='rubyid_@aliases ivar id'>@aliases</span> <span class='lshft op'>&lt;&lt;</span> <span class='rubyid_name identifier id'>name</span>
516
+ <span class='rubyid_else else kw'>else</span>
517
+ <span class='rubyid_@aliases ivar id'>@aliases</span> <span class='lshft op'>&lt;&lt;</span> <span class='rubyid_reference identifier id'>reference</span><span class='dot token'>.</span><span class='rubyid_gsub identifier id'>gsub</span><span class='lparen token'>(</span><span class='regexp val'>/\/.*/</span><span class='comma token'>,</span> <span class='string val'>&quot;/&quot;</span> <span class='plus op'>+</span> <span class='rubyid_name identifier id'>name</span><span class='rparen token'>)</span>
518
+ <span class='rubyid_end end kw'>end</span>
519
+ <span class='rubyid_end end kw'>end</span>
520
+ <span class='rubyid_end end kw'>end</span>
521
+
522
+ <span class='rubyid_@aliases ivar id'>@aliases</span> <span class='assign token'>=</span> <span class='rubyid_@aliases ivar id'>@aliases</span><span class='dot token'>.</span><span class='rubyid_uniq identifier id'>uniq</span><span class='dot token'>.</span><span class='rubyid_compact identifier id'>compact</span><span class='dot token'>.</span><span class='rubyid_sort identifier id'>sort</span>
523
+ <span class='rubyid_end end kw'>end</span>
524
+
525
+ <span class='rubyid_@aliases ivar id'>@aliases</span>
526
+ <span class='rubyid_end end kw'>end</span>
527
+ </pre>
527
528
  </td>
528
529
  </tr>
529
530
  </table>
@@ -621,14 +622,15 @@
621
622
  <td>
622
623
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/datetime.rb', line 419</span>
623
624
 
624
- <span class='kw'>def</span> <span class='id identifier rubyid_current_offset'>current_offset</span><span class='lparen'>(</span><span class='id identifier rubyid_rational'>rational</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_date'>date</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
625
- <span class='id identifier rubyid_date'>date</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>DateTime</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
625
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_current_offset identifier id'>current_offset</span><span class='lparen token'>(</span><span class='rubyid_rational identifier id'>rational</span> <span class='assign token'>=</span> <span class='rubyid_false false kw'>false</span><span class='comma token'>,</span> <span class='rubyid_date identifier id'>date</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
626
+ <span class='rubyid_date identifier id'>date</span> <span class='opasgn op'>||=</span> <span class='colon3 op'>::</span><span class='rubyid_DateTime constant id'>DateTime</span><span class='dot token'>.</span><span class='rubyid_now identifier id'>now</span>
626
627
 
627
- <span class='id identifier rubyid_dst_period'>dst_period</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_dst_period'>dst_period</span>
628
+ <span class='rubyid_dst_period identifier id'>dst_period</span> <span class='assign token'>=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_dst_period identifier id'>dst_period</span>
628
629
 
629
- <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_period_for_utc'>period_for_utc</span><span class='lparen'>(</span><span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_utc'>utc</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_dst?'>dst?</span> <span class='op'>?</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_dst_offset'>dst_offset</span> <span class='op'>:</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_offset'>offset</span><span class='rparen'>)</span>
630
- <span class='id identifier rubyid_rational'>rational</span> <span class='op'>?</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_rationalize_offset'>rationalize_offset</span><span class='lparen'>(</span><span class='id identifier rubyid_rv'>rv</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_rv'>rv</span>
631
- <span class='kw'>end</span></pre>
630
+ <span class='rubyid_rv identifier id'>rv</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_period_for_utc identifier id'>period_for_utc</span><span class='lparen token'>(</span><span class='rubyid_date identifier id'>date</span><span class='dot token'>.</span><span class='rubyid_utc identifier id'>utc</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_dst? fid id'>dst?</span> <span class='integer val'>? </span><span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_dst_offset identifier id'>dst_offset</span> <span class='colon op'>:</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_offset identifier id'>offset</span><span class='rparen token'>)</span>
631
+ <span class='rubyid_rational identifier id'>rational</span> <span class='integer val'>? </span><span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_class identifier id'>class</span><span class='dot token'>.</span><span class='rubyid_rationalize_offset identifier id'>rationalize_offset</span><span class='lparen token'>(</span><span class='rubyid_rv identifier id'>rv</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='rubyid_rv identifier id'>rv</span>
632
+ <span class='rubyid_end end kw'>end</span>
633
+ </pre>
632
634
  </td>
633
635
  </tr>
634
636
  </table>
@@ -723,11 +725,12 @@
723
725
  <td>
724
726
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/datetime.rb', line 465</span>
725
727
 
726
- <span class='kw'>def</span> <span class='id identifier rubyid_dst_correction'>dst_correction</span><span class='lparen'>(</span><span class='id identifier rubyid_rational'>rational</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
727
- <span class='id identifier rubyid_period'>period</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_dst_period'>dst_period</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span>
728
- <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_period'>period</span> <span class='op'>?</span> <span class='id identifier rubyid_period'>period</span><span class='period'>.</span><span class='id identifier rubyid_std_offset'>std_offset</span> <span class='op'>:</span> <span class='int'>0</span>
729
- <span class='id identifier rubyid_rational'>rational</span> <span class='op'>?</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_rationalize_offset'>rationalize_offset</span><span class='lparen'>(</span><span class='id identifier rubyid_rv'>rv</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_rv'>rv</span>
730
- <span class='kw'>end</span></pre>
728
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_dst_correction identifier id'>dst_correction</span><span class='lparen token'>(</span><span class='rubyid_rational identifier id'>rational</span> <span class='assign token'>=</span> <span class='rubyid_false false kw'>false</span><span class='comma 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>
729
+ <span class='rubyid_period identifier id'>period</span> <span class='assign token'>=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_dst_period identifier id'>dst_period</span><span class='lparen token'>(</span><span class='rubyid_year identifier id'>year</span><span class='rparen token'>)</span>
730
+ <span class='rubyid_rv identifier id'>rv</span> <span class='assign token'>=</span> <span class='rubyid_period identifier id'>period</span> <span class='integer val'>? </span><span class='rubyid_period identifier id'>period</span><span class='dot token'>.</span><span class='rubyid_std_offset identifier id'>std_offset</span> <span class='colon op'>:</span> <span class='integer val'>0</span>
731
+ <span class='rubyid_rational identifier id'>rational</span> <span class='integer val'>? </span><span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_class identifier id'>class</span><span class='dot token'>.</span><span class='rubyid_rationalize_offset identifier id'>rationalize_offset</span><span class='lparen token'>(</span><span class='rubyid_rv identifier id'>rv</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='rubyid_rv identifier id'>rv</span>
732
+ <span class='rubyid_end end kw'>end</span>
733
+ </pre>
731
734
  </td>
732
735
  </tr>
733
736
  </table>
@@ -840,12 +843,13 @@
840
843
  <td>
841
844
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/datetime.rb', line 488</span>
842
845
 
843
- <span class='kw'>def</span> <span class='id identifier rubyid_dst_name'>dst_name</span><span class='lparen'>(</span><span class='id identifier rubyid_dst_label'>dst_label</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
844
- <span class='id identifier rubyid_dst_label'>dst_label</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>(DST)</span><span class='tstring_end'>&quot;</span></span>
845
- <span class='id identifier rubyid_name'>name</span> <span class='op'>||=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span>
846
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_dst_name identifier id'>dst_name</span><span class='lparen 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='comma 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='comma token'>,</span> <span class='rubyid_name identifier id'>name</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
847
+ <span class='rubyid_dst_label identifier id'>dst_label</span> <span class='opasgn op'>||=</span> <span class='string val'>&quot;(DST)&quot;</span>
848
+ <span class='rubyid_name identifier id'>name</span> <span class='opasgn op'>||=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_name identifier id'>name</span>
846
849
 
847
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_uses_dst?'>uses_dst?</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_dst_label'>dst_label</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span> <span class='op'>:</span> <span class='kw'>nil</span>
848
- <span class='kw'>end</span></pre>
850
+ <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_uses_dst? fid id'>uses_dst?</span><span class='lparen token'>(</span><span class='rubyid_year identifier id'>year</span><span class='rparen token'>)</span> <span class='question op'>?</span> <span class='dstring node'>&quot;#{name} #{dst_label}&quot;</span> <span class='colon op'>:</span> <span class='rubyid_nil nil kw'>nil</span>
851
+ <span class='rubyid_end end kw'>end</span>
852
+ </pre>
849
853
  </td>
850
854
  </tr>
851
855
  </table>
@@ -940,11 +944,12 @@
940
944
  <td>
941
945
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/datetime.rb', line 476</span>
942
946
 
943
- <span class='kw'>def</span> <span class='id identifier rubyid_dst_offset'>dst_offset</span><span class='lparen'>(</span><span class='id identifier rubyid_rational'>rational</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
944
- <span class='id identifier rubyid_period'>period</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_dst_period'>dst_period</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span>
945
- <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_period'>period</span> <span class='op'>?</span> <span class='id identifier rubyid_period'>period</span><span class='period'>.</span><span class='id identifier rubyid_utc_total_offset'>utc_total_offset</span> <span class='op'>:</span> <span class='int'>0</span>
946
- <span class='id identifier rubyid_rational'>rational</span> <span class='op'>?</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_rationalize_offset'>rationalize_offset</span><span class='lparen'>(</span><span class='id identifier rubyid_rv'>rv</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_rv'>rv</span>
947
- <span class='kw'>end</span></pre>
947
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_dst_offset identifier id'>dst_offset</span><span class='lparen token'>(</span><span class='rubyid_rational identifier id'>rational</span> <span class='assign token'>=</span> <span class='rubyid_false false kw'>false</span><span class='comma 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>
948
+ <span class='rubyid_period identifier id'>period</span> <span class='assign token'>=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_dst_period identifier id'>dst_period</span><span class='lparen token'>(</span><span class='rubyid_year identifier id'>year</span><span class='rparen token'>)</span>
949
+ <span class='rubyid_rv identifier id'>rv</span> <span class='assign token'>=</span> <span class='rubyid_period identifier id'>period</span> <span class='integer val'>? </span><span class='rubyid_period identifier id'>period</span><span class='dot token'>.</span><span class='rubyid_utc_total_offset identifier id'>utc_total_offset</span> <span class='colon op'>:</span> <span class='integer val'>0</span>
950
+ <span class='rubyid_rational identifier id'>rational</span> <span class='integer val'>? </span><span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_class identifier id'>class</span><span class='dot token'>.</span><span class='rubyid_rationalize_offset identifier id'>rationalize_offset</span><span class='lparen token'>(</span><span class='rubyid_rv identifier id'>rv</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='rubyid_rv identifier id'>rv</span>
951
+ <span class='rubyid_end end kw'>end</span>
952
+ </pre>
948
953
  </td>
949
954
  </tr>
950
955
  </table>
@@ -1027,16 +1032,17 @@
1027
1032
  <td>
1028
1033
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/datetime.rb', line 441</span>
1029
1034
 
1030
- <span class='kw'>def</span> <span class='id identifier rubyid_dst_period'>dst_period</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>
1031
- <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>
1035
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_dst_period identifier id'>dst_period</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>
1036
+ <span class='rubyid_year identifier id'>year</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>
1032
1037
 
1033
- <span class='id identifier rubyid_nothern_summer'>nothern_summer</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>DateTime</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='int'>7</span><span class='comma'>,</span> <span class='int'>15</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_utc'>utc</span> <span class='comment'># This is a representation of a summer period in the Northern Hemisphere.
1034
- </span> <span class='id identifier rubyid_southern_summer'>southern_summer</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>DateTime</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='int'>1</span><span class='comma'>,</span> <span class='int'>15</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_utc'>utc</span> <span class='comment'># This is a representation of a summer period in the Northern Hemisphere.
1035
- </span>
1036
- <span class='id identifier rubyid_period'>period</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_period_for_utc'>period_for_utc</span><span class='lparen'>(</span><span class='id identifier rubyid_nothern_summer'>nothern_summer</span><span class='rparen'>)</span>
1037
- <span class='id identifier rubyid_period'>period</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_period_for_utc'>period_for_utc</span><span class='lparen'>(</span><span class='id identifier rubyid_southern_summer'>southern_summer</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_period'>period</span><span class='period'>.</span><span class='id identifier rubyid_dst?'>dst?</span>
1038
- <span class='id identifier rubyid_period'>period</span><span class='period'>.</span><span class='id identifier rubyid_dst?'>dst?</span> <span class='op'>?</span> <span class='id identifier rubyid_period'>period</span> <span class='op'>:</span> <span class='kw'>nil</span>
1039
- <span class='kw'>end</span></pre>
1038
+ <span class='rubyid_nothern_summer identifier id'>nothern_summer</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_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='integer val'>7</span><span class='comma token'>,</span> <span class='integer val'>15</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_utc identifier id'>utc</span> <span class='comment val'># This is a representation of a summer period in the Northern Hemisphere.</span>
1039
+ <span class='rubyid_southern_summer identifier id'>southern_summer</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_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='integer val'>1</span><span class='comma token'>,</span> <span class='integer val'>15</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_utc identifier id'>utc</span> <span class='comment val'># This is a representation of a summer period in the Northern Hemisphere.</span>
1040
+
1041
+ <span class='rubyid_period identifier id'>period</span> <span class='assign token'>=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_period_for_utc identifier id'>period_for_utc</span><span class='lparen token'>(</span><span class='rubyid_nothern_summer identifier id'>nothern_summer</span><span class='rparen token'>)</span>
1042
+ <span class='rubyid_period identifier id'>period</span> <span class='assign token'>=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_period_for_utc identifier id'>period_for_utc</span><span class='lparen token'>(</span><span class='rubyid_southern_summer identifier id'>southern_summer</span><span class='rparen token'>)</span> <span class='rubyid_if if_mod kw'>if</span> <span class='notop op'>!</span><span class='rubyid_period identifier id'>period</span><span class='dot token'>.</span><span class='rubyid_dst? fid id'>dst?</span>
1043
+ <span class='rubyid_period identifier id'>period</span><span class='dot token'>.</span><span class='rubyid_dst? fid id'>dst?</span> <span class='integer val'>? </span><span class='rubyid_period identifier id'>period</span> <span class='colon op'>:</span> <span class='rubyid_nil nil kw'>nil</span>
1044
+ <span class='rubyid_end end kw'>end</span>
1045
+ </pre>
1040
1046
  </td>
1041
1047
  </tr>
1042
1048
  </table>
@@ -1113,10 +1119,11 @@
1113
1119
  <td>
1114
1120
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/datetime.rb', line 432</span>
1115
1121
 
1116
- <span class='kw'>def</span> <span class='id identifier rubyid_offset'>offset</span><span class='lparen'>(</span><span class='id identifier rubyid_rational'>rational</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
1117
- <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_utc_offset'>utc_offset</span>
1118
- <span class='id identifier rubyid_rational'>rational</span> <span class='op'>?</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_rationalize_offset'>rationalize_offset</span><span class='lparen'>(</span><span class='id identifier rubyid_rv'>rv</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_rv'>rv</span>
1119
- <span class='kw'>end</span></pre>
1122
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_offset identifier id'>offset</span><span class='lparen token'>(</span><span class='rubyid_rational identifier id'>rational</span> <span class='assign token'>=</span> <span class='rubyid_false false kw'>false</span><span class='rparen token'>)</span>
1123
+ <span class='rubyid_rv identifier id'>rv</span> <span class='assign token'>=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_utc_offset identifier id'>utc_offset</span>
1124
+ <span class='rubyid_rational identifier id'>rational</span> <span class='integer val'>? </span><span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_class identifier id'>class</span><span class='dot token'>.</span><span class='rubyid_rationalize_offset identifier id'>rationalize_offset</span><span class='lparen token'>(</span><span class='rubyid_rv identifier id'>rv</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='rubyid_rv identifier id'>rv</span>
1125
+ <span class='rubyid_end end kw'>end</span>
1126
+ </pre>
1120
1127
  </td>
1121
1128
  </tr>
1122
1129
  </table>
@@ -1210,10 +1217,11 @@
1210
1217
  <td>
1211
1218
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/datetime.rb', line 500</span>
1212
1219
 
1213
- <span class='kw'>def</span> <span class='id identifier rubyid_to_str'>to_str</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_colon'>colon</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
1214
- <span class='id identifier rubyid_name'>name</span> <span class='op'>||=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_aliases'>aliases</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
1215
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>(GMT</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_formatted_offset'>formatted_offset</span><span class='lparen'>(</span><span class='id identifier rubyid_colon'>colon</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_content'>) </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1216
- <span class='kw'>end</span></pre>
1220
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_to_str identifier id'>to_str</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='rubyid_colon identifier id'>colon</span> <span class='assign token'>=</span> <span class='rubyid_true true kw'>true</span><span class='rparen token'>)</span>
1221
+ <span class='rubyid_name identifier id'>name</span> <span class='opasgn op'>||=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_aliases identifier id'>aliases</span><span class='dot token'>.</span><span class='rubyid_first identifier id'>first</span>
1222
+ <span class='dstring node'>&quot;(GMT#{self.formatted_offset(colon)}) #{name}&quot;</span>
1223
+ <span class='rubyid_end end kw'>end</span>
1224
+ </pre>
1217
1225
  </td>
1218
1226
  </tr>
1219
1227
  </table>
@@ -1306,9 +1314,10 @@
1306
1314
  <td>
1307
1315
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/datetime.rb', line 529</span>
1308
1316
 
1309
- <span class='kw'>def</span> <span class='id identifier rubyid_to_str_parameterized'>to_str_parameterized</span><span class='lparen'>(</span><span class='id identifier rubyid_with_offset'>with_offset</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1310
- <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_parameterize_zone'>parameterize_zone</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span> <span class='op'>||</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_to_str'>to_str</span><span class='comma'>,</span> <span class='id identifier rubyid_with_offset'>with_offset</span><span class='rparen'>)</span>
1311
- <span class='kw'>end</span></pre>
1317
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_to_str_parameterized identifier id'>to_str_parameterized</span><span class='lparen 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='comma token'>,</span> <span class='rubyid_name identifier id'>name</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
1318
+ <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_parameterize_zone identifier id'>parameterize_zone</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span> <span class='orop op'>||</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_to_str identifier id'>to_str</span><span class='comma token'>,</span> <span class='rubyid_with_offset identifier id'>with_offset</span><span class='rparen token'>)</span>
1319
+ <span class='rubyid_end end kw'>end</span>
1320
+ </pre>
1312
1321
  </td>
1313
1322
  </tr>
1314
1323
  </table>
@@ -1427,18 +1436,19 @@
1427
1436
  <td>
1428
1437
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/datetime.rb', line 511</span>
1429
1438
 
1430
- <span class='kw'>def</span> <span class='id identifier rubyid_to_str_with_dst'>to_str_with_dst</span><span class='lparen'>(</span><span class='id identifier rubyid_dst_label'>dst_label</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1431
- <span class='id identifier rubyid_dst_label'>dst_label</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>(DST)</span><span class='tstring_end'>&quot;</span></span>
1432
- <span class='id identifier rubyid_name'>name</span> <span class='op'>||=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_aliases'>aliases</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
1433
-
1434
- <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_uses_dst?'>uses_dst?</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span> <span class='kw'>then</span>
1435
- <span class='id identifier rubyid_period'>period</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_dst_period'>dst_period</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span>
1436
- <span class='id identifier rubyid_offset'>offset</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_seconds_to_utc_offset'>seconds_to_utc_offset</span><span class='lparen'>(</span><span class='id identifier rubyid_period'>period</span><span class='period'>.</span><span class='id identifier rubyid_utc_total_offset'>utc_total_offset</span><span class='rparen'>)</span>
1437
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>(GMT</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_offset'>offset</span><span class='rbrace'>}</span><span class='tstring_content'>) </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_dst_label'>dst_label</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1438
- <span class='kw'>else</span>
1439
- <span class='kw'>nil</span>
1440
- <span class='kw'>end</span>
1441
- <span class='kw'>end</span></pre>
1439
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_to_str_with_dst identifier id'>to_str_with_dst</span><span class='lparen 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='comma 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='comma token'>,</span> <span class='rubyid_name identifier id'>name</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
1440
+ <span class='rubyid_dst_label identifier id'>dst_label</span> <span class='opasgn op'>||=</span> <span class='string val'>&quot;(DST)&quot;</span>
1441
+ <span class='rubyid_name identifier id'>name</span> <span class='opasgn op'>||=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_aliases identifier id'>aliases</span><span class='dot token'>.</span><span class='rubyid_first identifier id'>first</span>
1442
+
1443
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_uses_dst? fid id'>uses_dst?</span><span class='lparen token'>(</span><span class='rubyid_year identifier id'>year</span><span class='rparen token'>)</span> <span class='rubyid_then then kw'>then</span>
1444
+ <span class='rubyid_period identifier id'>period</span> <span class='assign token'>=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_dst_period identifier id'>dst_period</span><span class='lparen token'>(</span><span class='rubyid_year identifier id'>year</span><span class='rparen token'>)</span>
1445
+ <span class='rubyid_offset identifier id'>offset</span> <span class='assign token'>=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_class identifier id'>class</span><span class='dot token'>.</span><span class='rubyid_seconds_to_utc_offset identifier id'>seconds_to_utc_offset</span><span class='lparen token'>(</span><span class='rubyid_period identifier id'>period</span><span class='dot token'>.</span><span class='rubyid_utc_total_offset identifier id'>utc_total_offset</span><span class='rparen token'>)</span>
1446
+ <span class='dstring node'>&quot;(GMT#{offset}) #{name} #{dst_label}&quot;</span>
1447
+ <span class='rubyid_else else kw'>else</span>
1448
+ <span class='rubyid_nil nil kw'>nil</span>
1449
+ <span class='rubyid_end end kw'>end</span>
1450
+ <span class='rubyid_end end kw'>end</span>
1451
+ </pre>
1442
1452
  </td>
1443
1453
  </tr>
1444
1454
  </table>
@@ -1566,10 +1576,11 @@
1566
1576
  <td>
1567
1577
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/datetime.rb', line 540</span>
1568
1578
 
1569
- <span class='kw'>def</span> <span class='id identifier rubyid_to_str_with_dst_parameterized'>to_str_with_dst_parameterized</span><span class='lparen'>(</span><span class='id identifier rubyid_dst_label'>dst_label</span> <span class='op'>=</span> <span class='kw'>nil</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='comma'>,</span> <span class='id identifier rubyid_year'>year</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1570
- <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_to_str_with_dst'>to_str_with_dst</span><span class='lparen'>(</span><span class='id identifier rubyid_dst_label'>dst_label</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
1571
- <span class='id identifier rubyid_rv'>rv</span> <span class='op'>?</span> <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_parameterize_zone'>parameterize_zone</span><span class='lparen'>(</span><span class='id identifier rubyid_rv'>rv</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='kw'>nil</span>
1572
- <span class='kw'>end</span></pre>
1579
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_to_str_with_dst_parameterized identifier id'>to_str_with_dst_parameterized</span><span class='lparen 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='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='comma 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='comma token'>,</span> <span class='rubyid_name identifier id'>name</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
1580
+ <span class='rubyid_rv identifier id'>rv</span> <span class='assign token'>=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_to_str_with_dst identifier id'>to_str_with_dst</span><span class='lparen token'>(</span><span class='rubyid_dst_label identifier id'>dst_label</span><span class='comma token'>,</span> <span class='rubyid_year identifier id'>year</span><span class='comma token'>,</span> <span class='rubyid_name identifier id'>name</span><span class='rparen token'>)</span>
1581
+ <span class='rubyid_rv identifier id'>rv</span> <span class='integer val'>? </span><span class='colon2 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_parameterize_zone identifier id'>parameterize_zone</span><span class='lparen token'>(</span><span class='rubyid_rv identifier id'>rv</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='rubyid_nil nil kw'>nil</span>
1582
+ <span class='rubyid_end end kw'>end</span>
1583
+ </pre>
1573
1584
  </td>
1574
1585
  </tr>
1575
1586
  </table>
@@ -1645,9 +1656,10 @@
1645
1656
  <td>
1646
1657
  <pre class="code"><span class="info file"># File 'lib/cowtech-extensions/datetime.rb', line 456</span>
1647
1658
 
1648
- <span class='kw'>def</span> <span class='id identifier rubyid_uses_dst?'>uses_dst?</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>
1649
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_dst_period'>dst_period</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span>
1650
- <span class='kw'>end</span></pre>
1659
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_uses_dst? fid id'>uses_dst?</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>
1660
+ <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_dst_period identifier id'>dst_period</span><span class='lparen token'>(</span><span class='rubyid_year identifier id'>year</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_present? fid id'>present?</span>
1661
+ <span class='rubyid_end end kw'>end</span>
1662
+ </pre>
1651
1663
  </td>
1652
1664
  </tr>
1653
1665
  </table>
@@ -1658,9 +1670,9 @@
1658
1670
  </div>
1659
1671
 
1660
1672
  <div id="footer">
1661
- Generated on Tue Jul 24 12:12:52 2012 by
1673
+ Generated on Sat Jul 28 11:24:55 2012 by
1662
1674
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1663
- 0.8.2.1 (ruby-1.9.2).
1675
+ 0.8.2.1 (ruby-1.8.7).
1664
1676
  </div>
1665
1677
 
1666
1678
  </body>