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 +4 -4
- data/doc/HebrewDate.html +1435 -310
- data/doc/HebrewDateSupport.html +1 -1
- data/doc/HebrewDateSupport/{Holidays.html → HolidayMethods.html} +400 -243
- data/doc/HebrewDateSupport/HolidayMethods/ClassMethods.html +466 -0
- data/doc/HebrewDateSupport/ParshaMethods.html +637 -0
- data/doc/_index.html +1 -1
- data/doc/file.README.html +8 -1
- data/doc/index.html +8 -1
- data/doc/method_list.html +94 -10
- data/doc/top-level-namespace.html +1 -1
- data/hebrew_date.gemspec +2 -2
- data/lib/support/holidays.rb +1 -1
- metadata +5 -4
- data/doc/HebrewDateSupport/Parshiot.html +0 -436
@@ -0,0 +1,466 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Module: HebrewDateSupport::HolidayMethods::ClassMethods
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.3
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../../';
|
20
|
+
framesUrl = "../../frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../../_index.html">Index (C)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../../HebrewDateSupport.html" title="HebrewDateSupport (module)">HebrewDateSupport</a></span></span> » <span class='title'><span class='object_link'><a href="../HolidayMethods.html" title="HebrewDateSupport::HolidayMethods (module)">HolidayMethods</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">ClassMethods</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Module: HebrewDateSupport::HolidayMethods::ClassMethods
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
<dt class="r1">Included in:</dt>
|
81
|
+
<dd class="r1"><span class='object_link'><a href="../../HebrewDate.html" title="HebrewDate (class)">HebrewDate</a></span></dd>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<dt class="r2 last">Defined in:</dt>
|
86
|
+
<dd class="r2 last">lib/support/holidays.rb</dd>
|
87
|
+
|
88
|
+
</dl>
|
89
|
+
<div class="clear"></div>
|
90
|
+
|
91
|
+
|
92
|
+
<h2>Constant Summary</h2>
|
93
|
+
|
94
|
+
<dl class="constants">
|
95
|
+
|
96
|
+
<dt id="HOLIDAYS-constant" class="">HOLIDAYS =
|
97
|
+
<div class="docstring">
|
98
|
+
<div class="discussion">
|
99
|
+
|
100
|
+
<p>A list of holidays which can be passed into the from_holiday method.</p>
|
101
|
+
|
102
|
+
|
103
|
+
</div>
|
104
|
+
</div>
|
105
|
+
<div class="tags">
|
106
|
+
|
107
|
+
|
108
|
+
</div>
|
109
|
+
</dt>
|
110
|
+
<dd><pre class="code"><span class='lbracket'>[</span>
|
111
|
+
<span class='symbol'>:TAANIT_BECHORIM</span><span class='comma'>,</span>
|
112
|
+
<span class='symbol'>:EREV_PESACH</span><span class='comma'>,</span>
|
113
|
+
<span class='symbol'>:PESACH</span><span class='comma'>,</span>
|
114
|
+
<span class='symbol'>:PESACH_2</span><span class='comma'>,</span>
|
115
|
+
<span class='symbol'>:PESACH_SHENI</span><span class='comma'>,</span>
|
116
|
+
<span class='symbol'>:YOM_HAATZMAUT</span><span class='comma'>,</span>
|
117
|
+
<span class='symbol'>:YOM_HAZIKARON</span><span class='comma'>,</span>
|
118
|
+
<span class='symbol'>:YOM_YERUSHALAYIM</span><span class='comma'>,</span>
|
119
|
+
<span class='symbol'>:LAG_BAOMER</span><span class='comma'>,</span>
|
120
|
+
<span class='symbol'>:EREV_SHAVUOT</span><span class='comma'>,</span>
|
121
|
+
<span class='symbol'>:SHAVUOT</span><span class='comma'>,</span>
|
122
|
+
<span class='symbol'>:TZOM_TAMMUZ</span><span class='comma'>,</span>
|
123
|
+
<span class='symbol'>:TISHA_BAV</span><span class='comma'>,</span>
|
124
|
+
<span class='symbol'>:TU_BAV</span><span class='comma'>,</span>
|
125
|
+
<span class='symbol'>:EREV_ROSH_HASHANA</span><span class='comma'>,</span>
|
126
|
+
<span class='symbol'>:ROSH_HASHANA</span><span class='comma'>,</span>
|
127
|
+
<span class='symbol'>:TZOM_GEDALIA</span><span class='comma'>,</span>
|
128
|
+
<span class='symbol'>:EREV_YOM_KIPPUR</span><span class='comma'>,</span>
|
129
|
+
<span class='symbol'>:YOM_KIPPUR</span><span class='comma'>,</span>
|
130
|
+
<span class='symbol'>:EREV_SUKKOT</span><span class='comma'>,</span>
|
131
|
+
<span class='symbol'>:SUKKOT</span><span class='comma'>,</span>
|
132
|
+
<span class='symbol'>:SHMINI_ATZERET</span><span class='comma'>,</span>
|
133
|
+
<span class='symbol'>:SIMCHAT_TORAH</span><span class='comma'>,</span>
|
134
|
+
<span class='symbol'>:EREV_CHANUKAH</span><span class='comma'>,</span>
|
135
|
+
<span class='symbol'>:CHANUKAH</span><span class='comma'>,</span>
|
136
|
+
<span class='symbol'>:TZOM_TEVET</span><span class='comma'>,</span>
|
137
|
+
<span class='symbol'>:TU_BISHVAT</span><span class='comma'>,</span>
|
138
|
+
<span class='symbol'>:PURIM_KATAN</span><span class='comma'>,</span>
|
139
|
+
<span class='symbol'>:TAANIT_ESTHER</span><span class='comma'>,</span>
|
140
|
+
<span class='symbol'>:PURIM</span><span class='comma'>,</span>
|
141
|
+
<span class='symbol'>:SHUSHAN_PURIM</span>
|
142
|
+
<span class='rbracket'>]</span></pre></dd>
|
143
|
+
|
144
|
+
</dl>
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
<h2>
|
155
|
+
Instance Method Summary
|
156
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
157
|
+
</h2>
|
158
|
+
|
159
|
+
<ul class="summary">
|
160
|
+
|
161
|
+
<li class="public ">
|
162
|
+
<span class="summary_signature">
|
163
|
+
|
164
|
+
<a href="#from_holiday-instance_method" title="#from_holiday (instance method)">- (Object) <strong>from_holiday</strong>(holiday, year = nil) </a>
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
</span>
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
<span class="summary_desc"><div class='inline'>
|
179
|
+
<p>Given a holiday name, return a HebrewDate representing that holiday.</p>
|
180
|
+
</div></span>
|
181
|
+
|
182
|
+
</li>
|
183
|
+
|
184
|
+
|
185
|
+
</ul>
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
<div id="instance_method_details" class="method_details_list">
|
191
|
+
<h2>Instance Method Details</h2>
|
192
|
+
|
193
|
+
|
194
|
+
<div class="method_details first">
|
195
|
+
<h3 class="signature first" id="from_holiday-instance_method">
|
196
|
+
|
197
|
+
- (<tt>Object</tt>) <strong>from_holiday</strong>(holiday, year = nil)
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
</h3><div class="docstring">
|
204
|
+
<div class="discussion">
|
205
|
+
|
206
|
+
<p>Given a holiday name, return a HebrewDate representing that holiday.</p>
|
207
|
+
|
208
|
+
|
209
|
+
</div>
|
210
|
+
</div>
|
211
|
+
<div class="tags">
|
212
|
+
<p class="tag_title">Parameters:</p>
|
213
|
+
<ul class="param">
|
214
|
+
|
215
|
+
<li>
|
216
|
+
|
217
|
+
<span class='name'>holiday</span>
|
218
|
+
|
219
|
+
|
220
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
—
|
225
|
+
<div class='inline'>
|
226
|
+
<p>the name of the holiday. Possible values are in the HOLIDAYS array.</p>
|
227
|
+
</div>
|
228
|
+
|
229
|
+
</li>
|
230
|
+
|
231
|
+
<li>
|
232
|
+
|
233
|
+
<span class='name'>year</span>
|
234
|
+
|
235
|
+
|
236
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
237
|
+
|
238
|
+
|
239
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
240
|
+
|
241
|
+
|
242
|
+
—
|
243
|
+
<div class='inline'>
|
244
|
+
<p>if given, the Hebrew year to search. Defaults to the current year.</p>
|
245
|
+
</div>
|
246
|
+
|
247
|
+
</li>
|
248
|
+
|
249
|
+
</ul>
|
250
|
+
|
251
|
+
|
252
|
+
</div><table class="source_code">
|
253
|
+
<tr>
|
254
|
+
<td>
|
255
|
+
<pre class="lines">
|
256
|
+
|
257
|
+
|
258
|
+
45
|
259
|
+
46
|
260
|
+
47
|
261
|
+
48
|
262
|
+
49
|
263
|
+
50
|
264
|
+
51
|
265
|
+
52
|
266
|
+
53
|
267
|
+
54
|
268
|
+
55
|
269
|
+
56
|
270
|
+
57
|
271
|
+
58
|
272
|
+
59
|
273
|
+
60
|
274
|
+
61
|
275
|
+
62
|
276
|
+
63
|
277
|
+
64
|
278
|
+
65
|
279
|
+
66
|
280
|
+
67
|
281
|
+
68
|
282
|
+
69
|
283
|
+
70
|
284
|
+
71
|
285
|
+
72
|
286
|
+
73
|
287
|
+
74
|
288
|
+
75
|
289
|
+
76
|
290
|
+
77
|
291
|
+
78
|
292
|
+
79
|
293
|
+
80
|
294
|
+
81
|
295
|
+
82
|
296
|
+
83
|
297
|
+
84
|
298
|
+
85
|
299
|
+
86
|
300
|
+
87
|
301
|
+
88
|
302
|
+
89
|
303
|
+
90
|
304
|
+
91
|
305
|
+
92
|
306
|
+
93
|
307
|
+
94
|
308
|
+
95
|
309
|
+
96
|
310
|
+
97
|
311
|
+
98
|
312
|
+
99
|
313
|
+
100
|
314
|
+
101
|
315
|
+
102
|
316
|
+
103
|
317
|
+
104
|
318
|
+
105
|
319
|
+
106
|
320
|
+
107
|
321
|
+
108
|
322
|
+
109
|
323
|
+
110
|
324
|
+
111
|
325
|
+
112
|
326
|
+
113
|
327
|
+
114
|
328
|
+
115
|
329
|
+
116
|
330
|
+
117
|
331
|
+
118
|
332
|
+
119
|
333
|
+
120
|
334
|
+
121
|
335
|
+
122
|
336
|
+
123
|
337
|
+
124
|
338
|
+
125
|
339
|
+
126
|
340
|
+
127
|
341
|
+
128
|
342
|
+
129
|
343
|
+
130
|
344
|
+
131
|
345
|
+
132
|
346
|
+
133
|
347
|
+
134
|
348
|
+
135
|
349
|
+
136
|
350
|
+
137
|
351
|
+
138</pre>
|
352
|
+
</td>
|
353
|
+
<td>
|
354
|
+
<pre class="code"><span class="info file"># File 'lib/support/holidays.rb', line 45</span>
|
355
|
+
|
356
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_from_holiday'>from_holiday</span><span class='lparen'>(</span><span class='id identifier rubyid_holiday'>holiday</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>
|
357
|
+
<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>
|
358
|
+
<span class='kw'>case</span> <span class='id identifier rubyid_holiday'>holiday</span>
|
359
|
+
<span class='kw'>when</span> <span class='symbol'>:TAANIT_BECHORIM</span>
|
360
|
+
<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_from_holiday'>from_holiday</span><span class='lparen'>(</span><span class='symbol'>:EREV_PESACH</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span>
|
361
|
+
<span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_shabbos?'>shabbos?</span> <span class='op'>?</span> <span class='id identifier rubyid_date'>date</span> <span class='op'>-</span> <span class='int'>2</span> <span class='op'>:</span> <span class='id identifier rubyid_date'>date</span>
|
362
|
+
<span class='kw'>when</span> <span class='symbol'>:EREV_PESACH</span>
|
363
|
+
<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='int'>1</span><span class='comma'>,</span> <span class='int'>14</span><span class='rparen'>)</span>
|
364
|
+
<span class='kw'>when</span> <span class='symbol'>:PESACH</span>
|
365
|
+
<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='int'>1</span><span class='comma'>,</span> <span class='int'>15</span><span class='rparen'>)</span>
|
366
|
+
<span class='kw'>when</span> <span class='symbol'>:PESACH_2</span>
|
367
|
+
<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='int'>1</span><span class='comma'>,</span> <span class='int'>21</span><span class='rparen'>)</span>
|
368
|
+
<span class='kw'>when</span> <span class='symbol'>:PESACH_SHENI</span>
|
369
|
+
<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='int'>2</span><span class='comma'>,</span> <span class='int'>15</span><span class='rparen'>)</span>
|
370
|
+
<span class='kw'>when</span> <span class='symbol'>:YOM_HAZIKARON</span>
|
371
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_from_holiday'>from_holiday</span><span class='lparen'>(</span><span class='symbol'>:YOM_HAATZMAUT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_back'>back</span>
|
372
|
+
<span class='kw'>when</span> <span class='symbol'>:YOM_HAATZMAUT</span>
|
373
|
+
<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_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='int'>2</span><span class='comma'>,</span> <span class='int'>5</span><span class='rparen'>)</span>
|
374
|
+
<span class='comment'># Friday or Shabbat - move back to Thursday
|
375
|
+
</span> <span class='comment'># Monday - move forward to Tuesday
|
376
|
+
</span> <span class='kw'>if</span> <span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_day'>day</span> <span class='op'>==</span> <span class='int'>6</span>
|
377
|
+
<span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_back'>back</span>
|
378
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_day'>day</span> <span class='op'>==</span> <span class='int'>2</span>
|
379
|
+
<span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_forward'>forward</span>
|
380
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_day'>day</span> <span class='op'>==</span> <span class='int'>7</span>
|
381
|
+
<span class='id identifier rubyid_date'>date</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='int'>2</span><span class='comma'>,</span> <span class='int'>3</span><span class='rparen'>)</span>
|
382
|
+
<span class='kw'>end</span>
|
383
|
+
<span class='kw'>when</span> <span class='symbol'>:LAG_BAOMER</span>
|
384
|
+
<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='int'>2</span><span class='comma'>,</span> <span class='int'>18</span><span class='rparen'>)</span>
|
385
|
+
<span class='kw'>when</span> <span class='symbol'>:YOM_YERUSHALAYIM</span>
|
386
|
+
<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='int'>2</span><span class='comma'>,</span> <span class='int'>28</span><span class='rparen'>)</span>
|
387
|
+
<span class='kw'>when</span> <span class='symbol'>:TZOM_TAMMUZ</span>
|
388
|
+
<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_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='int'>4</span><span class='comma'>,</span> <span class='int'>17</span><span class='rparen'>)</span>
|
389
|
+
<span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_forward'>forward</span> <span class='kw'>if</span> <span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_day'>day</span> <span class='op'>==</span> <span class='int'>7</span>
|
390
|
+
<span class='id identifier rubyid_date'>date</span>
|
391
|
+
<span class='kw'>when</span> <span class='symbol'>:EREV_SHAVUOT</span>
|
392
|
+
<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='int'>3</span><span class='comma'>,</span> <span class='int'>5</span><span class='rparen'>)</span>
|
393
|
+
<span class='kw'>when</span> <span class='symbol'>:SHAVUOT</span>
|
394
|
+
<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='int'>3</span><span class='comma'>,</span> <span class='int'>6</span><span class='rparen'>)</span>
|
395
|
+
<span class='kw'>when</span> <span class='symbol'>:TISHA_BAV</span>
|
396
|
+
<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_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='int'>5</span><span class='comma'>,</span> <span class='int'>9</span><span class='rparen'>)</span>
|
397
|
+
<span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_forward'>forward</span> <span class='kw'>if</span> <span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_day'>day</span> <span class='op'>==</span> <span class='int'>7</span>
|
398
|
+
<span class='id identifier rubyid_date'>date</span>
|
399
|
+
<span class='kw'>when</span> <span class='symbol'>:TU_BAV</span>
|
400
|
+
<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='int'>15</span><span class='comma'>,</span> <span class='int'>9</span><span class='rparen'>)</span>
|
401
|
+
<span class='kw'>when</span> <span class='symbol'>:EREV_ROSH_HASHANA</span>
|
402
|
+
<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='int'>6</span><span class='comma'>,</span> <span class='int'>29</span><span class='rparen'>)</span>
|
403
|
+
<span class='kw'>when</span> <span class='symbol'>:ROSH_HASHANA</span>
|
404
|
+
<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='int'>7</span><span class='comma'>,</span> <span class='int'>1</span><span class='rparen'>)</span>
|
405
|
+
<span class='kw'>when</span> <span class='symbol'>:TZOM_GEDALIA</span>
|
406
|
+
<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_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='int'>7</span><span class='comma'>,</span> <span class='int'>3</span><span class='rparen'>)</span>
|
407
|
+
<span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_forward'>forward</span> <span class='kw'>if</span> <span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_day'>day</span> <span class='op'>==</span> <span class='int'>7</span>
|
408
|
+
<span class='id identifier rubyid_date'>date</span>
|
409
|
+
<span class='kw'>when</span> <span class='symbol'>:EREV_YOM_KIPPUR</span>
|
410
|
+
<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='int'>7</span><span class='comma'>,</span> <span class='int'>9</span><span class='rparen'>)</span>
|
411
|
+
<span class='kw'>when</span> <span class='symbol'>:YOM_KIPPUR</span>
|
412
|
+
<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='int'>7</span><span class='comma'>,</span> <span class='int'>10</span><span class='rparen'>)</span>
|
413
|
+
<span class='kw'>when</span> <span class='symbol'>:EREV_SUKKOT</span>
|
414
|
+
<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='int'>7</span><span class='comma'>,</span> <span class='int'>14</span><span class='rparen'>)</span>
|
415
|
+
<span class='kw'>when</span> <span class='symbol'>:SUKKOT</span>
|
416
|
+
<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='int'>7</span><span class='comma'>,</span> <span class='int'>15</span><span class='rparen'>)</span>
|
417
|
+
<span class='kw'>when</span> <span class='symbol'>:SHMINI_ATZERET</span>
|
418
|
+
<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='int'>7</span><span class='comma'>,</span> <span class='int'>22</span><span class='rparen'>)</span>
|
419
|
+
<span class='kw'>when</span> <span class='symbol'>:SIMCHAT_TORAH</span>
|
420
|
+
<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='int'>7</span><span class='comma'>,</span> <span class='int'>23</span><span class='rparen'>)</span>
|
421
|
+
<span class='kw'>when</span> <span class='symbol'>:EREV_CHANUKAH</span>
|
422
|
+
<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='int'>9</span><span class='comma'>,</span> <span class='int'>24</span><span class='rparen'>)</span>
|
423
|
+
<span class='kw'>when</span> <span class='symbol'>:CHANUKAH</span>
|
424
|
+
<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='int'>9</span><span class='comma'>,</span> <span class='int'>25</span><span class='rparen'>)</span>
|
425
|
+
<span class='kw'>when</span> <span class='symbol'>:TZOM_TEVET</span>
|
426
|
+
<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='int'>10</span><span class='comma'>,</span> <span class='int'>10</span><span class='rparen'>)</span>
|
427
|
+
<span class='kw'>when</span> <span class='symbol'>:TU_BISHVAT</span>
|
428
|
+
<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='int'>11</span><span class='comma'>,</span> <span class='int'>15</span><span class='rparen'>)</span>
|
429
|
+
<span class='kw'>when</span> <span class='symbol'>:PURIM_KATAN</span>
|
430
|
+
<span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</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>
|
431
|
+
<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='int'>12</span><span class='comma'>,</span> <span class='int'>14</span><span class='rparen'>)</span>
|
432
|
+
<span class='kw'>end</span>
|
433
|
+
<span class='kw'>when</span> <span class='symbol'>:TAANIT_ESTHER</span>
|
434
|
+
<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_new_from_hebrew'>new_from_hebrew</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='comma'>,</span>
|
435
|
+
<span class='kw'>self</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='id identifier rubyid_year'>year</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='int'>13</span><span class='rparen'>)</span>
|
436
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_day'>day</span> <span class='op'>==</span> <span class='int'>7</span>
|
437
|
+
<span class='id identifier rubyid_date'>date</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_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_hebrew_month'>hebrew_month</span><span class='comma'>,</span> <span class='int'>11</span><span class='rparen'>)</span>
|
438
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_day'>day</span> <span class='op'>==</span> <span class='int'>6</span>
|
439
|
+
<span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_back'>back</span>
|
440
|
+
<span class='kw'>end</span>
|
441
|
+
<span class='id identifier rubyid_date'>date</span>
|
442
|
+
<span class='kw'>when</span> <span class='symbol'>:PURIM</span>
|
443
|
+
<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>
|
444
|
+
<span class='kw'>self</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='id identifier rubyid_year'>year</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='int'>14</span><span class='rparen'>)</span>
|
445
|
+
<span class='kw'>when</span> <span class='symbol'>:SHUSHAN_PURIM</span>
|
446
|
+
<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>
|
447
|
+
<span class='kw'>self</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='id identifier rubyid_year'>year</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='int'>15</span><span class='rparen'>)</span>
|
448
|
+
<span class='kw'>end</span>
|
449
|
+
<span class='kw'>end</span></pre>
|
450
|
+
</td>
|
451
|
+
</tr>
|
452
|
+
</table>
|
453
|
+
</div>
|
454
|
+
|
455
|
+
</div>
|
456
|
+
|
457
|
+
</div>
|
458
|
+
|
459
|
+
<div id="footer">
|
460
|
+
Generated on Fri Sep 19 12:15:09 2014 by
|
461
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
462
|
+
0.8.7.3 (ruby-2.0.0).
|
463
|
+
</div>
|
464
|
+
|
465
|
+
</body>
|
466
|
+
</html>
|