timeboss 0.0.10 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.yardopts +1 -0
  4. data/README.md +1 -1
  5. data/doc/TimeBoss.html +146 -0
  6. data/doc/TimeBoss/Calendar.html +137 -0
  7. data/doc/TimeBoss/Calendar/Day.html +594 -0
  8. data/doc/TimeBoss/Calendar/Half.html +396 -0
  9. data/doc/TimeBoss/Calendar/Month.html +396 -0
  10. data/doc/TimeBoss/Calendar/Parser.html +386 -0
  11. data/doc/TimeBoss/Calendar/Period.html +841 -0
  12. data/doc/TimeBoss/Calendar/Quarter.html +396 -0
  13. data/doc/TimeBoss/Calendar/Support.html +131 -0
  14. data/doc/TimeBoss/Calendar/Support/Formatter.html +459 -0
  15. data/doc/TimeBoss/Calendar/Support/MonthBased.html +591 -0
  16. data/doc/TimeBoss/Calendar/Support/MonthBasis.html +437 -0
  17. data/doc/TimeBoss/Calendar/Support/MonthlyUnit.html +591 -0
  18. data/doc/TimeBoss/Calendar/Support/Navigable.html +723 -0
  19. data/doc/TimeBoss/Calendar/Support/Shiftable.html +138 -0
  20. data/doc/TimeBoss/Calendar/Support/Unit.html +1299 -0
  21. data/doc/TimeBoss/Calendar/Waypoints.html +155 -0
  22. data/doc/TimeBoss/Calendar/Waypoints/Absolute.html +1378 -0
  23. data/doc/TimeBoss/Calendar/Waypoints/Relative.html +4308 -0
  24. data/doc/TimeBoss/Calendar/Week.html +671 -0
  25. data/doc/TimeBoss/Calendar/Year.html +319 -0
  26. data/doc/TimeBoss/Calendars.html +336 -0
  27. data/doc/TimeBoss/Calendars/Broadcast.html +221 -0
  28. data/doc/TimeBoss/Calendars/Broadcast/Basis.html +278 -0
  29. data/doc/TimeBoss/Calendars/Entry.html +399 -0
  30. data/doc/TimeBoss/Support.html +115 -0
  31. data/doc/TimeBoss/Support/Shellable.html +249 -0
  32. data/doc/_index.html +416 -0
  33. data/doc/class_list.html +51 -0
  34. data/doc/css/common.css +1 -0
  35. data/doc/css/full_list.css +58 -0
  36. data/doc/css/style.css +496 -0
  37. data/doc/file.README.html +299 -0
  38. data/doc/file_list.html +56 -0
  39. data/doc/frames.html +17 -0
  40. data/doc/index.html +299 -0
  41. data/doc/js/app.js +314 -0
  42. data/doc/js/full_list.js +216 -0
  43. data/doc/js/jquery.js +4 -0
  44. data/doc/method_list.html +1139 -0
  45. data/doc/top-level-namespace.html +110 -0
  46. data/lib/timeboss.rb +4 -0
  47. data/lib/timeboss/calendar.rb +14 -0
  48. data/lib/timeboss/calendar/day.rb +10 -3
  49. data/lib/timeboss/calendar/half.rb +7 -2
  50. data/lib/timeboss/calendar/month.rb +7 -2
  51. data/lib/timeboss/calendar/parser.rb +1 -0
  52. data/lib/timeboss/calendar/period.rb +26 -11
  53. data/lib/timeboss/calendar/quarter.rb +7 -2
  54. data/lib/timeboss/calendar/support.rb +8 -0
  55. data/lib/timeboss/calendar/support/formatter.rb +1 -0
  56. data/lib/timeboss/calendar/support/month_basis.rb +3 -0
  57. data/lib/timeboss/calendar/support/{month_based.rb → monthly_unit.rb} +7 -1
  58. data/lib/timeboss/calendar/support/navigable.rb +25 -1
  59. data/lib/timeboss/calendar/support/shiftable.rb +3 -2
  60. data/lib/timeboss/calendar/support/unit.rb +24 -0
  61. data/lib/timeboss/calendar/waypoints.rb +6 -55
  62. data/lib/timeboss/calendar/waypoints/absolute.rb +114 -0
  63. data/lib/timeboss/calendar/waypoints/relative.rb +268 -0
  64. data/lib/timeboss/calendar/week.rb +11 -0
  65. data/lib/timeboss/calendar/year.rb +6 -5
  66. data/lib/timeboss/calendars.rb +16 -0
  67. data/lib/timeboss/version.rb +1 -1
  68. data/spec/calendar/support/{month_based_spec.rb → monthly_unit_spec.rb} +7 -7
  69. data/spec/calendars/broadcast_spec.rb +7 -7
  70. data/timeboss.gemspec +1 -0
  71. metadata +70 -7
