hebrew_date 1.0.21 → 1.0.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96da92e568f762c9720f3741f8b7d8d567e244e2
4
- data.tar.gz: bfdcdfe4b2987423dbd02285b14667ad79f4582c
3
+ metadata.gz: 1cba19a5094328a54f750e53605af31b7dd97a51
4
+ data.tar.gz: d68ba55d57afb1c502196f20f3d7bd3d1bbdf6af
5
5
  SHA512:
6
- metadata.gz: c2a4a34259f2b7c3f440587a35741ffbba9c3ca2b5f101fe60808252e390de05b5544c96cf3d77c191ba888cc9461dccaa3e7bca056d4552b2ed752e4bdc5cc7
7
- data.tar.gz: d693076d2e6433f7b1d2c477919458883b0f24d26d180f0c3df1d23d12c2050f9b8947f6a662c6444f9f34affb71d97a1333e151378aec00a76f504c599c7a31
6
+ metadata.gz: a7057486ac15b343b07f7bca69498e42978f563de0b62d59bea0948a6e30353d95931733672e785bada20643880af3467d3e962e7a73e5f58a09102deb993a67
7
+ data.tar.gz: 2e9760281836335b325888b423e4645bb69d085290f2e0ba8ea9c4f93ee5db757e58ccb75d850c54f726bbf5aef21cabe6a1aa91e0bd24ac7410b19d0aa7d0f3
@@ -125,15 +125,37 @@ it should respond accordingly.</p>
125
125
  </div>
126
126
  <h2>Constant Summary</h2>
127
127
 
128
+ <dl class="constants">
129
+
130
+ <dt id="HEBREW_EPOCH-constant" class="">HEBREW_EPOCH =
131
+
132
+ </dt>
133
+ <dd><pre class="code"><span class='op'>-</span><span class='int'>1373429</span></pre></dd>
134
+
135
+ <dt id="HEBREW_MONTH_NAMES-constant" class="">HEBREW_MONTH_NAMES =
136
+
137
+ </dt>
138
+ <dd><pre class="code"><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Nissan</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Iyar</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Sivan</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Tammuz</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Av</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Elul</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
139
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Tishrei</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Cheshvan</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Kislev</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Teves</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Shvat</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
140
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Adar</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Adar II</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span></pre></dd>
141
+
142
+ </dl>
143
+
128
144
 
129
145
 
130
146
 
131
- <h2>Constant Summary</h2>
147
+
132
148
 
133
149
  <h3 class="inherited">Constants included
134
150
  from <span class='object_link'><a href="HebrewDateSupport/HolidayMethods/ClassMethods.html" title="HebrewDateSupport::HolidayMethods::ClassMethods (module)">HebrewDateSupport::HolidayMethods::ClassMethods</a></span></h3>
135
151
  <p class="inherited"><span class='object_link'><a href="HebrewDateSupport/HolidayMethods/ClassMethods.html#HOLIDAYS-constant" title="HebrewDateSupport::HolidayMethods::ClassMethods::HOLIDAYS (constant)">HebrewDateSupport::HolidayMethods::ClassMethods::HOLIDAYS</a></span></p>
136
152
 
153
+
154
+
155
+ <h3 class="inherited">Constants included
156
+ from <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html" title="HebrewDateSupport::ParshaMethods (module)">HebrewDateSupport::ParshaMethods</a></span></h3>
157
+ <p class="inherited"><span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#MON_LONG-constant" title="HebrewDateSupport::ParshaMethods::MON_LONG (constant)">HebrewDateSupport::ParshaMethods::MON_LONG</a></span>, <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#MON_LONG_LEAP-constant" title="HebrewDateSupport::ParshaMethods::MON_LONG_LEAP (constant)">HebrewDateSupport::ParshaMethods::MON_LONG_LEAP</a></span>, <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#MON_LONG_LEAP_ISRAEL-constant" title="HebrewDateSupport::ParshaMethods::MON_LONG_LEAP_ISRAEL (constant)">HebrewDateSupport::ParshaMethods::MON_LONG_LEAP_ISRAEL</a></span>, <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#MON_SHORT-constant" title="HebrewDateSupport::ParshaMethods::MON_SHORT (constant)">HebrewDateSupport::ParshaMethods::MON_SHORT</a></span>, <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#MON_SHORT_LEAP-constant" title="HebrewDateSupport::ParshaMethods::MON_SHORT_LEAP (constant)">HebrewDateSupport::ParshaMethods::MON_SHORT_LEAP</a></span>, <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#MON_SHORT_LEAP_ISRAEL-constant" title="HebrewDateSupport::ParshaMethods::MON_SHORT_LEAP_ISRAEL (constant)">HebrewDateSupport::ParshaMethods::MON_SHORT_LEAP_ISRAEL</a></span>, <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#PARSHA_NAMES-constant" title="HebrewDateSupport::ParshaMethods::PARSHA_NAMES (constant)">HebrewDateSupport::ParshaMethods::PARSHA_NAMES</a></span>, <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#SAT_LONG-constant" title="HebrewDateSupport::ParshaMethods::SAT_LONG (constant)">HebrewDateSupport::ParshaMethods::SAT_LONG</a></span>, <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#SAT_LONG_LEAP-constant" title="HebrewDateSupport::ParshaMethods::SAT_LONG_LEAP (constant)">HebrewDateSupport::ParshaMethods::SAT_LONG_LEAP</a></span>, <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#SAT_SHORT-constant" title="HebrewDateSupport::ParshaMethods::SAT_SHORT (constant)">HebrewDateSupport::ParshaMethods::SAT_SHORT</a></span>, <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#SAT_SHORT_LEAP-constant" title="HebrewDateSupport::ParshaMethods::SAT_SHORT_LEAP (constant)">HebrewDateSupport::ParshaMethods::SAT_SHORT_LEAP</a></span>, <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#THU_LONG-constant" title="HebrewDateSupport::ParshaMethods::THU_LONG (constant)">HebrewDateSupport::ParshaMethods::THU_LONG</a></span>, <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#THU_LONG_LEAP-constant" title="HebrewDateSupport::ParshaMethods::THU_LONG_LEAP (constant)">HebrewDateSupport::ParshaMethods::THU_LONG_LEAP</a></span>, <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#THU_NORMAL-constant" title="HebrewDateSupport::ParshaMethods::THU_NORMAL (constant)">HebrewDateSupport::ParshaMethods::THU_NORMAL</a></span>, <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#THU_NORMAL_ISRAEL-constant" title="HebrewDateSupport::ParshaMethods::THU_NORMAL_ISRAEL (constant)">HebrewDateSupport::ParshaMethods::THU_NORMAL_ISRAEL</a></span>, <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#THU_SHORT_LEAP-constant" title="HebrewDateSupport::ParshaMethods::THU_SHORT_LEAP (constant)">HebrewDateSupport::ParshaMethods::THU_SHORT_LEAP</a></span></p>
158
+
137
159
 
138
160
  <h2>Class Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
139
161
  <ul class="summary">
@@ -162,6 +184,31 @@ it should respond accordingly.</p>
162
184
  <p>Whether to use Ashkenazi pronunciation.</p>
163
185
  </div></span>
164
186
 
187
+ </li>
188
+
189
+
190
+ <li class="public ">
191
+ <span class="summary_signature">
192
+
193
+ <a href="#debug-class_method" title="debug (class method)">+ (Object) <strong>debug</strong> </a>
194
+
195
+
196
+
197
+ </span>
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+ <span class="summary_desc"><div class='inline'></div></span>
211
+
165
212
  </li>
166
213
 
167
214
 
@@ -225,6 +272,33 @@ it should respond accordingly.</p>
225
272
  <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
226
273
  <ul class="summary">
227
274
 
275
+ <li class="public ">
276
+ <span class="summary_signature">
277
+
278
+ <a href="#abs_date-instance_method" title="#abs_date (instance method)">- (Object) <strong>abs_date</strong> </a>
279
+
280
+
281
+
282
+ </span>
283
+
284
+
285
+
286
+
287
+ <span class="note title readonly">readonly</span>
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+ <span class="summary_desc"><div class='inline'></div></span>
298
+
299
+ </li>
300
+
301
+
228
302
  <li class="public ">
229
303
  <span class="summary_signature">
230
304
 
@@ -415,6 +489,30 @@ it should respond accordingly.</p>
415
489
  <li class="public ">
416
490
  <span class="summary_signature">
417
491
 
492
+ <a href="#day_name-class_method" title="day_name (class method)">+ (String) <strong>day_name</strong>(day) </a>
493
+
494
+
495
+
496
+ </span>
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+ <span class="summary_desc"><div class='inline'>
507
+ <p>Get the name of the given day (1-7).</p>
508
+ </div></span>
509
+
510
+ </li>
511
+
512
+
513
+ <li class="public ">
514
+ <span class="summary_signature">
515
+
418
516
  <a href="#hebrew_leap_year%3F-class_method" title="hebrew_leap_year? (class method)">+ (Boolean) <strong>hebrew_leap_year?</strong>(year) </a>
419
517
 
420
518
 
@@ -439,7 +537,7 @@ it should respond accordingly.</p>
439
537
  <li class="public ">
440
538
  <span class="summary_signature">
441
539
 
442
- <a href="#hebrew_month_to_s-class_method" title="hebrew_month_to_s (class method)">+ (Object) <strong>hebrew_month_to_s</strong>(month) </a>
540
+ <a href="#hebrew_month_to_s-class_method" title="hebrew_month_to_s (class method)">+ (String) <strong>hebrew_month_to_s</strong>(month, year = nil) </a>
443
541
 
444
542
 
445
543
 
@@ -520,7 +618,51 @@ it should respond accordingly.</p>
520
618
  <li class="public ">
521
619
  <span class="summary_signature">
522
620
 
523
- <a href="#back-instance_method" title="#back (instance method)">- (HebrewDate) <strong>back</strong> </a>
621
+ <a href="#%2B-instance_method" title="#+ (instance method)">- (HebrewDate) <strong>+</strong>(other) </a>
622
+
623
+
624
+
625
+ </span>
626
+
627
+
628
+
629
+
630
+
631
+
632
+
633
+
634
+
635
+ <span class="summary_desc"><div class='inline'></div></span>
636
+
637
+ </li>
638
+
639
+
640
+ <li class="public ">
641
+ <span class="summary_signature">
642
+
643
+ <a href="#--instance_method" title="#- (instance method)">- (HebrewDate) <strong>-</strong>(other) </a>
644
+
645
+
646
+
647
+ </span>
648
+
649
+
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+ <span class="summary_desc"><div class='inline'></div></span>
658
+
659
+ </li>
660
+
661
+
662
+ <li class="public ">
663
+ <span class="summary_signature">
664
+
665
+ <a href="#%3C%3D%3E-instance_method" title="#&lt;=&gt; (instance method)">- (Integer) <strong>&lt;=&gt;</strong>(other) </a>
524
666
 
525
667
 
526
668
 
@@ -535,7 +677,7 @@ it should respond accordingly.</p>
535
677
 
536
678
 
537
679
  <span class="summary_desc"><div class='inline'>
538
- <p>Move back one day.</p>
680
+ <p>Comparison operator.</p>
539
681
  </div></span>
540
682
 
541
683
  </li>
@@ -544,7 +686,51 @@ it should respond accordingly.</p>
544
686
  <li class="public ">
545
687
  <span class="summary_signature">
546
688
 
