time_span 0.0.1.alpha02 → 0.0.1.alpha03
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.
- data/doc/Gemfile.html +94 -0
- data/doc/Rakefile.html +92 -0
- data/doc/TimeSpan/RelativeTime.html +147 -0
- data/doc/TimeSpan/TimeSpan.html +978 -0
- data/doc/TimeSpan.html +165 -0
- data/doc/created.rid +7 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +106 -0
- data/doc/js/darkfish.js +116 -0
- data/doc/js/jquery.js +32 -0
- data/doc/js/quicksearch.js +114 -0
- data/doc/js/thickbox-compressed.js +10 -0
- data/doc/lib/time_span/version_rb.html +52 -0
- data/doc/lib/time_span_rb.html +56 -0
- data/doc/rdoc.css +763 -0
- data/doc/spec/spec_helper_rb.html +62 -0
- data/doc/spec/time_span/time_span_spec_rb.html +52 -0
- data/lib/time_span/version.rb +1 -1
- data/time_span.gemspec +1 -1
- metadata +40 -4
@@ -0,0 +1,978 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: TimeSpan::TimeSpan</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body id="top" class="class">
|
19
|
+
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
23
|
+
<h3 class="section-header">
|
24
|
+
<a href="../index.html">Home</a>
|
25
|
+
<a href="../index.html#classes">Classes</a>
|
26
|
+
<a href="../index.html#methods">Methods</a>
|
27
|
+
</h3>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="../lib/time_span_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/time_span.rb">lib/time_span.rb</a></li>
|
39
|
+
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div id="class-metadata">
|
48
|
+
|
49
|
+
<!-- Parent Class -->
|
50
|
+
<div id="parent-class-section" class="section">
|
51
|
+
<h3 class="section-header">Parent</h3>
|
52
|
+
|
53
|
+
<p class="link">Object</p>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Method Quickref -->
|
64
|
+
<div id="method-list-section" class="section">
|
65
|
+
<h3 class="section-header">Methods</h3>
|
66
|
+
<ul class="link-list">
|
67
|
+
|
68
|
+
<li><a href="#method-c-new">::new</a></li>
|
69
|
+
|
70
|
+
<li><a href="#method-i-3C">#<</a></li>
|
71
|
+
|
72
|
+
<li><a href="#method-i-3D-3D">#==</a></li>
|
73
|
+
|
74
|
+
<li><a href="#method-i-3E">#></a></li>
|
75
|
+
|
76
|
+
<li><a href="#method-i-contained_fully_inside-3F">#contained_fully_inside?</a></li>
|
77
|
+
|
78
|
+
<li><a href="#method-i-contained_inside-3F">#contained_inside?</a></li>
|
79
|
+
|
80
|
+
<li><a href="#method-i-contains-3F">#contains?</a></li>
|
81
|
+
|
82
|
+
<li><a href="#method-i-contains_fully-3F">#contains_fully?</a></li>
|
83
|
+
|
84
|
+
<li><a href="#method-i-ends_after-3F">#ends_after?</a></li>
|
85
|
+
|
86
|
+
<li><a href="#method-i-ends_as_other_starts-3F">#ends_as_other_starts?</a></li>
|
87
|
+
|
88
|
+
<li><a href="#method-i-ends_before-3F">#ends_before?</a></li>
|
89
|
+
|
90
|
+
<li><a href="#method-i-ends_before_other_starts-3F">#ends_before_other_starts?</a></li>
|
91
|
+
|
92
|
+
<li><a href="#method-i-ends_on_or_after-3F">#ends_on_or_after?</a></li>
|
93
|
+
|
94
|
+
<li><a href="#method-i-ends_on_or_before-3F">#ends_on_or_before?</a></li>
|
95
|
+
|
96
|
+
<li><a href="#method-i-ends_with-3F">#ends_with?</a></li>
|
97
|
+
|
98
|
+
<li><a href="#method-i-starts_after-3F">#starts_after?</a></li>
|
99
|
+
|
100
|
+
<li><a href="#method-i-starts_after_other_ends-3F">#starts_after_other_ends?</a></li>
|
101
|
+
|
102
|
+
<li><a href="#method-i-starts_as_other_ends-3F">#starts_as_other_ends?</a></li>
|
103
|
+
|
104
|
+
<li><a href="#method-i-starts_before-3F">#starts_before?</a></li>
|
105
|
+
|
106
|
+
<li><a href="#method-i-starts_before_or_with-3F">#starts_before_or_with?</a></li>
|
107
|
+
|
108
|
+
<li><a href="#method-i-starts_on_or_after-3F">#starts_on_or_after?</a></li>
|
109
|
+
|
110
|
+
<li><a href="#method-i-starts_with-3F">#starts_with?</a></li>
|
111
|
+
|
112
|
+
</ul>
|
113
|
+
</div>
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
</div>
|
118
|
+
|
119
|
+
<div id="project-metadata">
|
120
|
+
|
121
|
+
|
122
|
+
<div id="fileindex-section" class="section project-section">
|
123
|
+
<h3 class="section-header">Files</h3>
|
124
|
+
<ul>
|
125
|
+
|
126
|
+
<li class="file"><a href="../Gemfile.html">Gemfile</a></li>
|
127
|
+
|
128
|
+
<li class="file"><a href="../Rakefile.html">Rakefile</a></li>
|
129
|
+
|
130
|
+
</ul>
|
131
|
+
</div>
|
132
|
+
|
133
|
+
|
134
|
+
<div id="classindex-section" class="section project-section">
|
135
|
+
<h3 class="section-header">Class/Module Index
|
136
|
+
<span class="search-toggle"><img src="../images/find.png"
|
137
|
+
height="16" width="16" alt="[+]"
|
138
|
+
title="show/hide quicksearch" /></span></h3>
|
139
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
140
|
+
<fieldset>
|
141
|
+
<legend>Quicksearch</legend>
|
142
|
+
<input type="text" name="quicksearch" value=""
|
143
|
+
class="quicksearch-field" />
|
144
|
+
</fieldset>
|
145
|
+
</form>
|
146
|
+
|
147
|
+
<ul class="link-list">
|
148
|
+
|
149
|
+
<li><a href="../TimeSpan.html">TimeSpan</a></li>
|
150
|
+
|
151
|
+
<li><a href="../TimeSpan/RelativeTime.html">TimeSpan::RelativeTime</a></li>
|
152
|
+
|
153
|
+
<li><a href="../TimeSpan/TimeSpan.html">TimeSpan::TimeSpan</a></li>
|
154
|
+
|
155
|
+
</ul>
|
156
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
157
|
+
</div>
|
158
|
+
|
159
|
+
|
160
|
+
</div>
|
161
|
+
</div>
|
162
|
+
|
163
|
+
<div id="documentation">
|
164
|
+
<h1 class="class">TimeSpan::TimeSpan</h1>
|
165
|
+
|
166
|
+
<div id="description" class="description">
|
167
|
+
|
168
|
+
</div><!-- description -->
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
<!-- Attributes -->
|
182
|
+
<div id="attribute-method-details" class="method-section section">
|
183
|
+
<h3 class="section-header">Attributes</h3>
|
184
|
+
|
185
|
+
|
186
|
+
<div id="ends-attribute-method" class="method-detail">
|
187
|
+
<a name="ends"></a>
|
188
|
+
|
189
|
+
<a name="ends="></a>
|
190
|
+
|
191
|
+
<div class="method-heading attribute-method-heading">
|
192
|
+
<span class="method-name">ends</span><span
|
193
|
+
class="attribute-access-type">[RW]</span>
|
194
|
+
</div>
|
195
|
+
|
196
|
+
<div class="method-description">
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
</div>
|
201
|
+
</div>
|
202
|
+
|
203
|
+
<div id="starts-attribute-method" class="method-detail">
|
204
|
+
<a name="starts"></a>
|
205
|
+
|
206
|
+
<a name="starts="></a>
|
207
|
+
|
208
|
+
<div class="method-heading attribute-method-heading">
|
209
|
+
<span class="method-name">starts</span><span
|
210
|
+
class="attribute-access-type">[RW]</span>
|
211
|
+
</div>
|
212
|
+
|
213
|
+
<div class="method-description">
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
</div>
|
218
|
+
</div>
|
219
|
+
|
220
|
+
</div><!-- attribute-method-details -->
|
221
|
+
|
222
|
+
|
223
|
+
<!-- Methods -->
|
224
|
+
|
225
|
+
<div id="public-class-method-details" class="method-section section">
|
226
|
+
<h3 class="section-header">Public Class Methods</h3>
|
227
|
+
|
228
|
+
|
229
|
+
<div id="new-method" class="method-detail ">
|
230
|
+
<a name="method-c-new"></a>
|
231
|
+
|
232
|
+
|
233
|
+
<div class="method-heading">
|
234
|
+
<span class="method-name">new</span><span
|
235
|
+
class="method-args">(starting_at, ending_at)</span>
|
236
|
+
<span class="method-click-advice">click to toggle source</span>
|
237
|
+
</div>
|
238
|
+
|
239
|
+
|
240
|
+
<div class="method-description">
|
241
|
+
|
242
|
+
<p>time comparison #</p>
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
<div class="method-source-code" id="new-source">
|
247
|
+
<pre>
|
248
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 13</span>
|
249
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">starting_at</span>, <span class="ruby-identifier">ending_at</span>)
|
250
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">starts</span> = <span class="ruby-identifier">starting_at</span>
|
251
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">ends</span> = <span class="ruby-identifier">ending_at</span>
|
252
|
+
<span class="ruby-identifier">starting_at</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">RelativeTime</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">ending_at</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">RelativeTime</span>)
|
253
|
+
<span class="ruby-keyword">end</span></pre>
|
254
|
+
</div><!-- new-source -->
|
255
|
+
|
256
|
+
</div>
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
</div><!-- new-method -->
|
262
|
+
|
263
|
+
|
264
|
+
</div><!-- public-class-method-details -->
|
265
|
+
|
266
|
+
<div id="public-instance-method-details" class="method-section section">
|
267
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
268
|
+
|
269
|
+
|
270
|
+
<div id="3C-method" class="method-detail ">
|
271
|
+
<a name="method-i-3C"></a>
|
272
|
+
|
273
|
+
|
274
|
+
<div class="method-heading">
|
275
|
+
<span class="method-name"><</span><span
|
276
|
+
class="method-args">(b)</span>
|
277
|
+
<span class="method-click-advice">click to toggle source</span>
|
278
|
+
</div>
|
279
|
+
|
280
|
+
|
281
|
+
<div class="method-description">
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
<div class="method-source-code" id="3C-source">
|
288
|
+
<pre>
|
289
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 88</span>
|
290
|
+
<span class="ruby-keyword">def</span> <span class="ruby-operator"><</span> (<span class="ruby-identifier">b</span>)
|
291
|
+
<span class="ruby-identifier">ends_before_other_starts?</span>(<span class="ruby-identifier">b</span>)
|
292
|
+
<span class="ruby-keyword">end</span></pre>
|
293
|
+
</div><!-- 3C-source -->
|
294
|
+
|
295
|
+
</div>
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
</div><!-- 3C-method -->
|
301
|
+
|
302
|
+
|
303
|
+
<div id="3D-3D-method" class="method-detail ">
|
304
|
+
<a name="method-i-3D-3D"></a>
|
305
|
+
|
306
|
+
|
307
|
+
<div class="method-heading">
|
308
|
+
<span class="method-name">==</span><span
|
309
|
+
class="method-args">(b)</span>
|
310
|
+
<span class="method-click-advice">click to toggle source</span>
|
311
|
+
</div>
|
312
|
+
|
313
|
+
|
314
|
+
<div class="method-description">
|
315
|
+
|
316
|
+
<p>>= and <= intentionally not defined;</p>
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
<div class="method-source-code" id="3D-3D-source">
|
321
|
+
<pre>
|
322
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 84</span>
|
323
|
+
<span class="ruby-keyword">def</span> <span class="ruby-operator">==</span> (<span class="ruby-identifier">b</span>)
|
324
|
+
<span class="ruby-identifier">ends_with?</span>(<span class="ruby-identifier">b</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">starts_with?</span>(<span class="ruby-identifier">b</span>)
|
325
|
+
<span class="ruby-keyword">end</span></pre>
|
326
|
+
</div><!-- 3D-3D-source -->
|
327
|
+
|
328
|
+
</div>
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
</div><!-- 3D-3D-method -->
|
334
|
+
|
335
|
+
|
336
|
+
<div id="3E-method" class="method-detail ">
|
337
|
+
<a name="method-i-3E"></a>
|
338
|
+
|
339
|
+
|
340
|
+
<div class="method-heading">
|
341
|
+
<span class="method-name">></span><span
|
342
|
+
class="method-args">(b)</span>
|
343
|
+
<span class="method-click-advice">click to toggle source</span>
|
344
|
+
</div>
|
345
|
+
|
346
|
+
|
347
|
+
<div class="method-description">
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
<div class="method-source-code" id="3E-source">
|
354
|
+
<pre>
|
355
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 92</span>
|
356
|
+
<span class="ruby-keyword">def</span> <span class="ruby-operator">></span> (<span class="ruby-identifier">b</span>)
|
357
|
+
<span class="ruby-identifier">starts_after_other_ends?</span>(<span class="ruby-identifier">b</span>)
|
358
|
+
<span class="ruby-keyword">end</span></pre>
|
359
|
+
</div><!-- 3E-source -->
|
360
|
+
|
361
|
+
</div>
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
</div><!-- 3E-method -->
|
367
|
+
|
368
|
+
|
369
|
+
<div id="contained_fully_inside-3F-method" class="method-detail ">
|
370
|
+
<a name="method-i-contained_fully_inside-3F"></a>
|
371
|
+
|
372
|
+
|
373
|
+
<div class="method-heading">
|
374
|
+
<span class="method-name">contained_fully_inside?</span><span
|
375
|
+
class="method-args">(b)</span>
|
376
|
+
<span class="method-click-advice">click to toggle source</span>
|
377
|
+
</div>
|
378
|
+
|
379
|
+
|
380
|
+
<div class="method-description">
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
<div class="method-source-code" id="contained_fully_inside-3F-source">
|
387
|
+
<pre>
|
388
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 96</span>
|
389
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">contained_fully_inside?</span>(<span class="ruby-identifier">b</span>)
|
390
|
+
<span class="ruby-identifier">starts_after?</span>(<span class="ruby-identifier">b</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">ends_before?</span>(<span class="ruby-identifier">b</span>)
|
391
|
+
<span class="ruby-keyword">end</span></pre>
|
392
|
+
</div><!-- contained_fully_inside-3F-source -->
|
393
|
+
|
394
|
+
</div>
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
</div><!-- contained_fully_inside-3F-method -->
|
400
|
+
|
401
|
+
|
402
|
+
<div id="contained_inside-3F-method" class="method-detail ">
|
403
|
+
<a name="method-i-contained_inside-3F"></a>
|
404
|
+
|
405
|
+
|
406
|
+
<div class="method-heading">
|
407
|
+
<span class="method-name">contained_inside?</span><span
|
408
|
+
class="method-args">(b)</span>
|
409
|
+
<span class="method-click-advice">click to toggle source</span>
|
410
|
+
</div>
|
411
|
+
|
412
|
+
|
413
|
+
<div class="method-description">
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
<div class="method-source-code" id="contained_inside-3F-source">
|
420
|
+
<pre>
|
421
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 100</span>
|
422
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">contained_inside?</span>(<span class="ruby-identifier">b</span>)
|
423
|
+
<span class="ruby-identifier">starts_on_or_after?</span>(<span class="ruby-identifier">b</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">ends_on_or_before?</span>(<span class="ruby-identifier">b</span>)
|
424
|
+
<span class="ruby-keyword">end</span></pre>
|
425
|
+
</div><!-- contained_inside-3F-source -->
|
426
|
+
|
427
|
+
</div>
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
</div><!-- contained_inside-3F-method -->
|
433
|
+
|
434
|
+
|
435
|
+
<div id="contains-3F-method" class="method-detail ">
|
436
|
+
<a name="method-i-contains-3F"></a>
|
437
|
+
|
438
|
+
|
439
|
+
<div class="method-heading">
|
440
|
+
<span class="method-name">contains?</span><span
|
441
|
+
class="method-args">(b)</span>
|
442
|
+
<span class="method-click-advice">click to toggle source</span>
|
443
|
+
</div>
|
444
|
+
|
445
|
+
|
446
|
+
<div class="method-description">
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
<div class="method-source-code" id="contains-3F-source">
|
453
|
+
<pre>
|
454
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 108</span>
|
455
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">contains?</span>(<span class="ruby-identifier">b</span>)
|
456
|
+
<span class="ruby-identifier">starts_before_or_with?</span>(<span class="ruby-identifier">b</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">ends_on_or_after?</span>(<span class="ruby-identifier">b</span>)
|
457
|
+
<span class="ruby-keyword">end</span></pre>
|
458
|
+
</div><!-- contains-3F-source -->
|
459
|
+
|
460
|
+
</div>
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
</div><!-- contains-3F-method -->
|
466
|
+
|
467
|
+
|
468
|
+
<div id="contains_fully-3F-method" class="method-detail ">
|
469
|
+
<a name="method-i-contains_fully-3F"></a>
|
470
|
+
|
471
|
+
|
472
|
+
<div class="method-heading">
|
473
|
+
<span class="method-name">contains_fully?</span><span
|
474
|
+
class="method-args">(b)</span>
|
475
|
+
<span class="method-click-advice">click to toggle source</span>
|
476
|
+
</div>
|
477
|
+
|
478
|
+
|
479
|
+
<div class="method-description">
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
<div class="method-source-code" id="contains_fully-3F-source">
|
486
|
+
<pre>
|
487
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 104</span>
|
488
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">contains_fully?</span>(<span class="ruby-identifier">b</span>)
|
489
|
+
<span class="ruby-identifier">starts_before?</span>(<span class="ruby-identifier">b</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">ends_after?</span>(<span class="ruby-identifier">b</span>)
|
490
|
+
<span class="ruby-keyword">end</span></pre>
|
491
|
+
</div><!-- contains_fully-3F-source -->
|
492
|
+
|
493
|
+
</div>
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
</div><!-- contains_fully-3F-method -->
|
499
|
+
|
500
|
+
|
501
|
+
<div id="ends_after-3F-method" class="method-detail ">
|
502
|
+
<a name="method-i-ends_after-3F"></a>
|
503
|
+
|
504
|
+
|
505
|
+
<div class="method-heading">
|
506
|
+
<span class="method-name">ends_after?</span><span
|
507
|
+
class="method-args">(b)</span>
|
508
|
+
<span class="method-click-advice">click to toggle source</span>
|
509
|
+
</div>
|
510
|
+
|
511
|
+
|
512
|
+
<div class="method-description">
|
513
|
+
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
<div class="method-source-code" id="ends_after-3F-source">
|
519
|
+
<pre>
|
520
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 53</span>
|
521
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">ends_after?</span>(<span class="ruby-identifier">b</span>)
|
522
|
+
<span class="ruby-identifier">ends</span> <span class="ruby-operator">></span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">ends</span>
|
523
|
+
<span class="ruby-keyword">end</span></pre>
|
524
|
+
</div><!-- ends_after-3F-source -->
|
525
|
+
|
526
|
+
</div>
|
527
|
+
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
</div><!-- ends_after-3F-method -->
|
532
|
+
|
533
|
+
|
534
|
+
<div id="ends_as_other_starts-3F-method" class="method-detail ">
|
535
|
+
<a name="method-i-ends_as_other_starts-3F"></a>
|
536
|
+
|
537
|
+
|
538
|
+
<div class="method-heading">
|
539
|
+
<span class="method-name">ends_as_other_starts?</span><span
|
540
|
+
class="method-args">(b)</span>
|
541
|
+
<span class="method-click-advice">click to toggle source</span>
|
542
|
+
</div>
|
543
|
+
|
544
|
+
|
545
|
+
<div class="method-description">
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
|
550
|
+
|
551
|
+
<div class="method-source-code" id="ends_as_other_starts-3F-source">
|
552
|
+
<pre>
|
553
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 65</span>
|
554
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">ends_as_other_starts?</span>(<span class="ruby-identifier">b</span>)
|
555
|
+
<span class="ruby-identifier">ends</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">starts</span>
|
556
|
+
<span class="ruby-keyword">end</span></pre>
|
557
|
+
</div><!-- ends_as_other_starts-3F-source -->
|
558
|
+
|
559
|
+
</div>
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
|
564
|
+
</div><!-- ends_as_other_starts-3F-method -->
|
565
|
+
|
566
|
+
|
567
|
+
<div id="ends_before-3F-method" class="method-detail ">
|
568
|
+
<a name="method-i-ends_before-3F"></a>
|
569
|
+
|
570
|
+
|
571
|
+
<div class="method-heading">
|
572
|
+
<span class="method-name">ends_before?</span><span
|
573
|
+
class="method-args">(b)</span>
|
574
|
+
<span class="method-click-advice">click to toggle source</span>
|
575
|
+
</div>
|
576
|
+
|
577
|
+
|
578
|
+
<div class="method-description">
|
579
|
+
|
580
|
+
|
581
|
+
|
582
|
+
|
583
|
+
|
584
|
+
<div class="method-source-code" id="ends_before-3F-source">
|
585
|
+
<pre>
|
586
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 41</span>
|
587
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">ends_before?</span>(<span class="ruby-identifier">b</span>)
|
588
|
+
<span class="ruby-identifier">ends</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">ends</span>
|
589
|
+
<span class="ruby-keyword">end</span></pre>
|
590
|
+
</div><!-- ends_before-3F-source -->
|
591
|
+
|
592
|
+
</div>
|
593
|
+
|
594
|
+
|
595
|
+
|
596
|
+
|
597
|
+
</div><!-- ends_before-3F-method -->
|
598
|
+
|
599
|
+
|
600
|
+
<div id="ends_before_other_starts-3F-method" class="method-detail ">
|
601
|
+
<a name="method-i-ends_before_other_starts-3F"></a>
|
602
|
+
|
603
|
+
|
604
|
+
<div class="method-heading">
|
605
|
+
<span class="method-name">ends_before_other_starts?</span><span
|
606
|
+
class="method-args">(b)</span>
|
607
|
+
<span class="method-click-advice">click to toggle source</span>
|
608
|
+
</div>
|
609
|
+
|
610
|
+
|
611
|
+
<div class="method-description">
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
|
616
|
+
|
617
|
+
<div class="method-source-code" id="ends_before_other_starts-3F-source">
|
618
|
+
<pre>
|
619
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 61</span>
|
620
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">ends_before_other_starts?</span>(<span class="ruby-identifier">b</span>)
|
621
|
+
<span class="ruby-identifier">ends</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">starts</span>
|
622
|
+
<span class="ruby-keyword">end</span></pre>
|
623
|
+
</div><!-- ends_before_other_starts-3F-source -->
|
624
|
+
|
625
|
+
</div>
|
626
|
+
|
627
|
+
|
628
|
+
|
629
|
+
|
630
|
+
</div><!-- ends_before_other_starts-3F-method -->
|
631
|
+
|
632
|
+
|
633
|
+
<div id="ends_on_or_after-3F-method" class="method-detail ">
|
634
|
+
<a name="method-i-ends_on_or_after-3F"></a>
|
635
|
+
|
636
|
+
|
637
|
+
<div class="method-heading">
|
638
|
+
<span class="method-name">ends_on_or_after?</span><span
|
639
|
+
class="method-args">(b)</span>
|
640
|
+
<span class="method-click-advice">click to toggle source</span>
|
641
|
+
</div>
|
642
|
+
|
643
|
+
|
644
|
+
<div class="method-description">
|
645
|
+
|
646
|
+
|
647
|
+
|
648
|
+
|
649
|
+
|
650
|
+
<div class="method-source-code" id="ends_on_or_after-3F-source">
|
651
|
+
<pre>
|
652
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 49</span>
|
653
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">ends_on_or_after?</span>(<span class="ruby-identifier">b</span>)
|
654
|
+
<span class="ruby-identifier">ends</span> <span class="ruby-operator">>=</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">ends</span>
|
655
|
+
<span class="ruby-keyword">end</span></pre>
|
656
|
+
</div><!-- ends_on_or_after-3F-source -->
|
657
|
+
|
658
|
+
</div>
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
</div><!-- ends_on_or_after-3F-method -->
|
664
|
+
|
665
|
+
|
666
|
+
<div id="ends_on_or_before-3F-method" class="method-detail ">
|
667
|
+
<a name="method-i-ends_on_or_before-3F"></a>
|
668
|
+
|
669
|
+
|
670
|
+
<div class="method-heading">
|
671
|
+
<span class="method-name">ends_on_or_before?</span><span
|
672
|
+
class="method-args">(b)</span>
|
673
|
+
<span class="method-click-advice">click to toggle source</span>
|
674
|
+
</div>
|
675
|
+
|
676
|
+
|
677
|
+
<div class="method-description">
|
678
|
+
|
679
|
+
|
680
|
+
|
681
|
+
|
682
|
+
|
683
|
+
<div class="method-source-code" id="ends_on_or_before-3F-source">
|
684
|
+
<pre>
|
685
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 45</span>
|
686
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">ends_on_or_before?</span>(<span class="ruby-identifier">b</span>)
|
687
|
+
<span class="ruby-identifier">ends</span> <span class="ruby-operator"><=</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">ends</span>
|
688
|
+
<span class="ruby-keyword">end</span></pre>
|
689
|
+
</div><!-- ends_on_or_before-3F-source -->
|
690
|
+
|
691
|
+
</div>
|
692
|
+
|
693
|
+
|
694
|
+
|
695
|
+
|
696
|
+
</div><!-- ends_on_or_before-3F-method -->
|
697
|
+
|
698
|
+
|
699
|
+
<div id="ends_with-3F-method" class="method-detail ">
|
700
|
+
<a name="method-i-ends_with-3F"></a>
|
701
|
+
|
702
|
+
|
703
|
+
<div class="method-heading">
|
704
|
+
<span class="method-name">ends_with?</span><span
|
705
|
+
class="method-args">(b)</span>
|
706
|
+
<span class="method-click-advice">click to toggle source</span>
|
707
|
+
</div>
|
708
|
+
|
709
|
+
|
710
|
+
<div class="method-description">
|
711
|
+
|
712
|
+
|
713
|
+
|
714
|
+
|
715
|
+
|
716
|
+
<div class="method-source-code" id="ends_with-3F-source">
|
717
|
+
<pre>
|
718
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 57</span>
|
719
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">ends_with?</span>(<span class="ruby-identifier">b</span>)
|
720
|
+
<span class="ruby-identifier">ends</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">ends</span>
|
721
|
+
<span class="ruby-keyword">end</span></pre>
|
722
|
+
</div><!-- ends_with-3F-source -->
|
723
|
+
|
724
|
+
</div>
|
725
|
+
|
726
|
+
|
727
|
+
|
728
|
+
|
729
|
+
</div><!-- ends_with-3F-method -->
|
730
|
+
|
731
|
+
|
732
|
+
<div id="starts_after-3F-method" class="method-detail ">
|
733
|
+
<a name="method-i-starts_after-3F"></a>
|
734
|
+
|
735
|
+
|
736
|
+
<div class="method-heading">
|
737
|
+
<span class="method-name">starts_after?</span><span
|
738
|
+
class="method-args">(b)</span>
|
739
|
+
<span class="method-click-advice">click to toggle source</span>
|
740
|
+
</div>
|
741
|
+
|
742
|
+
|
743
|
+
<div class="method-description">
|
744
|
+
|
745
|
+
|
746
|
+
|
747
|
+
|
748
|
+
|
749
|
+
<div class="method-source-code" id="starts_after-3F-source">
|
750
|
+
<pre>
|
751
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 24</span>
|
752
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">starts_after?</span>(<span class="ruby-identifier">b</span>)
|
753
|
+
<span class="ruby-identifier">starts</span> <span class="ruby-operator">></span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">starts</span>
|
754
|
+
<span class="ruby-keyword">end</span></pre>
|
755
|
+
</div><!-- starts_after-3F-source -->
|
756
|
+
|
757
|
+
</div>
|
758
|
+
|
759
|
+
|
760
|
+
|
761
|
+
|
762
|
+
</div><!-- starts_after-3F-method -->
|
763
|
+
|
764
|
+
|
765
|
+
<div id="starts_after_other_ends-3F-method" class="method-detail ">
|
766
|
+
<a name="method-i-starts_after_other_ends-3F"></a>
|
767
|
+
|
768
|
+
|
769
|
+
<div class="method-heading">
|
770
|
+
<span class="method-name">starts_after_other_ends?</span><span
|
771
|
+
class="method-args">(b)</span>
|
772
|
+
<span class="method-click-advice">click to toggle source</span>
|
773
|
+
</div>
|
774
|
+
|
775
|
+
|
776
|
+
<div class="method-description">
|
777
|
+
|
778
|
+
|
779
|
+
|
780
|
+
|
781
|
+
|
782
|
+
<div class="method-source-code" id="starts_after_other_ends-3F-source">
|
783
|
+
<pre>
|
784
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 69</span>
|
785
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">starts_after_other_ends?</span>(<span class="ruby-identifier">b</span>)
|
786
|
+
<span class="ruby-identifier">starts</span> <span class="ruby-operator">></span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">ends</span>
|
787
|
+
<span class="ruby-keyword">end</span></pre>
|
788
|
+
</div><!-- starts_after_other_ends-3F-source -->
|
789
|
+
|
790
|
+
</div>
|
791
|
+
|
792
|
+
|
793
|
+
|
794
|
+
|
795
|
+
</div><!-- starts_after_other_ends-3F-method -->
|
796
|
+
|
797
|
+
|
798
|
+
<div id="starts_as_other_ends-3F-method" class="method-detail ">
|
799
|
+
<a name="method-i-starts_as_other_ends-3F"></a>
|
800
|
+
|
801
|
+
|
802
|
+
<div class="method-heading">
|
803
|
+
<span class="method-name">starts_as_other_ends?</span><span
|
804
|
+
class="method-args">(b)</span>
|
805
|
+
<span class="method-click-advice">click to toggle source</span>
|
806
|
+
</div>
|
807
|
+
|
808
|
+
|
809
|
+
<div class="method-description">
|
810
|
+
|
811
|
+
|
812
|
+
|
813
|
+
|
814
|
+
|
815
|
+
<div class="method-source-code" id="starts_as_other_ends-3F-source">
|
816
|
+
<pre>
|
817
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 73</span>
|
818
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">starts_as_other_ends?</span>(<span class="ruby-identifier">b</span>)
|
819
|
+
<span class="ruby-identifier">starts</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">ends</span>
|
820
|
+
<span class="ruby-keyword">end</span></pre>
|
821
|
+
</div><!-- starts_as_other_ends-3F-source -->
|
822
|
+
|
823
|
+
</div>
|
824
|
+
|
825
|
+
|
826
|
+
|
827
|
+
|
828
|
+
</div><!-- starts_as_other_ends-3F-method -->
|
829
|
+
|
830
|
+
|
831
|
+
<div id="starts_before-3F-method" class="method-detail ">
|
832
|
+
<a name="method-i-starts_before-3F"></a>
|
833
|
+
|
834
|
+
|
835
|
+
<div class="method-heading">
|
836
|
+
<span class="method-name">starts_before?</span><span
|
837
|
+
class="method-args">(b)</span>
|
838
|
+
<span class="method-click-advice">click to toggle source</span>
|
839
|
+
</div>
|
840
|
+
|
841
|
+
|
842
|
+
<div class="method-description">
|
843
|
+
|
844
|
+
|
845
|
+
|
846
|
+
|
847
|
+
|
848
|
+
<div class="method-source-code" id="starts_before-3F-source">
|
849
|
+
<pre>
|
850
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 20</span>
|
851
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">starts_before?</span>(<span class="ruby-identifier">b</span>)
|
852
|
+
<span class="ruby-identifier">starts</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">starts</span>
|
853
|
+
<span class="ruby-keyword">end</span></pre>
|
854
|
+
</div><!-- starts_before-3F-source -->
|
855
|
+
|
856
|
+
</div>
|
857
|
+
|
858
|
+
|
859
|
+
|
860
|
+
|
861
|
+
</div><!-- starts_before-3F-method -->
|
862
|
+
|
863
|
+
|
864
|
+
<div id="starts_before_or_with-3F-method" class="method-detail ">
|
865
|
+
<a name="method-i-starts_before_or_with-3F"></a>
|
866
|
+
|
867
|
+
|
868
|
+
<div class="method-heading">
|
869
|
+
<span class="method-name">starts_before_or_with?</span><span
|
870
|
+
class="method-args">(b)</span>
|
871
|
+
<span class="method-click-advice">click to toggle source</span>
|
872
|
+
</div>
|
873
|
+
|
874
|
+
|
875
|
+
<div class="method-description">
|
876
|
+
|
877
|
+
|
878
|
+
|
879
|
+
|
880
|
+
|
881
|
+
<div class="method-source-code" id="starts_before_or_with-3F-source">
|
882
|
+
<pre>
|
883
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 37</span>
|
884
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">starts_before_or_with?</span>(<span class="ruby-identifier">b</span>)
|
885
|
+
<span class="ruby-identifier">starts</span> <span class="ruby-operator"><=</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">starts</span>
|
886
|
+
<span class="ruby-keyword">end</span></pre>
|
887
|
+
</div><!-- starts_before_or_with-3F-source -->
|
888
|
+
|
889
|
+
</div>
|
890
|
+
|
891
|
+
|
892
|
+
|
893
|
+
|
894
|
+
</div><!-- starts_before_or_with-3F-method -->
|
895
|
+
|
896
|
+
|
897
|
+
<div id="starts_on_or_after-3F-method" class="method-detail ">
|
898
|
+
<a name="method-i-starts_on_or_after-3F"></a>
|
899
|
+
|
900
|
+
|
901
|
+
<div class="method-heading">
|
902
|
+
<span class="method-name">starts_on_or_after?</span><span
|
903
|
+
class="method-args">(b)</span>
|
904
|
+
<span class="method-click-advice">click to toggle source</span>
|
905
|
+
</div>
|
906
|
+
|
907
|
+
|
908
|
+
<div class="method-description">
|
909
|
+
|
910
|
+
|
911
|
+
|
912
|
+
|
913
|
+
|
914
|
+
<div class="method-source-code" id="starts_on_or_after-3F-source">
|
915
|
+
<pre>
|
916
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 28</span>
|
917
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">starts_on_or_after?</span>(<span class="ruby-identifier">b</span>)
|
918
|
+
<span class="ruby-identifier">starts</span> <span class="ruby-operator">>=</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">starts</span>
|
919
|
+
<span class="ruby-keyword">end</span></pre>
|
920
|
+
</div><!-- starts_on_or_after-3F-source -->
|
921
|
+
|
922
|
+
</div>
|
923
|
+
|
924
|
+
|
925
|
+
|
926
|
+
|
927
|
+
</div><!-- starts_on_or_after-3F-method -->
|
928
|
+
|
929
|
+
|
930
|
+
<div id="starts_with-3F-method" class="method-detail ">
|
931
|
+
<a name="method-i-starts_with-3F"></a>
|
932
|
+
|
933
|
+
|
934
|
+
<div class="method-heading">
|
935
|
+
<span class="method-name">starts_with?</span><span
|
936
|
+
class="method-args">(b)</span>
|
937
|
+
<span class="method-click-advice">click to toggle source</span>
|
938
|
+
</div>
|
939
|
+
|
940
|
+
|
941
|
+
<div class="method-description">
|
942
|
+
|
943
|
+
|
944
|
+
|
945
|
+
|
946
|
+
|
947
|
+
<div class="method-source-code" id="starts_with-3F-source">
|
948
|
+
<pre>
|
949
|
+
<span class="ruby-comment"># File lib/time_span.rb, line 33</span>
|
950
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">starts_with?</span>(<span class="ruby-identifier">b</span>)
|
951
|
+
<span class="ruby-identifier">starts</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">starts</span>
|
952
|
+
<span class="ruby-keyword">end</span></pre>
|
953
|
+
</div><!-- starts_with-3F-source -->
|
954
|
+
|
955
|
+
</div>
|
956
|
+
|
957
|
+
|
958
|
+
|
959
|
+
|
960
|
+
</div><!-- starts_with-3F-method -->
|
961
|
+
|
962
|
+
|
963
|
+
</div><!-- public-instance-method-details -->
|
964
|
+
|
965
|
+
</div><!-- 5Buntitled-5D -->
|
966
|
+
|
967
|
+
|
968
|
+
</div><!-- documentation -->
|
969
|
+
|
970
|
+
<div id="validator-badges">
|
971
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
972
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
973
|
+
Rdoc Generator</a> 2</small>.</p>
|
974
|
+
</div>
|
975
|
+
|
976
|
+
</body>
|
977
|
+
</html>
|
978
|
+
|