@@ -0,0 +1,723 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Module: TimeBoss::Calendar::Support::Navigable
8
+
9
+ &mdash; Documentation by YARD 0.9.25
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../../../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "TimeBoss::Calendar::Support::Navigable";
19
+ relpath = '../../../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../../../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../../../_index.html">Index (N)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../../TimeBoss.html" title="TimeBoss (module)">TimeBoss</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../Calendar.html" title="TimeBoss::Calendar (module)">Calendar</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Support.html" title="TimeBoss::Calendar::Support (module)">Support</a></span></span>
41
+ &raquo;
42
+ <span class="title">Navigable</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../../../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Module: TimeBoss::Calendar::Support::Navigable
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+ <dl>
78
+ <dt>Included in:</dt>
79
+ <dd><span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span></dd>
80
+ </dl>
81
+
82
+
83
+
84
+ <dl>
85
+ <dt>Defined in:</dt>
86
+ <dd>lib/timeboss/calendar/support/navigable.rb</dd>
87
+ </dl>
88
+
89
+ </div>
90
+
91
+ <h2>Overview</h2><div class="docstring">
92
+ <div class="discussion">
93
+
94
+ <p>Provides navigational abilities for units within a calendar.</p>
95
+
96
+
97
+ </div>
98
+ </div>
99
+ <div class="tags">
100
+
101
+
102
+ </div>
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+ <h2>
111
+ Instance Method Summary
112
+ <small><a href="#" class="summary_toggle">collapse</a></small>
113
+ </h2>
114
+
115
+ <ul class="summary">
116
+
117
+ <li class="public ">
118
+ <span class="summary_signature">
119
+
120
+ <a href="#ago-instance_method" title="#ago (instance method)">#<strong>ago</strong>(quantity) &#x21d2; Unit </a>
121
+
122
+
123
+
124
+ </span>
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+ <span class="summary_desc"><div class='inline'>
135
+ <p>Fetch the unit some number of units prior to this unit.</p>
136
+ </div></span>
137
+
138
+ </li>
139
+
140
+
141
+ <li class="public ">
142
+ <span class="summary_signature">
143
+
144
+ <a href="#ahead-instance_method" title="#ahead (instance method)">#<strong>ahead</strong>(quantity) &#x21d2; Unit </a>
145
+
146
+
147
+
148
+ </span>
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+ <span class="summary_desc"><div class='inline'>
159
+ <p>Fetch the unit some number of units after this unit.</p>
160
+ </div></span>
161
+
162
+ </li>
163
+
164
+
165
+ <li class="public ">
166
+ <span class="summary_signature">
167
+
168
+ <a href="#next-instance_method" title="#next (instance method)">#<strong>next</strong>(quantity = nil) &#x21d2; Object </a>
169
+
170
+
171
+
172
+ </span>
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+ <span class="summary_desc"><div class='inline'></div></span>
183
+
184
+ </li>
185
+
186
+
187
+ <li class="public ">
188
+ <span class="summary_signature">
189
+
190
+ <a href="#previous-instance_method" title="#previous (instance method)">#<strong>previous</strong>(quantity = nil) &#x21d2; Object </a>
191
+
192
+
193
+
194
+ </span>
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+ <span class="summary_desc"><div class='inline'></div></span>
205
+
206
+ </li>
207
+
208
+
209
+ <li class="public ">
210
+ <span class="summary_signature">
211
+
212
+ <a href="#until-instance_method" title="#until (instance method)">#<strong>until</strong>(end_date) &#x21d2; Array&lt;Unit&gt; </a>
213
+
214
+
215
+
216
+ </span>
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+ <span class="summary_desc"><div class='inline'>
227
+ <p>Fetch a list of units from this unit until some date.</p>
228
+ </div></span>
229
+
230
+ </li>
231
+
232
+
233
+ </ul>
234
+
235
+
236
+
237
+
238
+ <div id="instance_method_details" class="method_details_list">
239
+ <h2>Instance Method Details</h2>
240
+
241
+
242
+ <div class="method_details first">
243
+ <h3 class="signature first" id="ago-instance_method">
244
+
245
+ #<strong>ago</strong>(quantity) &#x21d2; <tt><span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span></tt>
246
+
247
+
248
+
249
+
250
+
251
+ </h3><div class="docstring">
252
+ <div class="discussion">
253
+
254
+ <p>Fetch the unit some number of units prior to this unit.</p>
255
+
256
+
257
+ </div>
258
+ </div>
259
+ <div class="tags">
260
+ <p class="tag_title">Parameters:</p>
261
+ <ul class="param">
262
+
263
+ <li>
264
+
265
+ <span class='name'>quantity</span>
266
+
267
+
268
+ <span class='type'>(<tt>Integer</tt>)</span>
269
+
270
+
271
+
272
+ </li>
273
+
274
+ </ul>
275
+
276
+ <p class="tag_title">Returns:</p>
277
+ <ul class="return">
278
+
279
+ <li>
280
+
281
+
282
+ <span class='type'>(<tt><span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span></tt>)</span>
283
+
284
+
285
+
286
+ </li>
287
+
288
+ </ul>
289
+
290
+ </div><table class="source_code">
291
+ <tr>
292
+ <td>
293
+ <pre class="lines">
294
+
295
+
296
+ 34
297
+ 35
298
+ 36</pre>
299
+ </td>
300
+ <td>
301
+ <pre class="code"><span class="info file"># File 'lib/timeboss/calendar/support/navigable.rb', line 34</span>
302
+
303
+ <span class='kw'>def</span> <span class='id identifier rubyid_ago'>ago</span><span class='lparen'>(</span><span class='id identifier rubyid_quantity'>quantity</span><span class='rparen'>)</span>
304
+ <span class='id identifier rubyid_previous'>previous</span><span class='lparen'>(</span><span class='id identifier rubyid_quantity'>quantity</span> <span class='op'>+</span> <span class='int'>1</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
305
+ <span class='kw'>end</span></pre>
306
+ </td>
307
+ </tr>
308
+ </table>
309
+ </div>
310
+
311
+ <div class="method_details ">
312
+ <h3 class="signature " id="ahead-instance_method">
313
+
314
+ #<strong>ahead</strong>(quantity) &#x21d2; <tt><span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span></tt>
315
+
316
+
317
+
318
+
319
+
320
+ </h3><div class="docstring">
321
+ <div class="discussion">
322
+
323
+ <p>Fetch the unit some number of units after this unit.</p>
324
+
325
+
326
+ </div>
327
+ </div>
328
+ <div class="tags">
329
+ <p class="tag_title">Parameters:</p>
330
+ <ul class="param">
331
+
332
+ <li>
333
+
334
+ <span class='name'>quantity</span>
335
+
336
+
337
+ <span class='type'>(<tt>Integer</tt>)</span>
338
+
339
+
340
+
341
+ </li>
342
+
343
+ </ul>
344
+
345
+ <p class="tag_title">Returns:</p>
346
+ <ul class="return">
347
+
348
+ <li>
349
+
350
+
351
+ <span class='type'>(<tt><span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span></tt>)</span>
352
+
353
+
354
+
355
+ </li>
356
+
357
+ </ul>
358
+
359
+ </div><table class="source_code">
360
+ <tr>
361
+ <td>
362
+ <pre class="lines">
363
+
364
+
365
+ 41
366
+ 42
367
+ 43</pre>
368
+ </td>
369
+ <td>
370
+ <pre class="code"><span class="info file"># File 'lib/timeboss/calendar/support/navigable.rb', line 41</span>
371
+
372
+ <span class='kw'>def</span> <span class='id identifier rubyid_ahead'>ahead</span><span class='lparen'>(</span><span class='id identifier rubyid_quantity'>quantity</span><span class='rparen'>)</span>
373
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_next'>next</span><span class='lparen'>(</span><span class='id identifier rubyid_quantity'>quantity</span> <span class='op'>+</span> <span class='int'>1</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span>
374
+ <span class='kw'>end</span></pre>
375
+ </td>
376
+ </tr>
377
+ </table>
378
+ </div>
379
+
380
+ <div class="method_details ">
381
+ <h3 class="signature " id="next-instance_method">
382
+
383
+
384
+ <span class="overload">#<strong>next</strong> &#x21d2; <tt><span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span></tt> </span>
385
+
386
+ <span class="overload">#<strong>next</strong>(value) &#x21d2; <tt>Array&lt;<span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span>&gt;</tt> </span>
387
+
388
+
389
+
390
+
391
+
392
+
393
+ </h3><div class="docstring">
394
+ <div class="discussion">
395
+
396
+
397
+ </div>
398
+ </div>
399
+ <div class="tags">
400
+
401
+ <p class="tag_title">Overloads:</p>
402
+ <ul class="overload">
403
+
404
+
405
+ <li class="overload_item">
406
+ <span class="signature">#<strong>next</strong> &#x21d2; <tt><span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span></tt> </span>
407
+ <div class="docstring">
408
+ <div class="discussion">
409
+
410
+ <p>Fetch the next unit relative to this unit.</p>
411
+
412
+
413
+ </div>
414
+ </div>
415
+ <div class="tags">
416
+
417
+ <p class="tag_title">Returns:</p>
418
+ <ul class="return">
419
+
420
+ <li>
421
+
422
+
423
+ <span class='type'>(<tt><span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span></tt>)</span>
424
+
425
+
426
+
427
+ </li>
428
+
429
+ </ul>
430
+
431
+ </div>
432
+ </li>
433
+
434
+
435
+ <li class="overload_item">
436
+ <span class="signature">#<strong>next</strong>(value) &#x21d2; <tt>Array&lt;<span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span>&gt;</tt> </span>
437
+ <div class="docstring">
438
+ <div class="discussion">
439
+
440
+ <p>Fetch some next number of units relative to this unit</p>
441
+
442
+
443
+ </div>
444
+ </div>
445
+ <div class="tags">
446
+ <p class="tag_title">Parameters:</p>
447
+ <ul class="param">
448
+
449
+ <li>
450
+
451
+ <span class='name'>quantity</span>
452
+
453
+
454
+ <span class='type'>(<tt>Integer</tt>)</span>
455
+
456
+
457
+
458
+ </li>
459
+
460
+ </ul>
461
+
462
+ <p class="tag_title">Returns:</p>
463
+ <ul class="return">
464
+
465
+ <li>
466
+
467
+
468
+ <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span>&gt;</tt>)</span>
469
+
470
+
471
+
472
+ </li>
473
+
474
+ </ul>
475
+
476
+ </div>
477
+ </li>
478
+
479
+ </ul>
480
+
481
+
482
+ </div><table class="source_code">
483
+ <tr>
484
+ <td>
485
+ <pre class="lines">
486
+
487
+
488
+ 26
489
+ 27
490
+ 28
491
+ 29</pre>
492
+ </td>
493
+ <td>
494
+ <pre class="code"><span class="info file"># File 'lib/timeboss/calendar/support/navigable.rb', line 26</span>
495
+
496
+ <span class='kw'>def</span> <span class='kw'>next</span><span class='lparen'>(</span><span class='id identifier rubyid_quantity'>quantity</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
497
+ <span class='kw'>return</span> <span class='id identifier rubyid_up'>up</span> <span class='kw'>if</span> <span class='id identifier rubyid_quantity'>quantity</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
498
+ <span class='id identifier rubyid_gather'>gather</span><span class='lparen'>(</span><span class='symbol'>:next</span><span class='comma'>,</span> <span class='id identifier rubyid_quantity'>quantity</span><span class='rparen'>)</span>
499
+ <span class='kw'>end</span></pre>
500
+ </td>
501
+ </tr>
502
+ </table>
503
+ </div>
504
+
505
+ <div class="method_details ">
506
+ <h3 class="signature " id="previous-instance_method">
507
+
508
+
509
+ <span class="overload">#<strong>previous</strong> &#x21d2; <tt><span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span></tt> </span>
510
+
511
+ <span class="overload">#<strong>previous</strong>(value) &#x21d2; <tt>Array&lt;<span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span>&gt;</tt> </span>
512
+
513
+
514
+
515
+
516
+
517
+
518
+ </h3><div class="docstring">
519
+ <div class="discussion">
520
+
521
+
522
+ </div>
523
+ </div>
524
+ <div class="tags">
525
+
526
+ <p class="tag_title">Overloads:</p>
527
+ <ul class="overload">
528
+
529
+
530
+ <li class="overload_item">
531
+ <span class="signature">#<strong>previous</strong> &#x21d2; <tt><span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span></tt> </span>
532
+ <div class="docstring">
533
+ <div class="discussion">
534
+
535
+ <p>Fetch the previous unit relative to this unit.</p>
536
+
537
+
538
+ </div>
539
+ </div>
540
+ <div class="tags">
541
+
542
+ <p class="tag_title">Returns:</p>
543
+ <ul class="return">
544
+
545
+ <li>
546
+
547
+
548
+ <span class='type'>(<tt><span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span></tt>)</span>
549
+
550
+
551
+
552
+ </li>
553
+
554
+ </ul>
555
+
556
+ </div>
557
+ </li>
558
+
559
+
560
+ <li class="overload_item">
561
+ <span class="signature">#<strong>previous</strong>(value) &#x21d2; <tt>Array&lt;<span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span>&gt;</tt> </span>
562
+ <div class="docstring">
563
+ <div class="discussion">
564
+
565
+ <p>Fetch some previous number of units relative to this unit</p>
566
+
567
+
568
+ </div>
569
+ </div>
570
+ <div class="tags">
571
+ <p class="tag_title">Parameters:</p>
572
+ <ul class="param">
573
+
574
+ <li>
575
+
576
+ <span class='name'>quantity</span>
577
+
578
+
579
+ <span class='type'>(<tt>Integer</tt>)</span>
580
+
581
+
582
+
583
+ </li>
584
+
585
+ </ul>
586
+
587
+ <p class="tag_title">Returns:</p>
588
+ <ul class="return">
589
+
590
+ <li>
591
+
592
+
593
+ <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span>&gt;</tt>)</span>
594
+
595
+
596
+
597
+ </li>
598
+
599
+ </ul>
600
+
601
+ </div>
602
+ </li>
603
+
604
+ </ul>
605
+
606
+
607
+ </div><table class="source_code">
608
+ <tr>
609
+ <td>
610
+ <pre class="lines">
611
+
612
+
613
+ 14
614
+ 15
615
+ 16
616
+ 17</pre>
617
+ </td>
618
+ <td>
619
+ <pre class="code"><span class="info file"># File 'lib/timeboss/calendar/support/navigable.rb', line 14</span>
620
+
621
+ <span class='kw'>def</span> <span class='id identifier rubyid_previous'>previous</span><span class='lparen'>(</span><span class='id identifier rubyid_quantity'>quantity</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
622
+ <span class='kw'>return</span> <span class='id identifier rubyid_down'>down</span> <span class='kw'>if</span> <span class='id identifier rubyid_quantity'>quantity</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
623
+ <span class='id identifier rubyid_gather'>gather</span><span class='lparen'>(</span><span class='symbol'>:previous</span><span class='comma'>,</span> <span class='id identifier rubyid_quantity'>quantity</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_reverse'>reverse</span>
624
+ <span class='kw'>end</span></pre>
625
+ </td>
626
+ </tr>
627
+ </table>
628
+ </div>
629
+
630
+ <div class="method_details ">
631
+ <h3 class="signature " id="until-instance_method">
632
+
633
+ #<strong>until</strong>(end_date) &#x21d2; <tt>Array&lt;<span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span>&gt;</tt>
634
+
635
+
636
+
637
+
638
+
639
+ </h3><div class="docstring">
640
+ <div class="discussion">
641
+
642
+ <p>Fetch a list of units from this unit until some date.</p>
643
+
644
+
645
+ </div>
646
+ </div>
647
+ <div class="tags">
648
+ <p class="tag_title">Parameters:</p>
649
+ <ul class="param">
650
+
651
+ <li>
652
+
653
+ <span class='name'>end_date</span>
654
+
655
+
656
+ <span class='type'>(<tt>Date</tt>)</span>
657
+
658
+
659
+
660
+ </li>
661
+
662
+ </ul>
663
+
664
+ <p class="tag_title">Returns:</p>
665
+ <ul class="return">
666
+
667
+ <li>
668
+
669
+
670
+ <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Unit</a></span>&gt;</tt>)</span>
671
+
672
+
673
+
674
+ </li>
675
+
676
+ </ul>
677
+
678
+ </div><table class="source_code">
679
+ <tr>
680
+ <td>
681
+ <pre class="lines">
682
+
683
+
684
+ 48
685
+ 49
686
+ 50
687
+ 51
688
+ 52
689
+ 53
690
+ 54
691
+ 55
692
+ 56</pre>
693
+ </td>
694
+ <td>
695
+ <pre class="code"><span class="info file"># File 'lib/timeboss/calendar/support/navigable.rb', line 48</span>
696
+
697
+ <span class='kw'>def</span> <span class='kw'>until</span><span class='lparen'>(</span><span class='id identifier rubyid_end_date'>end_date</span><span class='rparen'>)</span>
698
+ <span class='id identifier rubyid_entry'>entry</span> <span class='op'>=</span> <span class='kw'>self</span>
699
+ <span class='lbracket'>[</span><span class='id identifier rubyid_entry'>entry</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_entries'>entries</span><span class='op'>|</span>
700
+ <span class='kw'>until</span> <span class='id identifier rubyid_entry'>entry</span><span class='period'>.</span><span class='id identifier rubyid_end_date'>end_date</span> <span class='op'>&gt;=</span> <span class='id identifier rubyid_end_date'>end_date</span>
701
+ <span class='id identifier rubyid_entry'>entry</span> <span class='op'>=</span> <span class='id identifier rubyid_entry'>entry</span><span class='period'>.</span><span class='id identifier rubyid_next'>next</span>
702
+ <span class='id identifier rubyid_entries'>entries</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_entry'>entry</span>
703
+ <span class='kw'>end</span>
704
+ <span class='kw'>end</span>
705
+ <span class='kw'>end</span></pre>
706
+ </td>
707
+ </tr>
708
+ </table>
709
+ </div>
710
+
711
+ </div>
712
+
713
+ </div>
714
+
715
+ <div id="footer">
716
+ Generated on Sun Jul 19 10:12:10 2020 by
717
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
718
+ 0.9.25 (ruby-2.4.1).
719
+ </div>
720
+
721
+ </div>
722
+ </body>
723
+ </html>