547
- <a href="#clone-instance_method" title="#clone (instance method)">- (HebrewDate) <strong>clone</strong> </a>
689
+ <a href="#__getobj__-instance_method" title="#__getobj__ (instance method)">- (Object) <strong>__getobj__</strong> </a>
690
+
691
+
692
+
693
+ </span>
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+ <span class="summary_desc"><div class='inline'></div></span>
704
+
705
+ </li>
706
+
707
+
708
+ <li class="public ">
709
+ <span class="summary_signature">
710
+
711
+ <a href="#__setobj__-instance_method" title="#__setobj__ (instance method)">- (Object) <strong>__setobj__</strong>(obj) </a>
712
+
713
+
714
+
715
+ </span>
716
+
717
+
718
+
719
+
720
+
721
+
722
+
723
+
724
+
725
+ <span class="summary_desc"><div class='inline'></div></span>
726
+
727
+ </li>
728
+
729
+
730
+ <li class="public ">
731
+ <span class="summary_signature">
732
+
733
+ <a href="#back-instance_method" title="#back (instance method)">- (HebrewDate) <strong>back</strong> </a>
548
734
 
549
735
 
550
736
 
@@ -559,7 +745,7 @@ it should respond accordingly.</p>
559
745
 
560
746
 
561
747
  <span class="summary_desc"><div class='inline'>
562
- <p>Get a clone of this object.</p>
748
+ <p>Move back one day.</p>
563
749
  </div></span>
564
750
 
565
751
  </li>
@@ -592,11 +778,33 @@ it should respond accordingly.</p>
592
778
  <li class="public ">
593
779
  <span class="summary_signature">
594
780
 
595
- <a href="#forward-instance_method" title="#forward (instance method)">- (HebrewDate) <strong>forward</strong> </a>
781
+ <a href="#downto-instance_method" title="#downto (instance method)">- (Enumerator|self) <strong>downto</strong>(min, &amp;block) </a>
782
+
783
+
596
784
 
785
+ </span>
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+ <span class="summary_desc"><div class='inline'>
796
+ <p>This method is equivalent to step(min, -1){|date| …}.</p>
797
+ </div></span>
798
+
799
+ </li>
597
800
 
801
+
802
+ <li class="public ">
803
+ <span class="summary_signature">
804
+
805
+ <a href="#forward-instance_method" title="#forward (instance method)">- (HebrewDate) <strong>forward</strong> </a>
598
806
 
599
- (also: #next, #succ)
807
+
600
808
 
601
809
  </span>
602
810
 
@@ -692,7 +900,7 @@ it should respond accordingly.</p>
692
900
  <li class="public ">
693
901
  <span class="summary_signature">
694
902
 
695
- <a href="#last_day_of_hebrew_month-instance_method" title="#last_day_of_hebrew_month (instance method)">- (Integer) <strong>last_day_of_hebrew_month</strong>(month = nil) </a>
903
+ <a href="#inspect-instance_method" title="#inspect (instance method)">- (Object) <strong>inspect</strong> </a>
696
904
 
697
905
 
698
906
 
@@ -706,9 +914,7 @@ it should respond accordingly.</p>
706
914
 
707
915
 
708
916
 
709
- <span class="summary_desc"><div class='inline'>
710
- <p>Last day of the current Hebrew month.</p>
711
- </div></span>
917
+ <span class="summary_desc"><div class='inline'></div></span>
712
918
 
713
919
  </li>
714
920
 
@@ -716,7 +922,7 @@ it should respond accordingly.</p>
716
922
  <li class="public ">
717
923
  <span class="summary_signature">
718
924
 
719
- <a href="#last_day_of_month-instance_method" title="#last_day_of_month (instance method)">- (Integer) <strong>last_day_of_month</strong>(month = nil) </a>
925
+ <a href="#last_day_of_hebrew_month-instance_method" title="#last_day_of_hebrew_month (instance method)">- (Integer) <strong>last_day_of_hebrew_month</strong>(month = nil) </a>
720
926
 
721
927
 
722
928
 
@@ -731,7 +937,7 @@ it should respond accordingly.</p>
731
937
 
732
938
 
733
939
  <span class="summary_desc"><div class='inline'>
734
- <p>The last day of the Gregorian month.</p>
940
+ <p>Last day of the current Hebrew month.</p>
735
941
  </div></span>
736
942
 
737
943
  </li>
@@ -740,7 +946,7 @@ it should respond accordingly.</p>
740
946
  <li class="public ">
741
947
  <span class="summary_signature">
742
948
 
743
- <a href="#last_month_of_hebrew_year-instance_method" title="#last_month_of_hebrew_year (instance method)">- (Integer) <strong>last_month_of_hebrew_year</strong> </a>
949
+ <a href="#last_day_of_month-instance_method" title="#last_day_of_month (instance method)">- (Integer) <strong>last_day_of_month</strong>(month = nil) </a>
744
950
 
745
951
 
746
952
 
@@ -755,7 +961,7 @@ it should respond accordingly.</p>
755
961
 
756
962
 
757
963
  <span class="summary_desc"><div class='inline'>
758
- <p>The last month in this Hebrew year (12 or 13).</p>
964
+ <p>The last day of the Gregorian month.</p>
759
965
  </div></span>
760
966
 
761
967
  </li>
@@ -764,7 +970,7 @@ it should respond accordingly.</p>
764
970
  <li class="public ">
765
971
  <span class="summary_signature">
766
972
 
767
- <a href="#set_date-instance_method" title="#set_date (instance method)">- (void) <strong>set_date</strong>(year, month, date) </a>
973
+ <a href="#last_month_of_hebrew_year-instance_method" title="#last_month_of_hebrew_year (instance method)">- (Integer) <strong>last_month_of_hebrew_year</strong> </a>
768
974
 
769
975
 
770
976
 
@@ -779,7 +985,7 @@ it should respond accordingly.</p>
779
985
 
780
986
 
781
987
  <span class="summary_desc"><div class='inline'>
782
- <p>Set the Gregorian date of this HebrewDate.</p>
988
+ <p>The last month in this Hebrew year (12 or 13).</p>
783
989
  </div></span>
784
990
 
785
991
  </li>
@@ -788,10 +994,12 @@ it should respond accordingly.</p>
788
994
  <li class="public ">
789
995
  <span class="summary_signature">
790
996
 
791
- <a href="#set_hebrew_date-instance_method" title="#set_hebrew_date (instance method)">- (void) <strong>set_hebrew_date</strong>(year, month, date) </a>
997
+ <a href="#next-instance_method" title="#next (instance method)">- (HebrewDate) <strong>next</strong> </a>
792
998
 
793
999
 
794
1000
 
1001
+ (also: #succ)
1002
+
795
1003
  </span>
796
1004
 
797
1005
 
@@ -803,7 +1011,7 @@ it should respond accordingly.</p>
803
1011
 
804
1012
 
805
1013
  <span class="summary_desc"><div class='inline'>
806
- <p>Set the Hebrew date.</p>
1014
+ <p>This does not modify the current date, but creates a new one.</p>
807
1015
  </div></span>
808
1016
 
809
1017
  </li>
@@ -812,7 +1020,7 @@ it should respond accordingly.</p>
812
1020
  <li class="public ">
813
1021
  <span class="summary_signature">
814
1022
 
815
- <a href="#strftime-instance_method" title="#strftime (instance method)">- (String) <strong>strftime</strong>(format) </a>
1023
+ <a href="#set_date-instance_method" title="#set_date (instance method)">- (void) <strong>set_date</strong>(year, month, date) </a>
816
1024
 
817
1025
 
818
1026
 
@@ -827,7 +1035,7 @@ it should respond accordingly.</p>
827
1035
 
828
1036
 
829
1037
  <span class="summary_desc"><div class='inline'>
830
- <p>Extend the Date strftime method by replacing Hebrew fields.</p>
1038
+ <p>Set the Gregorian date of this HebrewDate.</p>
831
1039
  </div></span>
832
1040
 
833
1041
  </li>
@@ -836,7 +1044,7 @@ it should respond accordingly.</p>
836
1044
  <li class="public ">
837
1045
  <span class="summary_signature">
838
1046
 
839
- <a href="#to_date-instance_method" title="#to_date (instance method)">- (Date) <strong>to_date</strong> </a>
1047
+ <a href="#set_hebrew_date-instance_method" title="#set_hebrew_date (instance method)">- (void) <strong>set_hebrew_date</strong>(year, month, date, auto_set = false) </a>
840
1048
 
841
1049
 
842
1050
 
@@ -851,16 +1059,22 @@ it should respond accordingly.</p>
851
1059
 
852
1060
 
853
1061
  <span class="summary_desc"><div class='inline'>
854
- <p>Return a Ruby Date corresponding to the Gregorian date.</p>
1062
+ <p>Set the Hebrew date.</p>
855
1063
  </div></span>
856
1064
 
857
1065
  </li>
858
1066
 
859
1067
 
860
- </ul>
861
-
862
-
1068
+ <li class="public ">
1069
+ <span class="summary_signature">
1070
+
1071
+ <a href="#shabbos%3F-instance_method" title="#shabbos? (instance method)">- (Boolean) <strong>shabbos?</strong> </a>
1072
+
863
1073
 
1074
+
1075
+ (also: #shabbat?)
1076
+
1077
+ </span>
864
1078
 
865
1079
 
866
1080
 
@@ -868,11 +1082,21 @@ it should respond accordingly.</p>
868
1082
 
869
1083
 
870
1084
 
871
-
872
- <h3 class="inherited">Methods included from <span class='object_link'><a href="HebrewDateSupport/HolidayMethods/ClassMethods.html" title="HebrewDateSupport::HolidayMethods::ClassMethods (module)">HebrewDateSupport::HolidayMethods::ClassMethods</a></span></h3>
873
- <p class="inherited"><span class='object_link'><a href="HebrewDateSupport/HolidayMethods/ClassMethods.html#from_holiday-instance_method" title="HebrewDateSupport::HolidayMethods::ClassMethods#from_holiday (method)">from_holiday</a></span></p>
874
1085
 
875
1086
 
1087
+ <span class="summary_desc"><div class='inline'></div></span>
1088
+
1089
+ </li>
1090
+
1091
+
1092
+ <li class="public ">
1093
+ <span class="summary_signature">
1094
+
1095
+ <a href="#step-instance_method" title="#step (instance method)">- (Object) <strong>step</strong>(limit, step = 1, &amp;block) </a>
1096
+
1097
+
1098
+
1099
+ </span>
876
1100
 
877
1101
 
878
1102
 
@@ -880,10 +1104,23 @@ it should respond accordingly.</p>
880
1104
 
881
1105
 
882
1106
 
883
- <h3 class="inherited">Methods included from <span class='object_link'><a href="HebrewDateSupport/HolidayMethods.html" title="HebrewDateSupport::HolidayMethods (module)">HebrewDateSupport::HolidayMethods</a></span></h3>
884
- <p class="inherited"><span class='object_link'><a href="HebrewDateSupport/HolidayMethods.html#candle_lighting_day%3F-instance_method" title="HebrewDateSupport::HolidayMethods#candle_lighting_day? (method)">#candle_lighting_day?</a></span>, <span class='object_link'><a href="HebrewDateSupport/HolidayMethods.html#first_day_yom_tov%3F-instance_method" title="HebrewDateSupport::HolidayMethods#first_day_yom_tov? (method)">#first_day_yom_tov?</a></span>, <span class='object_link'><a href="HebrewDateSupport/HolidayMethods.html#havdala_day%3F-instance_method" title="HebrewDateSupport::HolidayMethods#havdala_day? (method)">#havdala_day?</a></span>, <span class='object_link'><a href="HebrewDateSupport/HolidayMethods.html#holiday-instance_method" title="HebrewDateSupport::HolidayMethods#holiday (method)">#holiday</a></span>, <span class='object_link'><a href="HebrewDateSupport/HolidayMethods.html#omer-instance_method" title="HebrewDateSupport::HolidayMethods#omer (method)">#omer</a></span>, <span class='object_link'><a href="HebrewDateSupport/HolidayMethods.html#omer_to_s-instance_method" title="HebrewDateSupport::HolidayMethods#omer_to_s (method)">#omer_to_s</a></span>, <span class='object_link'><a href="HebrewDateSupport/HolidayMethods.html#rosh_chodesh%3F-instance_method" title="HebrewDateSupport::HolidayMethods#rosh_chodesh? (method)">#rosh_chodesh?</a></span></p>
885
1107
 
886
1108
 
1109
+ <span class="summary_desc"><div class='inline'>
1110
+ <p>Iterates evaluation of the given block, which takes a HebrewDate object.</p>
1111
+ </div></span>
1112
+
1113
+ </li>
1114
+
1115
+
1116
+ <li class="public ">
1117
+ <span class="summary_signature">
1118
+
1119
+ <a href="#strftime-instance_method" title="#strftime (instance method)">- (String) <strong>strftime</strong>(format) </a>
1120
+
1121
+
1122
+
1123
+ </span>
887
1124
 
888
1125
 
889
1126
 
@@ -891,10 +1128,101 @@ it should respond accordingly.</p>
891
1128
 
892
1129
 
893
1130
 
894
- <h3 class="inherited">Methods included from <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html" title="HebrewDateSupport::ParshaMethods (module)">HebrewDateSupport::ParshaMethods</a></span></h3>
895
- <p class="inherited"><span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#parsha-instance_method" title="HebrewDateSupport::ParshaMethods#parsha (method)">#parsha</a></span></p>
896
1131
 
897
- <div id="constructor_details" class="method_details_list">
1132
+
1133
+ <span class="summary_desc"><div class='inline'>
1134
+ <p>Extend the Date strftime method by replacing Hebrew fields.</p>
1135
+ </div></span>
1136
+
1137
+ </li>
1138
+
1139
+
1140
+ <li class="public ">
1141
+ <span class="summary_signature">
1142
+
1143
+ <a href="#to_date-instance_method" title="#to_date (instance method)">- (Date) <strong>to_date</strong> </a>
1144
+
1145
+
1146
+
1147
+ </span>
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+
1154
+
1155
+
1156
+
1157
+ <span class="summary_desc"><div class='inline'>
1158
+ <p>Return a Ruby Date corresponding to the Gregorian date.</p>
1159
+ </div></span>
1160
+
1161
+ </li>
1162
+
1163
+
1164
+ <li class="public ">
1165
+ <span class="summary_signature">
1166
+
1167
+ <a href="#upto-instance_method" title="#upto (instance method)">- (Enumerator|self) <strong>upto</strong>(max, &amp;block) </a>
1168
+
1169
+
1170
+
1171
+ </span>
1172
+
1173
+
1174
+
1175
+
1176
+
1177
+
1178
+
1179
+
1180
+
1181
+ <span class="summary_desc"><div class='inline'>
1182
+ <p>This method is equivalent to step(max, 1){ |date| …}.</p>
1183
+ </div></span>
1184
+
1185
+ </li>
1186
+
1187
+
1188
+ </ul>
1189
+
1190
+
1191
+
1192
+
1193
+
1194
+
1195
+
1196
+
1197
+
1198
+
1199
+
1200
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="HebrewDateSupport/HolidayMethods/ClassMethods.html" title="HebrewDateSupport::HolidayMethods::ClassMethods (module)">HebrewDateSupport::HolidayMethods::ClassMethods</a></span></h3>
1201
+ <p class="inherited"><span class='object_link'><a href="HebrewDateSupport/HolidayMethods/ClassMethods.html#from_holiday-instance_method" title="HebrewDateSupport::HolidayMethods::ClassMethods#from_holiday (method)">from_holiday</a></span></p>
1202
+
1203
+
1204
+
1205
+
1206
+
1207
+
1208
+
1209
+
1210
+
1211
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="HebrewDateSupport/HolidayMethods.html" title="HebrewDateSupport::HolidayMethods (module)">HebrewDateSupport::HolidayMethods</a></span></h3>
1212
+ <p class="inherited"><span class='object_link'><a href="HebrewDateSupport/HolidayMethods.html#candle_lighting_day%3F-instance_method" title="HebrewDateSupport::HolidayMethods#candle_lighting_day? (method)">#candle_lighting_day?</a></span>, <span class='object_link'><a href="HebrewDateSupport/HolidayMethods.html#first_day_yom_tov%3F-instance_method" title="HebrewDateSupport::HolidayMethods#first_day_yom_tov? (method)">#first_day_yom_tov?</a></span>, <span class='object_link'><a href="HebrewDateSupport/HolidayMethods.html#havdala_day%3F-instance_method" title="HebrewDateSupport::HolidayMethods#havdala_day? (method)">#havdala_day?</a></span>, <span class='object_link'><a href="HebrewDateSupport/HolidayMethods.html#holiday-instance_method" title="HebrewDateSupport::HolidayMethods#holiday (method)">#holiday</a></span>, <span class='object_link'><a href="HebrewDateSupport/HolidayMethods.html#omer-instance_method" title="HebrewDateSupport::HolidayMethods#omer (method)">#omer</a></span>, <span class='object_link'><a href="HebrewDateSupport/HolidayMethods.html#omer_to_s-instance_method" title="HebrewDateSupport::HolidayMethods#omer_to_s (method)">#omer_to_s</a></span>, <span class='object_link'><a href="HebrewDateSupport/HolidayMethods.html#rosh_chodesh%3F-instance_method" title="HebrewDateSupport::HolidayMethods#rosh_chodesh? (method)">#rosh_chodesh?</a></span>, <span class='object_link'><a href="HebrewDateSupport/HolidayMethods.html#second_day_yom_tov%3F-instance_method" title="HebrewDateSupport::HolidayMethods#second_day_yom_tov? (method)">#second_day_yom_tov?</a></span></p>
1213
+
1214
+
1215
+
1216
+
1217
+
1218
+
1219
+
1220
+
1221
+
1222
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html" title="HebrewDateSupport::ParshaMethods (module)">HebrewDateSupport::ParshaMethods</a></span></h3>
1223
+ <p class="inherited"><span class='object_link'><a href="HebrewDateSupport/ParshaMethods.html#parsha-instance_method" title="HebrewDateSupport::ParshaMethods#parsha (method)">#parsha</a></span></p>
1224
+
1225
+ <div id="constructor_details" class="method_details_list">
898
1226
  <h2>Constructor Details</h2>
899
1227
 
900
1228
  <div class="method_details first">
@@ -941,13 +1269,23 @@ it should respond accordingly.</p>
941
1269
  79
942
1270
  80
943
1271
  81
944
- 82</pre>
1272
+ 82
1273
+ 83
1274
+ 84
1275
+ 85
1276
+ 86
1277
+ 87</pre>
945
1278
  </td>
946
1279
  <td>
947
1280
  <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 64</span>
948
1281
 
949
1282
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_year_or_date_object'>year_or_date_object</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_month'>month</span><span class='op'>=</span><span class='kw'>nil</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>
950
1283
  <span class='ivar'>@abs_date</span> <span class='op'>=</span> <span class='int'>0</span>
1284
+ <span class='id identifier rubyid_skip_hebrew_date'>skip_hebrew_date</span> <span class='op'>=</span> <span class='kw'>false</span>
1285
+ <span class='kw'>if</span> <span class='id identifier rubyid_year_or_date_object'>year_or_date_object</span> <span class='op'>===</span> <span class='kw'>true</span>
1286
+ <span class='id identifier rubyid_skip_hebrew_date'>skip_hebrew_date</span> <span class='op'>=</span> <span class='kw'>true</span>
1287
+ <span class='id identifier rubyid_year_or_date_object'>year_or_date_object</span> <span class='op'>=</span> <span class='kw'>nil</span>
1288
+ <span class='kw'>end</span>
951
1289
 
952
1290
  <span class='kw'>if</span> <span class='id identifier rubyid_month'>month</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_date'>date</span>
953
1291
  <span class='ivar'>@year</span> <span class='op'>=</span> <span class='id identifier rubyid_year_or_date_object'>year_or_date_object</span>
@@ -962,7 +1300,7 @@ it should respond accordingly.</p>
962
1300
  <span class='ivar'>@israeli</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_israeli'>israeli</span>
963
1301
  <span class='ivar'>@ashkenaz</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_ashkenaz'>ashkenaz</span>
964
1302
  <span class='ivar'>@debug</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_debug'>debug</span>
965
- <span class='id identifier rubyid_set_date'>set_date</span><span class='lparen'>(</span><span class='ivar'>@year</span><span class='comma'>,</span> <span class='ivar'>@month</span><span class='comma'>,</span> <span class='ivar'>@date</span><span class='rparen'>)</span>
1303
+ <span class='id identifier rubyid_set_date'>set_date</span><span class='lparen'>(</span><span class='ivar'>@year</span><span class='comma'>,</span> <span class='ivar'>@month</span><span class='comma'>,</span> <span class='ivar'>@date</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_skip_hebrew_date'>skip_hebrew_date</span>
966
1304
  <span class='kw'>super</span><span class='lparen'>(</span><span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='rparen'>)</span>
967
1305
  <span class='kw'>end</span></pre>
968
1306
  </td>
@@ -1037,6 +1375,38 @@ it should respond accordingly.</p>
1037
1375
  </div>
1038
1376
 
1039
1377
 
1378
+ <span id="debug=-class_method"></span>
1379
+ <div class="method_details ">
1380
+ <h3 class="signature " id="debug-class_method">
1381
+
1382
+ + (<tt>Object</tt>) <strong>debug</strong>
1383
+
1384
+
1385
+
1386
+
1387
+
1388
+ </h3><table class="source_code">
1389
+ <tr>
1390
+ <td>
1391
+ <pre class="lines">
1392
+
1393
+
1394
+ 39
1395
+ 40
1396
+ 41</pre>
1397
+ </td>
1398
+ <td>
1399
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 39</span>
1400
+
1401
+ <span class='kw'>def</span> <span class='id identifier rubyid_debug'>debug</span>
1402
+ <span class='ivar'>@debug</span>
1403
+ <span class='kw'>end</span></pre>
1404
+ </td>
1405
+ </tr>
1406
+ </table>
1407
+ </div>
1408
+
1409
+
1040
1410
  <span id="israeli=-class_method"></span>
1041
1411
  <div class="method_details ">
1042
1412
  <h3 class="signature " id="israeli-class_method">
@@ -1168,7 +1538,39 @@ or “Shabbos” depending on the #ashkenaz value.</p>
1168
1538
 
1169
1539
  <span id=""></span>
1170
1540
  <div class="method_details first">
1171
- <h3 class="signature first" id="date-instance_method">
1541
+ <h3 class="signature first" id="abs_date-instance_method">
1542
+
1543
+ - (<tt>Object</tt>) <strong>abs_date</strong> <span class="extras">(readonly)</span>
1544
+
1545
+
1546
+
1547
+
1548
+
1549
+ </h3><table class="source_code">
1550
+ <tr>
1551
+ <td>
1552
+ <pre class="lines">
1553
+
1554
+
1555
+ 62
1556
+ 63
1557
+ 64</pre>
1558
+ </td>
1559
+ <td>
1560
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 62</span>
1561
+
1562
+ <span class='kw'>def</span> <span class='id identifier rubyid_abs_date'>abs_date</span>
1563
+ <span class='ivar'>@abs_date</span>
1564
+ <span class='kw'>end</span></pre>
1565
+ </td>
1566
+ </tr>
1567
+ </table>
1568
+ </div>
1569
+
1570
+
1571
+ <span id=""></span>
1572
+ <div class="method_details ">
1573
+ <h3 class="signature " id="date-instance_method">
1172
1574
 
1173
1575
  - (<tt>Integer</tt>) <strong>date</strong> <span class="extras">(readonly)</span>
1174
1576
 
@@ -1539,7 +1941,84 @@ or “Shabbos” depending on the #ashkenaz value.</p>
1539
1941
 
1540
1942
 
1541
1943
  <div class="method_details first">
1542
- <h3 class="signature first" id="hebrew_leap_year?-class_method">
1944
+ <h3 class="signature first" id="day_name-class_method">
1945
+
1946
+ + (<tt>String</tt>) <strong>day_name</strong>(day)
1947
+
1948
+
1949
+
1950
+
1951
+
1952
+ </h3><div class="docstring">
1953
+ <div class="discussion">
1954
+
1955
+ <p>Get the name of the given day (1-7).</p>
1956
+
1957
+
1958
+ </div>
1959
+ </div>
1960
+ <div class="tags">
1961
+ <p class="tag_title">Parameters:</p>
1962
+ <ul class="param">
1963
+
1964
+ <li>
1965
+
1966
+ <span class='name'>day</span>
1967
+
1968
+
1969
+ <span class='type'>(<tt>Integer</tt>)</span>
1970
+
1971
+
1972
+
1973
+ </li>
1974
+
1975
+ </ul>
1976
+
1977
+ <p class="tag_title">Returns:</p>
1978
+ <ul class="return">
1979
+
1980
+ <li>
1981
+
1982
+
1983
+ <span class='type'>(<tt>String</tt>)</span>
1984
+
1985
+
1986
+
1987
+ </li>
1988
+
1989
+ </ul>
1990
+
1991
+ </div><table class="source_code">
1992
+ <tr>
1993
+ <td>
1994
+ <pre class="lines">
1995
+
1996
+
1997
+ 452
1998
+ 453
1999
+ 454
2000
+ 455
2001
+ 456
2002
+ 457
2003
+ 458</pre>
2004
+ </td>
2005
+ <td>
2006
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 452</span>
2007
+
2008
+ <span class='kw'>def</span> <span class='id identifier rubyid_day_name'>day_name</span><span class='lparen'>(</span><span class='id identifier rubyid_day'>day</span><span class='rparen'>)</span>
2009
+ <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_replace_saturday'>replace_saturday</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_day'>day</span> <span class='op'>==</span> <span class='int'>7</span>
2010
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ashkenaz'>ashkenaz</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Shabbos</span><span class='tstring_end'>&#39;</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Shabbat</span><span class='tstring_end'>&#39;</span></span>
2011
+ <span class='kw'>else</span>
2012
+ <span class='const'>Date</span><span class='op'>::</span><span class='const'>DAYNAMES</span><span class='lbracket'>[</span><span class='id identifier rubyid_day'>day</span> <span class='op'>-</span> <span class='int'>1</span><span class='rbracket'>]</span>
2013
+ <span class='kw'>end</span>
2014
+ <span class='kw'>end</span></pre>
2015
+ </td>
2016
+ </tr>
2017
+ </table>
2018
+ </div>
2019
+
2020
+ <div class="method_details ">
2021
+ <h3 class="signature " id="hebrew_leap_year?-class_method">
1543
2022
 
1544
2023
  + (<tt>Boolean</tt>) <strong>hebrew_leap_year?</strong>(year)
1545
2024
 
@@ -1597,12 +2076,12 @@ or “Shabbos” depending on the #ashkenaz value.</p>
1597
2076
  <pre class="lines">
1598
2077
 
1599
2078
 
1600
- 355
1601
- 356
1602
- 357</pre>
2079
+ 438
2080
+ 439
2081
+ 440</pre>
1603
2082
  </td>
1604
2083
  <td>
1605
- <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 355</span>
2084
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 438</span>
1606
2085
 
1607
2086
  <span class='kw'>def</span> <span class='id identifier rubyid_hebrew_leap_year?'>hebrew_leap_year?</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span>
1608
2087
  <span class='lparen'>(</span><span class='lparen'>(</span><span class='lparen'>(</span><span class='int'>7</span> <span class='op'>*</span> <span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='int'>1</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_remainder'>remainder</span><span class='lparen'>(</span><span class='int'>19</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='op'>&lt;</span> <span class='int'>7</span>
@@ -1615,7 +2094,7 @@ or “Shabbos” depending on the #ashkenaz value.</p>
1615
2094
  <div class="method_details ">
1616
2095
  <h3 class="signature " id="hebrew_month_to_s-class_method">
1617
2096
 
1618
- + (<tt>Object</tt>) <strong>hebrew_month_to_s</strong>(month)
2097
+ + (<tt>String</tt>) <strong>hebrew_month_to_s</strong>(month, year = nil)
1619
2098
 
1620
2099
 
1621
2100
 
@@ -1630,7 +2109,48 @@ or “Shabbos” depending on the #ashkenaz value.</p>
1630
2109
  </div>
1631
2110
  </div>
1632
2111
  <div class="tags">
2112
+ <p class="tag_title">Parameters:</p>
2113
+ <ul class="param">
2114
+
2115
+ <li>
2116
+
2117
+ <span class='name'>month</span>
2118
+
2119
+
2120
+ <span class='type'>(<tt>Integer</tt>)</span>
2121
+
2122
+
2123
+
2124
+ </li>
2125
+
2126
+ <li>
2127
+
2128
+ <span class='name'>year</span>
2129
+
2130
+
2131
+ <span class='type'>(<tt>Integer</tt>)</span>
2132
+
2133
+
2134
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
2135
+
2136
+
2137
+ </li>
2138
+
2139
+ </ul>
2140
+
2141
+ <p class="tag_title">Returns:</p>
2142
+ <ul class="return">
2143
+
2144
+ <li>
2145
+
2146
+
2147
+ <span class='type'>(<tt>String</tt>)</span>
2148
+
2149
+
2150
+
2151
+ </li>
1633
2152
 
2153
+ </ul>
1634
2154
 
1635
2155
  </div><table class="source_code">
1636
2156
  <tr>
@@ -1638,23 +2158,33 @@ or “Shabbos” depending on the #ashkenaz value.</p>
1638
2158
  <pre class="lines">
1639
2159
 
1640
2160
 
1641
- 276
1642
- 277
1643
- 278
1644
- 279
1645
- 280
1646
- 281
1647
- 282</pre>
2161
+ 342
2162
+ 343
2163
+ 344
2164
+ 345
2165
+ 346
2166
+ 347
2167
+ 348
2168
+ 349
2169
+ 350
2170
+ 351
2171
+ 352
2172
+ 353</pre>
1648
2173
  </td>
1649
2174
  <td>
1650
- <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 276</span>
2175
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 342</span>
1651
2176
 
1652
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_hebrew_month_to_s'>hebrew_month_to_s</span><span class='lparen'>(</span><span class='id identifier rubyid_month'>month</span><span class='rparen'>)</span>
1653
- <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='const'>HEBREW_MONTH_NAMES</span><span class='lbracket'>[</span><span class='id identifier rubyid_month'>month</span> <span class='op'>-</span> <span class='int'>1</span><span class='rbracket'>]</span>
1654
- <span class='kw'>if</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Teves</span><span class='tstring_end'>&#39;</span></span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ashkenaz'>ashkenaz</span>
1655
- <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Tevet</span><span class='tstring_end'>&#39;</span></span>
2177
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_hebrew_month_to_s'>hebrew_month_to_s</span><span class='lparen'>(</span><span class='id identifier rubyid_month'>month</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>
2178
+ <span class='id identifier rubyid_year'>year</span> <span class='op'>||=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='period'>.</span><span class='id identifier rubyid_hebrew_year'>hebrew_year</span>
2179
+ <span class='kw'>if</span> <span class='id identifier rubyid_hebrew_leap_year?'>hebrew_leap_year?</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_month'>month</span> <span class='op'>==</span> <span class='int'>12</span>
2180
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Adar I</span><span class='tstring_end'>&#39;</span></span>
2181
+ <span class='kw'>else</span>
2182
+ <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='const'>HEBREW_MONTH_NAMES</span><span class='lbracket'>[</span><span class='id identifier rubyid_month'>month</span> <span class='op'>-</span> <span class='int'>1</span><span class='rbracket'>]</span>
2183
+ <span class='kw'>if</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Teves</span><span class='tstring_end'>&#39;</span></span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ashkenaz'>ashkenaz</span>
2184
+ <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Tevet</span><span class='tstring_end'>&#39;</span></span>
2185
+ <span class='kw'>end</span>
2186
+ <span class='id identifier rubyid_name'>name</span>
1656
2187
  <span class='kw'>end</span>
1657
- <span class='id identifier rubyid_name'>name</span>
1658
2188
  <span class='kw'>end</span></pre>
1659
2189
  </td>
1660
2190
  </tr>
@@ -1720,12 +2250,12 @@ or “Shabbos” depending on the #ashkenaz value.</p>
1720
2250
  <pre class="lines">
1721
2251
 
1722
2252
 
1723
- 362
1724
- 363
1725
- 364</pre>
2253
+ 445
2254
+ 446
2255
+ 447</pre>
1726
2256
  </td>
1727
2257
  <td>
1728
- <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 362</span>
2258
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 445</span>
1729
2259
 
1730
2260
  <span class='kw'>def</span> <span class='id identifier rubyid_last_month_of_hebrew_year'>last_month_of_hebrew_year</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span>
1731
2261
  <span class='id identifier rubyid_hebrew_leap_year?'>hebrew_leap_year?</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='int'>13</span> <span class='op'>:</span> <span class='int'>12</span>
@@ -1813,18 +2343,24 @@ or “Shabbos” depending on the #ashkenaz value.</p>
1813
2343
  <pre class="lines">
1814
2344
 
1815
2345
 
1816
- 117
1817
- 118
1818
- 119
1819
- 120
1820
- 121</pre>
2346
+ 166
2347
+ 167
2348
+ 168
2349
+ 169
2350
+ 170
2351
+ 171
2352
+ 172
2353
+ 173</pre>
1821
2354
  </td>
1822
2355
  <td>
1823
- <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 117</span>
2356
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 166</span>
1824
2357
 
1825
2358
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_new_from_hebrew'>new_from_hebrew</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='comma'>,</span> <span class='id identifier rubyid_month'>month</span><span class='comma'>,</span> <span class='id identifier rubyid_date'>date</span><span class='rparen'>)</span>
1826
- <span class='id identifier rubyid_d'>d</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
1827
- <span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_set_hebrew_date'>set_hebrew_date</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='comma'>,</span> <span class='id identifier rubyid_month'>month</span><span class='comma'>,</span> <span class='id identifier rubyid_date'>date</span><span class='rparen'>)</span>
2359
+ <span class='id identifier rubyid_d'>d</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>true</span><span class='rparen'>)</span>
2360
+ <span class='ivar'>@year</span> <span class='op'>=</span> <span class='int'>1</span>
2361
+ <span class='ivar'>@month</span> <span class='op'>=</span> <span class='int'>1</span>
2362
+ <span class='ivar'>@date</span> <span class='op'>=</span> <span class='int'>1</span>
2363
+ <span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_set_hebrew_date'>set_hebrew_date</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='comma'>,</span> <span class='id identifier rubyid_month'>month</span><span class='comma'>,</span> <span class='id identifier rubyid_date'>date</span><span class='comma'>,</span> <span class='kw'>true</span><span class='rparen'>)</span>
1828
2364
  <span class='id identifier rubyid_d'>d</span>
1829
2365
  <span class='kw'>end</span></pre>
1830
2366
  </td>
@@ -1839,7 +2375,291 @@ or “Shabbos” depending on the #ashkenaz value.</p>
1839
2375
 
1840
2376
 
1841
2377
  <div class="method_details first">
1842
- <h3 class="signature first" id="back-instance_method">
2378
+ <h3 class="signature first" id="+-instance_method">
2379
+
2380
+ - (<tt><span class='object_link'><a href="" title="HebrewDate (class)">HebrewDate</a></span></tt>) <strong>+</strong>(other)
2381
+
2382
+
2383
+
2384
+
2385
+
2386
+ </h3><div class="docstring">
2387
+ <div class="discussion">
2388
+
2389
+
2390
+ </div>
2391
+ </div>
2392
+ <div class="tags">
2393
+ <p class="tag_title">Parameters:</p>
2394
+ <ul class="param">
2395
+
2396
+ <li>
2397
+
2398
+ <span class='name'>other</span>
2399
+
2400
+
2401
+ <span class='type'>(<tt>Fixnum</tt>)</span>
2402
+
2403
+
2404
+
2405
+ </li>
2406
+
2407
+ </ul>
2408
+
2409
+ <p class="tag_title">Returns:</p>
2410
+ <ul class="return">
2411
+
2412
+ <li>
2413
+
2414
+
2415
+ <span class='type'>(<tt><span class='object_link'><a href="" title="HebrewDate (class)">HebrewDate</a></span></tt>)</span>
2416
+
2417
+
2418
+
2419
+ </li>
2420
+
2421
+ </ul>
2422
+
2423
+ </div><table class="source_code">
2424
+ <tr>
2425
+ <td>
2426
+ <pre class="lines">
2427
+
2428
+
2429
+ 114
2430
+ 115
2431
+ 116
2432
+ 117
2433
+ 118
2434
+ 119
2435
+ 120</pre>
2436
+ </td>
2437
+ <td>
2438
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 114</span>
2439
+
2440
+ <span class='kw'>def</span> <span class='op'>+</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
2441
+ <span class='id identifier rubyid_date'>date</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_clone'>clone</span>
2442
+ <span class='lparen'>(</span><span class='int'>1</span><span class='op'>..</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</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_i'>i</span><span class='op'>|</span>
2443
+ <span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_forward'>forward</span>
2444
+ <span class='kw'>end</span>
2445
+ <span class='id identifier rubyid_date'>date</span>
2446
+ <span class='kw'>end</span></pre>
2447
+ </td>
2448
+ </tr>
2449
+ </table>
2450
+ </div>
2451
+
2452
+ <div class="method_details ">
2453
+ <h3 class="signature " id="--instance_method">
2454
+
2455
+ - (<tt><span class='object_link'><a href="" title="HebrewDate (class)">HebrewDate</a></span></tt>) <strong>-</strong>(other)
2456
+
2457
+
2458
+
2459
+
2460
+
2461
+ </h3><div class="docstring">
2462
+ <div class="discussion">
2463
+
2464
+
2465
+ </div>
2466
+ </div>
2467
+ <div class="tags">
2468
+ <p class="tag_title">Parameters:</p>
2469
+ <ul class="param">
2470
+
2471
+ <li>
2472
+
2473
+ <span class='name'>other</span>
2474
+
2475
+
2476
+ <span class='type'>(<tt>Fixnum</tt>)</span>
2477
+
2478
+
2479
+
2480
+ </li>
2481
+
2482
+ </ul>
2483
+
2484
+ <p class="tag_title">Returns:</p>
2485
+ <ul class="return">
2486
+
2487
+ <li>
2488
+
2489
+
2490
+ <span class='type'>(<tt><span class='object_link'><a href="" title="HebrewDate (class)">HebrewDate</a></span></tt>)</span>
2491
+
2492
+
2493
+
2494
+ </li>
2495
+
2496
+ </ul>
2497
+
2498
+ </div><table class="source_code">
2499
+ <tr>
2500
+ <td>
2501
+ <pre class="lines">
2502
+
2503
+
2504
+ 124
2505
+ 125
2506
+ 126
2507
+ 127
2508
+ 128
2509
+ 129
2510
+ 130</pre>
2511
+ </td>
2512
+ <td>
2513
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 124</span>
2514
+
2515
+ <span class='kw'>def</span> <span class='op'>-</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
2516
+ <span class='id identifier rubyid_date'>date</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_clone'>clone</span>
2517
+ <span class='lparen'>(</span><span class='int'>1</span><span class='op'>..</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</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_i'>i</span><span class='op'>|</span>
2518
+ <span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_back'>back</span>
2519
+ <span class='kw'>end</span>
2520
+ <span class='id identifier rubyid_date'>date</span>
2521
+ <span class='kw'>end</span></pre>
2522
+ </td>
2523
+ </tr>
2524
+ </table>
2525
+ </div>
2526
+
2527
+ <div class="method_details ">
2528
+ <h3 class="signature " id="<=>-instance_method">
2529
+
2530
+ - (<tt>Integer</tt>) <strong>&lt;=&gt;</strong>(other)
2531
+
2532
+
2533
+
2534
+
2535
+
2536
+ </h3><div class="docstring">
2537
+ <div class="discussion">
2538
+
2539
+ <p>Comparison operator.</p>
2540
+
2541
+
2542
+ </div>
2543
+ </div>
2544
+ <div class="tags">
2545
+ <p class="tag_title">Parameters:</p>
2546
+ <ul class="param">
2547
+
2548
+ <li>
2549
+
2550
+ <span class='name'>other</span>
2551
+
2552
+
2553
+ <span class='type'>(<tt><span class='object_link'><a href="" title="HebrewDate (class)">HebrewDate</a></span></tt>)</span>
2554
+
2555
+
2556
+
2557
+ </li>
2558
+
2559
+ </ul>
2560
+
2561
+ <p class="tag_title">Returns:</p>
2562
+ <ul class="return">
2563
+
2564
+ <li>
2565
+
2566
+
2567
+ <span class='type'>(<tt>Integer</tt>)</span>
2568
+
2569
+
2570
+
2571
+ &mdash;
2572
+ <div class='inline'>
2573
+ <p>-1, 0, or 1</p>
2574
+ </div>
2575
+
2576
+ </li>
2577
+
2578
+ </ul>
2579
+
2580
+ </div><table class="source_code">
2581
+ <tr>
2582
+ <td>
2583
+ <pre class="lines">
2584
+
2585
+
2586
+ 135
2587
+ 136
2588
+ 137</pre>
2589
+ </td>
2590
+ <td>
2591
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 135</span>
2592
+
2593
+ <span class='kw'>def</span> <span class='op'>&lt;=&gt;</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
2594
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_to_date'>to_date</span> <span class='op'>&lt;=&gt;</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_to_date'>to_date</span>
2595
+ <span class='kw'>end</span></pre>
2596
+ </td>
2597
+ </tr>
2598
+ </table>
2599
+ </div>
2600
+
2601
+ <div class="method_details ">
2602
+ <h3 class="signature " id="__getobj__-instance_method">
2603
+
2604
+ - (<tt>Object</tt>) <strong>__getobj__</strong>
2605
+
2606
+
2607
+
2608
+
2609
+
2610
+ </h3><table class="source_code">
2611
+ <tr>
2612
+ <td>
2613
+ <pre class="lines">
2614
+
2615
+
2616
+ 103
2617
+ 104
2618
+ 105</pre>
2619
+ </td>
2620
+ <td>
2621
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 103</span>
2622
+
2623
+ <span class='kw'>def</span> <span class='id identifier rubyid___getobj__'>__getobj__</span>
2624
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_to_date'>to_date</span>
2625
+ <span class='kw'>end</span></pre>
2626
+ </td>
2627
+ </tr>
2628
+ </table>
2629
+ </div>
2630
+
2631
+ <div class="method_details ">
2632
+ <h3 class="signature " id="__setobj__-instance_method">
2633
+
2634
+ - (<tt>Object</tt>) <strong>__setobj__</strong>(obj)
2635
+
2636
+
2637
+
2638
+
2639
+
2640
+ </h3><table class="source_code">
2641
+ <tr>
2642
+ <td>
2643
+ <pre class="lines">
2644
+
2645
+
2646
+ 108
2647
+ 109
2648
+ 110</pre>
2649
+ </td>
2650
+ <td>
2651
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 108</span>
2652
+
2653
+ <span class='kw'>def</span> <span class='id identifier rubyid___setobj__'>__setobj__</span><span class='lparen'>(</span><span class='id identifier rubyid_obj'>obj</span><span class='rparen'>)</span>
2654
+ <span class='comment'># do nothing
2655
+ </span><span class='kw'>end</span></pre>
2656
+ </td>
2657
+ </tr>
2658
+ </table>
2659
+ </div>
2660
+
2661
+ <div class="method_details ">
2662
+ <h3 class="signature " id="back-instance_method">
1843
2663
 
1844
2664
  - (<tt><span class='object_link'><a href="" title="HebrewDate (class)">HebrewDate</a></span></tt>) <strong>back</strong>
1845
2665
 
@@ -1882,45 +2702,45 @@ or “Shabbos” depending on the #ashkenaz value.</p>
1882
2702
  <pre class="lines">
1883
2703
 
1884
2704
 
1885
- 232
1886
- 233
1887
- 234
1888
- 235
1889
- 236
1890
- 237
1891
- 238
1892
- 239
1893
- 240
1894
- 241
1895
- 242
1896
- 243
1897
- 244
1898
- 245
1899
- 246
1900
- 247
1901
- 248
1902
- 249
1903
- 250
1904
- 251
1905
- 252
1906
- 253
1907
- 254
1908
- 255
1909
- 256
1910
- 257
1911
- 258
1912
- 259
1913
- 260
1914
- 261
1915
- 262
1916
- 263
1917
- 264
1918
- 265
1919
- 266
1920
- 267</pre>
2705
+ 295
2706
+ 296
2707
+ 297
2708
+ 298
2709
+ 299
2710
+ 300
2711
+ 301
2712
+ 302
2713
+ 303
2714
+ 304
2715
+ 305
2716
+ 306
2717
+ 307
2718
+ 308
2719
+ 309
2720
+ 310
2721
+ 311
2722
+ 312
2723
+ 313
2724
+ 314
2725
+ 315
2726
+ 316
2727
+ 317
2728
+ 318
2729
+ 319
2730
+ 320
2731
+ 321
2732
+ 322
2733
+ 323
2734
+ 324
2735
+ 325
2736
+ 326
2737
+ 327
2738
+ 328
2739
+ 329
2740
+ 330</pre>
1921
2741
  </td>
1922
2742
  <td>
1923
- <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 232</span>
2743
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 295</span>
1924
2744
 
1925
2745
  <span class='kw'>def</span> <span class='id identifier rubyid_back'>back</span>
1926
2746
  <span class='comment'># Change Gregorian date
@@ -1964,9 +2784,9 @@ or “Shabbos” depending on the #ashkenaz value.</p>
1964
2784
  </div>
1965
2785
 
1966
2786
  <div class="method_details ">
1967
- <h3 class="signature " id="clone-instance_method">
2787
+ <h3 class="signature " id="day-instance_method">
1968
2788
 
1969
- - (<tt><span class='object_link'><a href="" title="HebrewDate (class)">HebrewDate</a></span></tt>) <strong>clone</strong>
2789
+ - (<tt>Integer</tt>) <strong>day</strong>
1970
2790
 
1971
2791
 
1972
2792
 
@@ -1975,7 +2795,7 @@ or “Shabbos” depending on the #ashkenaz value.</p>
1975
2795
  </h3><div class="docstring">
1976
2796
  <div class="discussion">
1977
2797
 
1978
- <p>Get a clone of this object.</p>
2798
+ <p>Get the day of the week.</p>
1979
2799
 
1980
2800
 
1981
2801
  </div>
@@ -1988,10 +2808,15 @@ or “Shabbos” depending on the #ashkenaz value.</p>
1988
2808
  <li>
1989
2809
 
1990
2810
 
1991
- <span class='type'>(<tt><span class='object_link'><a href="" title="HebrewDate (class)">HebrewDate</a></span></tt>)</span>
2811
+ <span class='type'>(<tt>Integer</tt>)</span>
1992
2812
 
1993
2813
 
1994
2814
 
2815
+ &mdash;
2816
+ <div class='inline'>
2817
+ <p>the day of the week, 1-7.</p>
2818
+ </div>
2819
+
1995
2820
  </li>
1996
2821
 
1997
2822
  </ul>
@@ -2002,15 +2827,15 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2002
2827
  <pre class="lines">
2003
2828
 
2004
2829
 
2005
- 109
2006
- 110
2007
- 111</pre>
2830
+ 410
2831
+ 411
2832
+ 412</pre>
2008
2833
  </td>
2009
2834
  <td>
2010
- <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 109</span>
2835
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 410</span>
2011
2836
 
2012
- <span class='kw'>def</span> <span class='id identifier rubyid_clone'>clone</span>
2013
- <span class='const'>HebrewDate</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_to_date'>to_date</span><span class='rparen'>)</span>
2837
+ <span class='kw'>def</span> <span class='id identifier rubyid_day'>day</span>
2838
+ <span class='id identifier rubyid_to_date'>to_date</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>%w</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span> <span class='op'>+</span> <span class='int'>1</span>
2014
2839
  <span class='kw'>end</span></pre>
2015
2840
  </td>
2016
2841
  </tr>
@@ -2018,9 +2843,9 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2018
2843
  </div>
2019
2844
 
2020
2845
  <div class="method_details ">
2021
- <h3 class="signature " id="day-instance_method">
2846
+ <h3 class="signature " id="downto-instance_method">
2022
2847
 
2023
- - (<tt>Integer</tt>) <strong>day</strong>
2848
+ - (<tt>Enumerator|self</tt>) <strong>downto</strong>(min, &amp;block)
2024
2849
 
2025
2850
 
2026
2851
 
@@ -2029,27 +2854,37 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2029
2854
  </h3><div class="docstring">
2030
2855
  <div class="discussion">
2031
2856
 
2032
- <p>Get the day of the week.</p>
2857
+ <p>This method is equivalent to step(min, -1){|date| …}.</p>
2033
2858
 
2034
2859
 
2035
2860
  </div>
2036
2861
  </div>
2037
2862
  <div class="tags">
2863
+ <p class="tag_title">Parameters:</p>
2864
+ <ul class="param">
2865
+
2866
+ <li>
2867
+
2868
+ <span class='name'>min</span>
2869
+
2870
+
2871
+ <span class='type'>(<tt>Integer</tt>)</span>
2872
+
2873
+
2874
+
2875
+ </li>
2038
2876
 
2877
+ </ul>
2878
+
2039
2879
  <p class="tag_title">Returns:</p>
2040
2880
  <ul class="return">
2041
2881
 
2042
2882
  <li>
2043
2883
 
2044
2884
 
2045
- <span class='type'>(<tt>Integer</tt>)</span>
2046
-
2885
+ <span class='type'>(<tt>Enumerator|self</tt>)</span>
2047
2886
 
2048
2887
 
2049
- &mdash;
2050
- <div class='inline'>
2051
- <p>the day of the week, 1-7.</p>
2052
- </div>
2053
2888
 
2054
2889
  </li>
2055
2890
 
@@ -2061,15 +2896,17 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2061
2896
  <pre class="lines">
2062
2897
 
2063
2898
 
2064
- 327
2065
- 328
2066
- 329</pre>
2899
+ 149
2900
+ 150
2901
+ 151
2902
+ 152</pre>
2067
2903
  </td>
2068
2904
  <td>
2069
- <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 327</span>
2905
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 149</span>
2070
2906
 
2071
- <span class='kw'>def</span> <span class='id identifier rubyid_day'>day</span>
2072
- <span class='id identifier rubyid_to_date'>to_date</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>%w</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span> <span class='op'>+</span> <span class='int'>1</span>
2907
+ <span class='kw'>def</span> <span class='id identifier rubyid_downto'>downto</span><span class='lparen'>(</span><span class='id identifier rubyid_min'>min</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
2908
+ <span class='kw'>return</span> <span class='id identifier rubyid_to_enum'>to_enum</span><span class='lparen'>(</span><span class='symbol'>:downto</span><span class='comma'>,</span> <span class='id identifier rubyid_min'>min</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
2909
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_step'>step</span><span class='lparen'>(</span><span class='id identifier rubyid_min'>min</span><span class='comma'>,</span> <span class='op'>-</span><span class='int'>1</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
2073
2910
  <span class='kw'>end</span></pre>
2074
2911
  </td>
2075
2912
  </tr>
@@ -2083,10 +2920,6 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2083
2920
 
2084
2921
 
2085
2922
 
2086
- <span class="aliases">Also known as:
2087
- <span class="names"><span id='next-instance_method'>next</span>, <span id='succ-instance_method'>succ</span></span>
2088
- </span>
2089
-
2090
2923
 
2091
2924
 
2092
2925
  </h3><div class="docstring">
@@ -2124,51 +2957,51 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2124
2957
  <pre class="lines">
2125
2958
 
2126
2959
 
2127
- 184
2128
- 185
2129
- 186
2130
- 187
2131
- 188
2132
- 189
2133
- 190
2134
- 191
2135
- 192
2136
- 193
2137
- 194
2138
- 195
2139
- 196
2140
- 197
2141
- 198
2142
- 199
2143
- 200
2144
- 201
2145
- 202
2146
- 203
2147
- 204
2148
- 205
2149
- 206
2150
- 207
2151
- 208
2152
- 209
2153
- 210
2154
- 211
2155
- 212
2156
- 213
2157
- 214
2158
- 215
2159
- 216
2160
- 217
2161
- 218
2162
- 219
2163
- 220
2164
- 221
2165
- 222
2166
- 223
2167
- 224
2168
- 225</pre>
2960
+ 242
2961
+ 243
2962
+ 244
2963
+ 245
2964
+ 246
2965
+ 247
2966
+ 248
2967
+ 249
2968
+ 250
2969
+ 251
2970
+ 252
2971
+ 253
2972
+ 254
2973
+ 255
2974
+ 256
2975
+ 257
2976
+ 258
2977
+ 259
2978
+ 260
2979
+ 261
2980
+ 262
2981
+ 263
2982
+ 264
2983
+ 265
2984
+ 266
2985
+ 267
2986
+ 268
2987
+ 269
2988
+ 270
2989
+ 271
2990
+ 272
2991
+ 273
2992
+ 274
2993
+ 275
2994
+ 276
2995
+ 277
2996
+ 278
2997
+ 279
2998
+ 280
2999
+ 281
3000
+ 282
3001
+ 283</pre>
2169
3002
  </td>
2170
3003
  <td>
2171
- <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 184</span>
3004
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 242</span>
2172
3005
 
2173
3006
  <span class='kw'>def</span> <span class='id identifier rubyid_forward'>forward</span>
2174
3007
  <span class='comment'># Change Gregorian date
@@ -2256,12 +3089,12 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2256
3089
  <pre class="lines">
2257
3090
 
2258
3091
 
2259
- 376
2260
- 377
2261
- 378</pre>
3092
+ 470
3093
+ 471
3094
+ 472</pre>
2262
3095
  </td>
2263
3096
  <td>
2264
- <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 376</span>
3097
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 470</span>
2265
3098
 
2266
3099
  <span class='kw'>def</span> <span class='id identifier rubyid_hebrew_leap_year?'>hebrew_leap_year?</span>
2267
3100
  <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_hebrew_leap_year?'>hebrew_leap_year?</span><span class='lparen'>(</span><span class='ivar'>@hebrew_year</span><span class='rparen'>)</span>
@@ -2310,15 +3143,45 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2310
3143
  <pre class="lines">
2311
3144
 
2312
3145
 
2313
- 271
2314
- 272
2315
- 273</pre>
3146
+ 334
3147
+ 335
3148
+ 336</pre>
2316
3149
  </td>
2317
3150
  <td>
2318
- <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 271</span>
3151
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 334</span>
2319
3152
 
2320
3153
  <span class='kw'>def</span> <span class='id identifier rubyid_hebrew_month_to_s'>hebrew_month_to_s</span>
2321
- <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_hebrew_month_to_s'>hebrew_month_to_s</span><span class='lparen'>(</span><span class='ivar'>@hebrew_month</span><span class='rparen'>)</span>
3154
+ <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_hebrew_month_to_s'>hebrew_month_to_s</span><span class='lparen'>(</span><span class='ivar'>@hebrew_month</span><span class='comma'>,</span> <span class='ivar'>@hebrew_year</span><span class='rparen'>)</span>
3155
+ <span class='kw'>end</span></pre>
3156
+ </td>
3157
+ </tr>
3158
+ </table>
3159
+ </div>
3160
+
3161
+ <div class="method_details ">
3162
+ <h3 class="signature " id="inspect-instance_method">
3163
+
3164
+ - (<tt>Object</tt>) <strong>inspect</strong>
3165
+
3166
+
3167
+
3168
+
3169
+
3170
+ </h3><table class="source_code">
3171
+ <tr>
3172
+ <td>
3173
+ <pre class="lines">
3174
+
3175
+
3176
+ 90
3177
+ 91
3178
+ 92</pre>
3179
+ </td>
3180
+ <td>
3181
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 90</span>
3182
+
3183
+ <span class='kw'>def</span> <span class='id identifier rubyid_inspect'>inspect</span>
3184
+ <span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>*Y-*-m-*-d (%Y-%-m-%-d)</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
2322
3185
  <span class='kw'>end</span></pre>
2323
3186
  </td>
2324
3187
  </tr>
@@ -2386,24 +3249,24 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2386
3249
  <pre class="lines">
2387
3250
 
2388
3251
 
2389
- 383
2390
- 384
2391
- 385
2392
- 386
2393
- 387
2394
- 388
2395
- 389
2396
- 390
2397
- 391
2398
- 392
2399
- 393
2400
- 394
2401
- 395
2402
- 396
2403
- 397</pre>
3252
+ 477
3253
+ 478
3254
+ 479
3255
+ 480
3256
+ 481
3257
+ 482
3258
+ 483
3259
+ 484
3260
+ 485
3261
+ 486
3262
+ 487
3263
+ 488
3264
+ 489
3265
+ 490
3266
+ 491</pre>
2404
3267
  </td>
2405
3268
  <td>
2406
- <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 383</span>
3269
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 477</span>
2407
3270
 
2408
3271
  <span class='kw'>def</span> <span class='id identifier rubyid_last_day_of_hebrew_month'>last_day_of_hebrew_month</span><span class='lparen'>(</span><span class='id identifier rubyid_month'>month</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
2409
3272
  <span class='id identifier rubyid_month'>month</span> <span class='op'>||=</span> <span class='ivar'>@hebrew_month</span>
@@ -2486,25 +3349,25 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2486
3349
  <pre class="lines">
2487
3350
 
2488
3351
 
2489
- 334
2490
- 335
2491
- 336
2492
- 337
2493
- 338
2494
- 339
2495
- 340
2496
- 341
2497
- 342
2498
- 343
2499
- 344
2500
- 345
2501
- 346
2502
- 347
2503
- 348
2504
- 349</pre>
3352
+ 417
3353
+ 418
3354
+ 419
3355
+ 420
3356
+ 421
3357
+ 422
3358
+ 423
3359
+ 424
3360
+ 425
3361
+ 426
3362
+ 427
3363
+ 428
3364
+ 429
3365
+ 430
3366
+ 431
3367
+ 432</pre>
2505
3368
  </td>
2506
3369
  <td>
2507
- <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 334</span>
3370
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 417</span>
2508
3371
 
2509
3372
  <span class='kw'>def</span> <span class='id identifier rubyid_last_day_of_month'>last_day_of_month</span><span class='lparen'>(</span><span class='id identifier rubyid_month'>month</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
2510
3373
  <span class='id identifier rubyid_month'>month</span> <span class='op'>||=</span> <span class='ivar'>@month</span>
@@ -2530,16 +3393,74 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2530
3393
  <div class="method_details ">
2531
3394
  <h3 class="signature " id="last_month_of_hebrew_year-instance_method">
2532
3395
 
2533
- - (<tt>Integer</tt>) <strong>last_month_of_hebrew_year</strong>
3396
+ - (<tt>Integer</tt>) <strong>last_month_of_hebrew_year</strong>
3397
+
3398
+
3399
+
3400
+
3401
+
3402
+ </h3><div class="docstring">
3403
+ <div class="discussion">
3404
+
3405
+ <p>The last month in this Hebrew year (12 or 13).</p>
3406
+
3407
+
3408
+ </div>
3409
+ </div>
3410
+ <div class="tags">
3411
+
3412
+ <p class="tag_title">Returns:</p>
3413
+ <ul class="return">
3414
+
3415
+ <li>
3416
+
3417
+
3418
+ <span class='type'>(<tt>Integer</tt>)</span>
3419
+
3420
+
3421
+
3422
+ </li>
3423
+
3424
+ </ul>
3425
+
3426
+ </div><table class="source_code">
3427
+ <tr>
3428
+ <td>
3429
+ <pre class="lines">
3430
+
3431
+
3432
+ 464
3433
+ 465
3434
+ 466</pre>
3435
+ </td>
3436
+ <td>
3437
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 464</span>
3438
+
3439
+ <span class='kw'>def</span> <span class='id identifier rubyid_last_month_of_hebrew_year'>last_month_of_hebrew_year</span>
3440
+ <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_last_month_of_hebrew_year'>last_month_of_hebrew_year</span><span class='lparen'>(</span><span class='ivar'>@hebrew_year</span><span class='rparen'>)</span>
3441
+ <span class='kw'>end</span></pre>
3442
+ </td>
3443
+ </tr>
3444
+ </table>
3445
+ </div>
3446
+
3447
+ <div class="method_details ">
3448
+ <h3 class="signature " id="next-instance_method">
3449
+
3450
+ - (<tt><span class='object_link'><a href="" title="HebrewDate (class)">HebrewDate</a></span></tt>) <strong>next</strong>
2534
3451
 
2535
3452
 
2536
3453
 
3454
+ <span class="aliases">Also known as:
3455
+ <span class="names"><span id='succ-instance_method'>succ</span></span>
3456
+ </span>
3457
+
2537
3458
 
2538
3459
 
2539
3460
  </h3><div class="docstring">
2540
3461
  <div class="discussion">
2541
3462
 
2542
- <p>The last month in this Hebrew year (12 or 13).</p>
3463
+ <p>This does not modify the current date, but creates a new one.</p>
2543
3464
 
2544
3465
 
2545
3466
  </div>
@@ -2552,7 +3473,7 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2552
3473
  <li>
2553
3474
 
2554
3475
 
2555
- <span class='type'>(<tt>Integer</tt>)</span>
3476
+ <span class='type'>(<tt><span class='object_link'><a href="" title="HebrewDate (class)">HebrewDate</a></span></tt>)</span>
2556
3477
 
2557
3478
 
2558
3479
 
@@ -2566,15 +3487,15 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2566
3487
  <pre class="lines">
2567
3488
 
2568
3489
 
2569
- 370
2570
- 371
2571
- 372</pre>
3490
+ 287
3491
+ 288
3492
+ 289</pre>
2572
3493
  </td>
2573
3494
  <td>
2574
- <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 370</span>
3495
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 287</span>
2575
3496
 
2576
- <span class='kw'>def</span> <span class='id identifier rubyid_last_month_of_hebrew_year'>last_month_of_hebrew_year</span>
2577
- <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_last_month_of_hebrew_year'>last_month_of_hebrew_year</span><span class='lparen'>(</span><span class='ivar'>@hebrew_year</span><span class='rparen'>)</span>
3497
+ <span class='kw'>def</span> <span class='kw'>next</span>
3498
+ <span class='kw'>self</span> <span class='op'>+</span> <span class='int'>1</span>
2578
3499
  <span class='kw'>end</span></pre>
2579
3500
  </td>
2580
3501
  </tr>
@@ -2659,28 +3580,28 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2659
3580
  <pre class="lines">
2660
3581
 
2661
3582
 
2662
- 128
2663
- 129
2664
- 130
2665
- 131
2666
- 132
2667
- 133
2668
- 134
2669
- 135
2670
- 136
2671
- 137
2672
- 138
2673
- 139
2674
- 140
2675
- 141
2676
- 142
2677
- 143
2678
- 144
2679
- 145
2680
- 146</pre>
3583
+ 180
3584
+ 181
3585
+ 182
3586
+ 183
3587
+ 184
3588
+ 185
3589
+ 186
3590
+ 187
3591
+ 188
3592
+ 189
3593
+ 190
3594
+ 191
3595
+ 192
3596
+ 193
3597
+ 194
3598
+ 195
3599
+ 196
3600
+ 197
3601
+ 198</pre>
2681
3602
  </td>
2682
3603
  <td>
2683
- <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 128</span>
3604
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 180</span>
2684
3605
 
2685
3606
  <span class='kw'>def</span> <span class='id identifier rubyid_set_date'>set_date</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='comma'>,</span> <span class='id identifier rubyid_month'>month</span><span class='comma'>,</span> <span class='id identifier rubyid_date'>date</span><span class='rparen'>)</span>
2686
3607
  <span class='comment'># precond should be 1-&gt;12 anyways, but just in case...
@@ -2709,7 +3630,7 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2709
3630
  <div class="method_details ">
2710
3631
  <h3 class="signature " id="set_hebrew_date-instance_method">
2711
3632
 
2712
- - (<tt>void</tt>) <strong>set_hebrew_date</strong>(year, month, date)
3633
+ - (<tt>void</tt>) <strong>set_hebrew_date</strong>(year, month, date, auto_set = false)
2713
3634
 
2714
3635
 
2715
3636
 
@@ -2771,6 +3692,24 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2771
3692
  &mdash;
2772
3693
  <div class='inline'>
2773
3694
  <p>the Hebrew day of month (1-30)</p>
3695
+ </div>
3696
+
3697
+ </li>
3698
+
3699
+ <li>
3700
+
3701
+ <span class='name'>auto_set</span>
3702
+
3703
+
3704
+ <span class='type'>(<tt>Boolean</tt>)</span>
3705
+
3706
+
3707
+ <em class="default">(defaults to: <tt>false</tt>)</em>
3708
+
3709
+
3710
+ &mdash;
3711
+ <div class='inline'>
3712
+ <p>Used internally.</p>
2774
3713
  </div>
2775
3714
 
2776
3715
  </li>
@@ -2784,33 +3723,43 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2784
3723
  <pre class="lines">
2785
3724
 
2786
3725
 
2787
- 153
2788
- 154
2789
- 155
2790
- 156
2791
- 157
2792
- 158
2793
- 159
2794
- 160
2795
- 161
2796
- 162
2797
- 163
2798
- 164
2799
- 165
2800
- 166
2801
- 167
2802
- 168
2803
- 169
2804
- 170
2805
- 171
2806
- 172
2807
- 173
2808
- 174</pre>
3726
+ 206
3727
+ 207
3728
+ 208
3729
+ 209
3730
+ 210
3731
+ 211
3732
+ 212
3733
+ 213
3734
+ 214
3735
+ 215
3736
+ 216
3737
+ 217
3738
+ 218
3739
+ 219
3740
+ 220
3741
+ 221
3742
+ 222
3743
+ 223
3744
+ 224
3745
+ 225
3746
+ 226
3747
+ 227
3748
+ 228
3749
+ 229
3750
+ 230
3751
+ 231
3752
+ 232</pre>
2809
3753
  </td>
2810
3754
  <td>
2811
- <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 153</span>
3755
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 206</span>
2812
3756
 
2813
- <span class='kw'>def</span> <span class='id identifier rubyid_set_hebrew_date'>set_hebrew_date</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='comma'>,</span> <span class='id identifier rubyid_month'>month</span><span class='comma'>,</span> <span class='id identifier rubyid_date'>date</span><span class='rparen'>)</span>
3757
+ <span class='kw'>def</span> <span class='id identifier rubyid_set_hebrew_date'>set_hebrew_date</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='comma'>,</span> <span class='id identifier rubyid_month'>month</span><span class='comma'>,</span> <span class='id identifier rubyid_date'>date</span><span class='comma'>,</span> <span class='id identifier rubyid_auto_set'>auto_set</span><span class='op'>=</span><span class='kw'>false</span><span class='rparen'>)</span>
3758
+ <span class='kw'>if</span> <span class='id identifier rubyid_auto_set'>auto_set</span>
3759
+ <span class='ivar'>@hebrew_year</span> <span class='op'>=</span> <span class='id identifier rubyid_year'>year</span>
3760
+ <span class='ivar'>@hebrew_month</span> <span class='op'>=</span> <span class='id identifier rubyid_month'>month</span>
3761
+ <span class='ivar'>@hebrew_date</span> <span class='op'>=</span> <span class='id identifier rubyid_date'>date</span>
3762
+ <span class='kw'>end</span>
2814
3763
  <span class='kw'>return</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Illegal value for Hebrew year: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_year'>year</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_year'>year</span> <span class='op'>&lt;</span> <span class='int'>0</span>
2815
3764
  <span class='kw'>if</span> <span class='id identifier rubyid_month'>month</span> <span class='op'>&lt;</span> <span class='int'>0</span> <span class='op'>||</span> <span class='id identifier rubyid_month'>month</span> <span class='op'>&gt;</span> <span class='id identifier rubyid_last_month_of_hebrew_year'>last_month_of_hebrew_year</span>
2816
3765
  <span class='kw'>return</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Illegal value for Hebrew month: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_month'>month</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
@@ -2835,6 +3784,106 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2835
3784
  </td>
2836
3785
  </tr>
2837
3786
  </table>
3787
+ </div>
3788
+
3789
+ <div class="method_details ">
3790
+ <h3 class="signature " id="shabbos?-instance_method">
3791
+
3792
+ - (<tt>Boolean</tt>) <strong>shabbos?</strong>
3793
+
3794
+
3795
+
3796
+ <span class="aliases">Also known as:
3797
+ <span class="names"><span id='shabbat?-instance_method'>shabbat?</span></span>
3798
+ </span>
3799
+
3800
+
3801
+
3802
+ </h3><div class="docstring">
3803
+ <div class="discussion">
3804
+
3805
+
3806
+ </div>
3807
+ </div>
3808
+ <div class="tags">
3809
+
3810
+ <p class="tag_title">Returns:</p>
3811
+ <ul class="return">
3812
+
3813
+ <li>
3814
+
3815
+
3816
+ <span class='type'>(<tt>Boolean</tt>)</span>
3817
+
3818
+
3819
+
3820
+ </li>
3821
+
3822
+ </ul>
3823
+
3824
+ </div><table class="source_code">
3825
+ <tr>
3826
+ <td>
3827
+ <pre class="lines">
3828
+
3829
+
3830
+ 356
3831
+ 357
3832
+ 358</pre>
3833
+ </td>
3834
+ <td>
3835
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 356</span>
3836
+
3837
+ <span class='kw'>def</span> <span class='id identifier rubyid_shabbos?'>shabbos?</span>
3838
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_saturday?'>saturday?</span>
3839
+ <span class='kw'>end</span></pre>
3840
+ </td>
3841
+ </tr>
3842
+ </table>
3843
+ </div>
3844
+
3845
+ <div class="method_details ">
3846
+ <h3 class="signature " id="step-instance_method">
3847
+
3848
+ - (<tt>Object</tt>) <strong>step</strong>(limit, step = 1, &amp;block)
3849
+
3850
+
3851
+
3852
+
3853
+
3854
+ </h3><div class="docstring">
3855
+ <div class="discussion">
3856
+
3857
+ <p>Iterates evaluation of the given block, which takes a HebrewDate object.
3858
+ The limit should be a Date or HebrewDate object.</p>
3859
+
3860
+
3861
+ </div>
3862
+ </div>
3863
+ <div class="tags">
3864
+
3865
+
3866
+ </div><table class="source_code">
3867
+ <tr>
3868
+ <td>
3869
+ <pre class="lines">
3870
+
3871
+
3872
+ 141
3873
+ 142
3874
+ 143
3875
+ 144</pre>
3876
+ </td>
3877
+ <td>
3878
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 141</span>
3879
+
3880
+ <span class='kw'>def</span> <span class='id identifier rubyid_step'>step</span><span class='lparen'>(</span><span class='id identifier rubyid_limit'>limit</span><span class='comma'>,</span> <span class='id identifier rubyid_step'>step</span><span class='op'>=</span><span class='int'>1</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
3881
+ <span class='kw'>return</span> <span class='id identifier rubyid_to_enum'>to_enum</span><span class='lparen'>(</span><span class='symbol'>:step</span><span class='comma'>,</span> <span class='id identifier rubyid_limit'>limit</span><span class='comma'>,</span> <span class='id identifier rubyid_step'>step</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
3882
+ <span class='lparen'>(</span><span class='kw'>self</span><span class='op'>..</span><span class='id identifier rubyid_limit'>limit</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_step'>step</span><span class='lparen'>(</span><span class='id identifier rubyid_step'>step</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_date'>date</span><span class='op'>|</span> <span class='kw'>yield</span><span class='lparen'>(</span><span class='id identifier rubyid_date'>date</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
3883
+ <span class='kw'>end</span></pre>
3884
+ </td>
3885
+ </tr>
3886
+ </table>
2838
3887
  </div>
2839
3888
 
2840
3889
  <div class="method_details ">
@@ -2850,9 +3899,10 @@ or “Shabbos” depending on the #ashkenaz value.</p>
2850
3899
  <div class="discussion">
2851
3900
 
2852
3901
  <p>Extend the Date strftime method by replacing Hebrew fields. You can denote
2853
- Hebrew fields by using the * flag. Also note that ::replace_saturday will
2854
- replace the %A, %^A, %a and %^a flags with Shabbat/Shabbos. Supported flags
2855
- are:</p>
3902
+ Hebrew fields by using the * flag. There is one extra flag, %.b, which adds
3903
+ a period after the 3-letter month name <strong>except</strong> for May.
3904
+ Also note that ::replace_saturday will replace the %A, %^A, %a and %^a
3905
+ flags with Shabbat/Shabbos. Supported flags are:</p>
2856
3906
 
2857
3907
  <pre class="code ruby"><code class="ruby">* *Y - Hebrew year
2858
3908
  * *m - Hebrew month, zero-padded
@@ -2865,7 +3915,9 @@ are:</p>
2865
3915
  * *h - same as %*b
2866
3916
  * *d - Hebrew day of month, zero-padded
2867
3917
  * *-d - Hebrew day of month, no-padded
2868
- * *e - Hebrew day of month, blank-padded</code></pre>
3918
+ * *e - Hebrew day of month, blank-padded
3919
+ * %.b - Gregorian month, 3 letter name, followed by a period, except for
3920
+ May</code></pre>
2869
3921
 
2870
3922
 
2871
3923
  </div>
@@ -2907,31 +3959,32 @@ are:</p>
2907
3959
  <pre class="lines">
2908
3960
 
2909
3961
 
2910
- 302
2911
- 303
2912
- 304
2913
- 305
2914
- 306
2915
- 307
2916
- 308
2917
- 309
2918
- 310
2919
- 311
2920
- 312
2921
- 313
2922
- 314
2923
- 315
2924
- 316
2925
- 317
2926
- 318
2927
- 319
2928
- 320
2929
- 321
2930
- 322
2931
- 323</pre>
3962
+ 384
3963
+ 385
3964
+ 386
3965
+ 387
3966
+ 388
3967
+ 389
3968
+ 390
3969
+ 391
3970
+ 392
3971
+ 393
3972
+ 394
3973
+ 395
3974
+ 396
3975
+ 397
3976
+ 398
3977
+ 399
3978
+ 400
3979
+ 401
3980
+ 402
3981
+ 403
3982
+ 404
3983
+ 405
3984
+ 406</pre>
2932
3985
  </td>
2933
3986
  <td>
2934
- <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 302</span>
3987
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 384</span>
2935
3988
 
2936
3989
  <span class='kw'>def</span> <span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span><span class='rparen'>)</span>
2937
3990
  <span class='id identifier rubyid_format'>format</span> <span class='op'>=</span> <span class='id identifier rubyid_format'>format</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>*Y</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='ivar'>@hebrew_year</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rparen'>)</span><span class='period'>
@@ -2945,9 +3998,10 @@ are:</p>
2945
3998
  </span><span class='id identifier rubyid_ .gsub'> .gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>*h</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_hebrew_month_to_s'>hebrew_month_to_s</span><span class='lbracket'>[</span><span class='int'>0</span><span class='comma'>,</span> <span class='int'>3</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>
2946
3999
  </span><span class='id identifier rubyid_ .gsub'> .gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>*d</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='ivar'>@hebrew_date</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_rjust'>rjust</span><span class='lparen'>(</span><span class='int'>2</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>
2947
4000
  </span><span class='id identifier rubyid_ .gsub'> .gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>*-d</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='ivar'>@hebrew_date</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rparen'>)</span><span class='period'>
2948
- </span><span class='id identifier rubyid_ .gsub'> .gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>*e</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='ivar'>@hebrew_date</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_rjust'>rjust</span><span class='lparen'>(</span><span class='int'>2</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
2949
- <span class='kw'>if</span> <span class='const'>HebrewDate</span><span class='period'>.</span><span class='id identifier rubyid_replace_saturday'>replace_saturday</span> <span class='op'>&amp;&amp;</span> <span class='ivar'>@hebrew_date</span><span class='period'>.</span><span class='id identifier rubyid_day'>day</span> <span class='op'>==</span> <span class='int'>7</span>
2950
- <span class='id identifier rubyid_shab_name'>shab_name</span> <span class='op'>=</span> <span class='const'>HebrewDate</span><span class='period'>.</span><span class='id identifier rubyid_ashkenaz'>ashkenaz</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Shabbos</span><span class='tstring_end'>&#39;</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Shabbat</span><span class='tstring_end'>&#39;</span></span>
4001
+ </span><span class='id identifier rubyid_ .gsub'> .gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>*e</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='ivar'>@hebrew_date</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_rjust'>rjust</span><span class='lparen'>(</span><span class='int'>2</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>
4002
+ </span><span class='id identifier rubyid_ .gsub'> .gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>%.b</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_month'>month</span> <span class='op'>==</span> <span class='int'>5</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>%b</span><span class='tstring_end'>&#39;</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>%b.</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
4003
+ <span class='kw'>if</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_replace_saturday'>replace_saturday</span> <span class='op'>&amp;&amp;</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_day'>day</span> <span class='op'>==</span> <span class='int'>7</span>
4004
+ <span class='id identifier rubyid_shab_name'>shab_name</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_ashkenaz'>ashkenaz</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Shabbos</span><span class='tstring_end'>&#39;</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Shabbat</span><span class='tstring_end'>&#39;</span></span>
2951
4005
  <span class='id identifier rubyid_format'>format</span> <span class='op'>=</span> <span class='id identifier rubyid_format'>format</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>%A</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_shab_name'>shab_name</span><span class='rparen'>)</span><span class='period'>
2952
4006
  </span><span class='id identifier rubyid_ .gsub'> .gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>%^A</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_shab_name'>shab_name</span><span class='period'>.</span><span class='id identifier rubyid_upcase'>upcase</span><span class='rparen'>)</span><span class='period'>
2953
4007
  </span><span class='id identifier rubyid_ .gsub'> .gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>%a</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_shab_name'>shab_name</span><span class='lbracket'>[</span><span class='int'>0</span><span class='op'>..</span><span class='int'>2</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>
@@ -2999,12 +4053,12 @@ are:</p>
2999
4053
  <pre class="lines">
3000
4054
 
3001
4055
 
3002
- 178
3003
- 179
3004
- 180</pre>
4056
+ 236
4057
+ 237
4058
+ 238</pre>
3005
4059
  </td>
3006
4060
  <td>
3007
- <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 178</span>
4061
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 236</span>
3008
4062
 
3009
4063
  <span class='kw'>def</span> <span class='id identifier rubyid_to_date'>to_date</span>
3010
4064
  <span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='ivar'>@year</span><span class='comma'>,</span> <span class='ivar'>@month</span><span class='comma'>,</span> <span class='ivar'>@date</span><span class='rparen'>)</span>
@@ -3012,6 +4066,77 @@ are:</p>
3012
4066
  </td>
3013
4067
  </tr>
3014
4068
  </table>
4069
+ </div>
4070
+
4071
+ <div class="method_details ">
4072
+ <h3 class="signature " id="upto-instance_method">
4073
+
4074
+ - (<tt>Enumerator|self</tt>) <strong>upto</strong>(max, &amp;block)
4075
+
4076
+
4077
+
4078
+
4079
+
4080
+ </h3><div class="docstring">
4081
+ <div class="discussion">
4082
+
4083
+ <p>This method is equivalent to step(max, 1){ |date| …}.</p>
4084
+
4085
+
4086
+ </div>
4087
+ </div>
4088
+ <div class="tags">
4089
+ <p class="tag_title">Parameters:</p>
4090
+ <ul class="param">
4091
+
4092
+ <li>
4093
+
4094
+ <span class='name'>max</span>
4095
+
4096
+
4097
+ <span class='type'>(<tt>Integer</tt>)</span>
4098
+
4099
+
4100
+
4101
+ </li>
4102
+
4103
+ </ul>
4104
+
4105
+ <p class="tag_title">Returns:</p>
4106
+ <ul class="return">
4107
+
4108
+ <li>
4109
+
4110
+
4111
+ <span class='type'>(<tt>Enumerator|self</tt>)</span>
4112
+
4113
+
4114
+
4115
+ </li>
4116
+
4117
+ </ul>
4118
+
4119
+ </div><table class="source_code">
4120
+ <tr>
4121
+ <td>
4122
+ <pre class="lines">
4123
+
4124
+
4125
+ 157
4126
+ 158
4127
+ 159
4128
+ 160</pre>
4129
+ </td>
4130
+ <td>
4131
+ <pre class="code"><span class="info file"># File 'lib/hebrew_date.rb', line 157</span>
4132
+
4133
+ <span class='kw'>def</span> <span class='id identifier rubyid_upto'>upto</span><span class='lparen'>(</span><span class='id identifier rubyid_max'>max</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
4134
+ <span class='kw'>return</span> <span class='id identifier rubyid_to_enum'>to_enum</span><span class='lparen'>(</span><span class='symbol'>:upto</span><span class='comma'>,</span> <span class='id identifier rubyid_max'>max</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
4135
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_step'>step</span><span class='lparen'>(</span><span class='id identifier rubyid_max'>max</span><span class='comma'>,</span> <span class='int'>1</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
4136
+ <span class='kw'>end</span></pre>
4137
+ </td>
4138
+ </tr>
4139
+ </table>
3015
4140
  </div>
3016
4141
 
3017
4142
  </div>
@@ -3019,7 +4144,7 @@ are:</p>
3019
4144
  </div>
3020
4145
 
3021
4146
  <div id="footer">
3022
- Generated on Mon Jan 27 11:49:55 2014 by
4147
+ Generated on Fri Sep 19 12:15:10 2014 by
3023
4148
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
3024
4149
  0.8.7.3 (ruby-2.0.0).
3025
4150
  </div>