time_span 0.0.1.beta.01 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,1032 +1,2907 @@
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">
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
3
  <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>
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: TimeSpan::TimeSpan
8
+
9
+ &mdash; Documentation by YARD 0.7.5
10
+
11
+ </title>
30
12
 
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&amp;height=550&amp;width=785"
38
- class="thickbox" title="lib/time_span.rb">lib/time_span.rb</a></li>
39
-
40
- </ul>
41
- </div>
42
- </div>
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
43
14
 
44
-
45
- </div>
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
46
16
 
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
-
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
57
21
 
58
-
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
59
23
 
60
-
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../_index.html">Index (T)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../TimeSpan.html" title="TimeSpan (module)">TimeSpan</a></span></span>
38
+ &raquo;
39
+ <span class="title">TimeSpan</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Class: TimeSpan::TimeSpan
60
+
61
+
62
+
63
+ </h1>
61
64
 
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName">Object</span>
62
70
 
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>
71
+ <ul class="fullTree">
72
+ <li>Object</li>
69
73
 
70
- <li><a href="#method-i-21-3D">#!=</a></li>
71
-
72
- <li><a href="#method-i-3C">#<</a></li>
73
-
74
- <li><a href="#method-i-3D-3D">#==</a></li>
75
-
76
- <li><a href="#method-i-3E">#></a></li>
77
-
78
- <li><a href="#method-i-contained_fully_inside-3F">#contained_fully_inside?</a></li>
79
-
80
- <li><a href="#method-i-contained_inside-3F">#contained_inside?</a></li>
81
-
82
- <li><a href="#method-i-contains-3F">#contains?</a></li>
83
-
84
- <li><a href="#method-i-contains_fully-3F">#contains_fully?</a></li>
85
-
86
- <li><a href="#method-i-ends_after-3F">#ends_after?</a></li>
87
-
88
- <li><a href="#method-i-ends_as_other_starts-3F">#ends_as_other_starts?</a></li>
89
-
90
- <li><a href="#method-i-ends_before-3F">#ends_before?</a></li>
91
-
92
- <li><a href="#method-i-ends_before_other_starts-3F">#ends_before_other_starts?</a></li>
93
-
94
- <li><a href="#method-i-ends_on_or_after-3F">#ends_on_or_after?</a></li>
95
-
96
- <li><a href="#method-i-ends_on_or_before-3F">#ends_on_or_before?</a></li>
97
-
98
- <li><a href="#method-i-ends_with-3F">#ends_with?</a></li>
99
-
100
- <li><a href="#method-i-starts_after-3F">#starts_after?</a></li>
101
-
102
- <li><a href="#method-i-starts_after_other_ends-3F">#starts_after_other_ends?</a></li>
103
-
104
- <li><a href="#method-i-starts_as_other_ends-3F">#starts_as_other_ends?</a></li>
105
-
106
- <li><a href="#method-i-starts_before-3F">#starts_before?</a></li>
107
-
108
- <li><a href="#method-i-starts_before_or_with-3F">#starts_before_or_with?</a></li>
109
-
110
- <li><a href="#method-i-starts_on_or_after-3F">#starts_on_or_after?</a></li>
111
-
112
- <li><a href="#method-i-starts_with-3F">#starts_with?</a></li>
74
+ <li class="next">TimeSpan::TimeSpan</li>
113
75
 
114
76
  </ul>
115
- </div>
77
+ <a href="#" class="inheritanceTree">show all</a>
116
78
 
79
+ </dd>
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+ <dt class="r2 last">Defined in:</dt>
90
+ <dd class="r2 last">lib/time_span.rb</dd>
91
+
92
+ </dl>
93
+ <div class="clear"></div>
117
94
 
118
-
119
- </div>
95
+ <h2>Overview</h2><div class="docstring">
96
+ <div class="discussion">
97
+
98
+ <p>this class' objects have a starting and ending TimeSpan::RelativeTime, and
99
+ both times must be on the same TimeSpan::TimeLine implements a large
100
+ selection of comparators, both for start / end times (single time
101
+ compartors), and also range comparators</p>
120
102
 
121
- <div id="project-metadata">
103
+
104
+ </div>
105
+ </div>
106
+ <div class="tags">
107
+
108
+ <h3>Author:</h3>
109
+ <ul class="author">
110
+
111
+ <li>
112
+
113
+
122
114
 
123
115
 
124
- <div id="fileindex-section" class="section project-section">
125
- <h3 class="section-header">Files</h3>
126
- <ul>
127
-
128
- <li class="file"><a href="../Gemfile.html">Gemfile</a></li>
129
-
130
- <li class="file"><a href="../Rakefile.html">Rakefile</a></li>
131
-
132
- </ul>
133
- </div>
134
-
135
-
136
- <div id="classindex-section" class="section project-section">
137
- <h3 class="section-header">Class/Module Index
138
- <span class="search-toggle"><img src="../images/find.png"
139
- height="16" width="16" alt="[+]"
140
- title="show/hide quicksearch" /></span></h3>
141
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
142
- <fieldset>
143
- <legend>Quicksearch</legend>
144
- <input type="text" name="quicksearch" value=""
145
- class="quicksearch-field" />
146
- </fieldset>
147
- </form>
148
-
149
- <ul class="link-list">
150
-
151
- <li><a href="../TimeSpan.html">TimeSpan</a></li>
152
-
153
- <li><a href="../TimeSpan/RelativeTime.html">TimeSpan::RelativeTime</a></li>
154
-
155
- <li><a href="../TimeSpan/TimeLine.html">TimeSpan::TimeLine</a></li>
156
-
157
- <li><a href="../TimeSpan/TimeSpan.html">TimeSpan::TimeSpan</a></li>
158
116
 
159
- </ul>
160
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
161
- </div>
162
-
117
+ <div class='inline'>
118
+ <p>Craig A. Cook</p>
119
+ </div>
163
120
 
164
- </div>
165
- </div>
166
-
167
- <div id="documentation">
168
- <h1 class="class">TimeSpan::TimeSpan</h1>
121
+ </li>
122
+
123
+ </ul>
169
124
 
170
- <div id="description" class="description">
171
-
172
- <p>this classes’ object have a starting and ending <a
173
- href="RelativeTime.html">RelativeTime</a>, and both times must be on the
174
- same <a href="TimeLine.html">TimeLine</a></p>
125
+ </div>
175
126
 
176
- <p>it implements a large selection of comparators, both for start / end times
177
- (single time compartors), and also range comparators</p>
178
127
 
179
- </div><!-- description -->
180
128
 
129
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
130
+ <ul class="summary">
181
131
 
132
+ <li class="public ">
133
+ <span class="summary_signature">
182
134
 
135
+ <a href="#ends-instance_method" title="#ends (instance method)">- (Object) <strong>ends</strong> </a>
183
136
 
184
- <div id="5Buntitled-5D" class="documentation-section">
185
-
186
137
 
187
-
188
-
189
-
138
+
139
+ </span>
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
190
149
 
191
-
192
- <!-- Attributes -->
193
- <div id="attribute-method-details" class="method-section section">
194
- <h3 class="section-header">Attributes</h3>
150
+
151
+ <span class="summary_desc"><div class='inline'>
152
+ <p>TimeSpan::RelativeTime end time.</p>
153
+ </div></span>
154
+
155
+ </li>
195
156
 
196
-
197
- <div id="ends-attribute-method" class="method-detail">
198
- <a name="ends"></a>
199
-
200
- <a name="ends="></a>
201
-
202
- <div class="method-heading attribute-method-heading">
203
- <span class="method-name">ends</span><span
204
- class="attribute-access-type">[RW]</span>
205
- </div>
157
+
158
+ <li class="public ">
159
+ <span class="summary_signature">
160
+
161
+ <a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
162
+
206
163
 
207
- <div class="method-description">
208
-
209
-
210
-
211
- </div>
212
- </div>
213
-
214
- <div id="starts-attribute-method" class="method-detail">
215
- <a name="starts"></a>
216
-
217
- <a name="starts="></a>
218
-
219
- <div class="method-heading attribute-method-heading">
220
- <span class="method-name">starts</span><span
221
- class="attribute-access-type">[RW]</span>
222
- </div>
164
+
165
+ </span>
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
223
175
 
224
- <div class="method-description">
225
-
226
-
227
-
228
- </div>
229
- </div>
230
-
231
- </div><!-- attribute-method-details -->
232
-
176
+
177
+ <span class="summary_desc"><div class='inline'>
178
+ <p>Returns the value of attribute name.</p>
179
+ </div></span>
180
+
181
+ </li>
233
182
 
234
- <!-- Methods -->
235
-
236
- <div id="public-class-method-details" class="method-section section">
237
- <h3 class="section-header">Public Class Methods</h3>
183
+
184
+ <li class="public ">
185
+ <span class="summary_signature">
186
+
187
+ <a href="#starts-instance_method" title="#starts (instance method)">- (Object) <strong>starts</strong> </a>
188
+
238
189
 
239
-
240
- <div id="new-method" class="method-detail ">
241
- <a name="method-c-new"></a>
190
+
191
+ </span>
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
242
201
 
243
-
244
- <div class="method-heading">
245
- <span class="method-name">new</span><span
246
- class="method-args">(starting_at, ending_at)</span>
247
- <span class="method-click-advice">click to toggle source</span>
248
- </div>
249
-
202
+
203
+ <span class="summary_desc"><div class='inline'>
204
+ <p>TimeSpan::RelativeTime start time.</p>
205
+ </div></span>
206
+
207
+ </li>
250
208
 
251
- <div class="method-description">
252
-
253
-
254
-
255
-
256
-
257
- <div class="method-source-code" id="new-source">
258
- <pre>
259
- <span class="ruby-comment"># File lib/time_span.rb, line 14</span>
260
- <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>)
261
- <span class="ruby-identifier">raise</span> <span class="ruby-string">&quot;Cannot make a span unless both points are on the same timeline&quot;</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">starting_at</span>.<span class="ruby-identifier">colinear_with?</span>(<span class="ruby-identifier">ending_at</span>)
262
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">starts</span> = <span class="ruby-identifier">starting_at</span>
263
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">ends</span> = <span class="ruby-identifier">ending_at</span>
264
- <span class="ruby-identifier">starting_at</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">RelativeTime</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">ending_at</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">RelativeTime</span>) <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">starting_at</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-identifier">ending_at</span>)
265
- <span class="ruby-keyword">end</span></pre>
266
- </div><!-- new-source -->
267
-
268
- </div>
209
+
210
+ <li class="public ">
211
+ <span class="summary_signature">
212
+
213
+ <a href="#time_line-instance_method" title="#time_line (instance method)">- (Object) <strong>time_line</strong> </a>
214
+
269
215
 
270
-
216
+
217
+ </span>
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
271
227
 
272
-
273
- </div><!-- new-method -->
228
+
229
+ <span class="summary_desc"><div class='inline'>
230
+ <p>TimeSpan::TimeLine this TimeSpan is associated with.</p>
231
+ </div></span>
232
+
233
+ </li>
274
234
 
275
-
276
- </div><!-- public-class-method-details -->
277
235
 
278
- <div id="public-instance-method-details" class="method-section section">
279
- <h3 class="section-header">Public Instance Methods</h3>
280
-
281
-
282
- <div id="21-3D-method" class="method-detail ">
283
- <a name="method-i-21-3D"></a>
236
+ </ul>
284
237
 
285
-
286
- <div class="method-heading">
287
- <span class="method-name">!=</span><span
288
- class="method-args">(b)</span>
289
- <span class="method-click-advice">click to toggle source</span>
290
- </div>
291
-
292
238
 
293
- <div class="method-description">
294
-
295
-
296
-
297
-
298
-
299
- <div class="method-source-code" id="21-3D-source">
300
- <pre>
301
- <span class="ruby-comment"># File lib/time_span.rb, line 98</span>
302
- <span class="ruby-keyword">def</span> <span class="ruby-operator">!=</span> (<span class="ruby-identifier">b</span>)
303
- <span class="ruby-operator">!</span><span class="ruby-identifier">end_with</span>(<span class="ruby-identifier">b</span>) <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-identifier">starts_with</span>(<span class="ruby-identifier">b</span>)
304
- <span class="ruby-keyword">end</span></pre>
305
- </div><!-- 21-3D-source -->
306
-
307
- </div>
308
239
 
309
-
310
240
 
311
-
312
- </div><!-- 21-3D-method -->
241
+
242
+ <h2>
243
+ Instance Method Summary
244
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
245
+ </h2>
313
246
 
247
+ <ul class="summary">
314
248
 
315
- <div id="3C-method" class="method-detail ">
316
- <a name="method-i-3C"></a>
317
-
318
-
319
- <div class="method-heading">
320
- <span class="method-name">&lt;</span><span
321
- class="method-args">(b)</span>
322
- <span class="method-click-advice">click to toggle source</span>
323
- </div>
324
-
325
-
326
- <div class="method-description">
327
-
328
-
329
-
330
-
331
-
332
- <div class="method-source-code" id="3C-source">
333
- <pre>
334
- <span class="ruby-comment"># File lib/time_span.rb, line 102</span>
335
- <span class="ruby-keyword">def</span> <span class="ruby-operator">&lt;</span> (<span class="ruby-identifier">b</span>)
336
- <span class="ruby-identifier">ends_before_other_starts?</span>(<span class="ruby-identifier">b</span>)
337
- <span class="ruby-keyword">end</span></pre>
338
- </div><!-- 3C-source -->
339
-
340
- </div>
249
+ <li class="public ">
250
+ <span class="summary_signature">
251
+
252
+ <a href="#%21%3D-instance_method" title="#!= (instance method)">- (Boolean) <strong>!=</strong>(other_time_span) </a>
253
+
341
254
 
342
-
255
+
256
+ </span>
257
+
258
+
259
+
260
+
261
+
262
+
343
263
 
344
-
345
- </div><!-- 3C-method -->
264
+
265
+ <span class="summary_desc"><div class='inline'>
266
+ <p>tests if one TimeSpan is not the same as another (on the same TimeLine).</p>
267
+ </div></span>
268
+
269
+ </li>
346
270
 
347
271
 
348
- <div id="3D-3D-method" class="method-detail ">
349
- <a name="method-i-3D-3D"></a>
350
-
351
-
352
- <div class="method-heading">
353
- <span class="method-name">==</span><span
354
- class="method-args">(b)</span>
355
- <span class="method-click-advice">click to toggle source</span>
356
- </div>
357
-
358
-
359
- <div class="method-description">
360
-
361
- <p>&gt;= and &lt;= intentionally not defined;</p>
362
-
363
- <pre>logically can only mean starts_after? or ends_before? respectively
364
- which are basically aliased to &gt; &amp; &lt;
365
- unless it is meant &lt; XOR =</pre>
366
-
367
-
368
-
369
- <div class="method-source-code" id="3D-3D-source">
370
- <pre>
371
- <span class="ruby-comment"># File lib/time_span.rb, line 94</span>
372
- <span class="ruby-keyword">def</span> <span class="ruby-operator">==</span> (<span class="ruby-identifier">b</span>)
373
- <span class="ruby-identifier">ends_with?</span>(<span class="ruby-identifier">b</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">starts_with?</span>(<span class="ruby-identifier">b</span>)
374
- <span class="ruby-keyword">end</span></pre>
375
- </div><!-- 3D-3D-source -->
376
-
377
- </div>
272
+ <li class="public ">
273
+ <span class="summary_signature">
274
+
275
+ <a href="#%3C-instance_method" title="#&lt; (instance method)">- (Boolean) <strong>&lt;</strong>(other_time_span) </a>
276
+
378
277
 
379
-
278
+
279
+ </span>
280
+
281
+
282
+
283
+
284
+
285
+
380
286
 
381
-
382
- </div><!-- 3D-3D-method -->
287
+
288
+ <span class="summary_desc"><div class='inline'>
289
+ <p>tests if one TimeSpan ends before another starts (on the same TimeLine)
290
+ alias for '#ends_before_other_starts'.</p>
291
+ </div></span>
292
+
293
+ </li>
383
294
 
384
295
 
385
- <div id="3E-method" class="method-detail ">
386
- <a name="method-i-3E"></a>
387
-
388
-
389
- <div class="method-heading">
390
- <span class="method-name">&gt;</span><span
391
- class="method-args">(b)</span>
392
- <span class="method-click-advice">click to toggle source</span>
393
- </div>
394
-
395
-
396
- <div class="method-description">
397
-
398
-
399
-
400
-
401
-
402
- <div class="method-source-code" id="3E-source">
403
- <pre>
404
- <span class="ruby-comment"># File lib/time_span.rb, line 106</span>
405
- <span class="ruby-keyword">def</span> <span class="ruby-operator">&gt;</span> (<span class="ruby-identifier">b</span>)
406
- <span class="ruby-identifier">starts_after_other_ends?</span>(<span class="ruby-identifier">b</span>)
407
- <span class="ruby-keyword">end</span></pre>
408
- </div><!-- 3E-source -->
409
-
410
- </div>
296
+ <li class="public ">
297
+ <span class="summary_signature">
298
+
299
+ <a href="#%3D%3D-instance_method" title="#== (instance method)">- (Boolean) <strong>==</strong>(other_time_span) </a>
300
+
411
301
 
412
-
302
+
303
+ </span>
304
+
305
+
306
+
307
+
308
+
309
+
413
310
 
414
-
415
- </div><!-- 3E-method -->
311
+
312
+ <span class="summary_desc"><div class='inline'>
313
+ <p>tests if one TimeSpan is the same as another (on the same TimeLine).</p>
314
+ </div></span>
315
+
316
+ </li>
416
317
 
417
318
 
418
- <div id="contained_fully_inside-3F-method" class="method-detail ">
419
- <a name="method-i-contained_fully_inside-3F"></a>
420
-
421
-
422
- <div class="method-heading">
423
- <span class="method-name">contained_fully_inside?</span><span
424
- class="method-args">(b)</span>
425
- <span class="method-click-advice">click to toggle source</span>
426
- </div>
427
-
428
-
429
- <div class="method-description">
430
-
431
-
432
-
433
-
434
-
435
- <div class="method-source-code" id="contained_fully_inside-3F-source">
436
- <pre>
437
- <span class="ruby-comment"># File lib/time_span.rb, line 110</span>
438
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">contained_fully_inside?</span>(<span class="ruby-identifier">b</span>)
439
- <span class="ruby-identifier">starts_after?</span>(<span class="ruby-identifier">b</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">ends_before?</span>(<span class="ruby-identifier">b</span>)
440
- <span class="ruby-keyword">end</span></pre>
441
- </div><!-- contained_fully_inside-3F-source -->
442
-
443
- </div>
319
+ <li class="public ">
320
+ <span class="summary_signature">
321
+
322
+ <a href="#%3E-instance_method" title="#&gt; (instance method)">- (Boolean) <strong>&gt;</strong>(other_time_span) </a>
323
+
444
324
 
445
-
325
+
326
+ </span>
327
+
328
+
329
+
330
+
331
+
332
+
446
333
 
447
-
448
- </div><!-- contained_fully_inside-3F-method -->
334
+
335
+ <span class="summary_desc"><div class='inline'>
336
+ <p>tests if one TimeSpan starts after another ends (on the same TimeLine)
337
+ alias for '#starts_after_other_ends'.</p>
338
+ </div></span>
339
+
340
+ </li>
449
341
 
450
342
 
451
- <div id="contained_inside-3F-method" class="method-detail ">
452
- <a name="method-i-contained_inside-3F"></a>
343
+ <li class="public ">
344
+ <span class="summary_signature">
345
+
346
+ <a href="#contained_fully_inside%3F-instance_method" title="#contained_fully_inside? (instance method)">- (Boolean) <strong>contained_fully_inside?</strong>(other_time_span) </a>
347
+
453
348
 
454
-
455
- <div class="method-heading">
456
- <span class="method-name">contained_inside?</span><span
457
- class="method-args">(b)</span>
458
- <span class="method-click-advice">click to toggle source</span>
459
- </div>
460
-
349
+
350
+ </span>
351
+
352
+
353
+
354
+
355
+
356
+
461
357
 
462
- <div class="method-description">
463
-
464
-
465
-
466
-
467
-
468
- <div class="method-source-code" id="contained_inside-3F-source">
469
- <pre>
470
- <span class="ruby-comment"># File lib/time_span.rb, line 114</span>
471
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">contained_inside?</span>(<span class="ruby-identifier">b</span>)
472
- <span class="ruby-identifier">starts_on_or_after?</span>(<span class="ruby-identifier">b</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">ends_on_or_before?</span>(<span class="ruby-identifier">b</span>)
473
- <span class="ruby-keyword">end</span></pre>
474
- </div><!-- contained_inside-3F-source -->
475
-
476
- </div>
477
-
478
-
479
-
480
-
481
- </div><!-- contained_inside-3F-method -->
358
+
359
+ <span class="summary_desc"><div class='inline'>
360
+ <p>tests if one TimeSpan is contained within another (on the same
361
+ TimeLine).</p>
362
+ </div></span>
363
+
364
+ </li>
482
365
 
483
366
 
484
- <div id="contains-3F-method" class="method-detail ">
485
- <a name="method-i-contains-3F"></a>
486
-
487
-
488
- <div class="method-heading">
489
- <span class="method-name">contains?</span><span
490
- class="method-args">(b)</span>
491
- <span class="method-click-advice">click to toggle source</span>
492
- </div>
493
-
494
-
495
- <div class="method-description">
496
-
497
-
498
-
499
-
500
-
501
- <div class="method-source-code" id="contains-3F-source">
502
- <pre>
503
- <span class="ruby-comment"># File lib/time_span.rb, line 122</span>
504
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">contains?</span>(<span class="ruby-identifier">b</span>)
505
- <span class="ruby-identifier">starts_before_or_with?</span>(<span class="ruby-identifier">b</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">ends_on_or_after?</span>(<span class="ruby-identifier">b</span>)
506
- <span class="ruby-keyword">end</span></pre>
507
- </div><!-- contains-3F-source -->
508
-
509
- </div>
367
+ <li class="public ">
368
+ <span class="summary_signature">
369
+
370
+ <a href="#contained_inside%3F-instance_method" title="#contained_inside? (instance method)">- (Boolean) <strong>contained_inside?</strong>(other_time_span) </a>
371
+
510
372
 
511
-
373
+
374
+ </span>
375
+
376
+
377
+
378
+
379
+
380
+
512
381
 
513
-
514
- </div><!-- contains-3F-method -->
382
+
383
+ <span class="summary_desc"><div class='inline'>
384
+ <p>tests if one TimeSpan is contained within another, possibly begining as or
385
+ ends as another (on the same TimeLine).</p>
386
+ </div></span>
387
+
388
+ </li>
515
389
 
516
390
 
517
- <div id="contains_fully-3F-method" class="method-detail ">
518
- <a name="method-i-contains_fully-3F"></a>
519
-
520
-
521
- <div class="method-heading">
522
- <span class="method-name">contains_fully?</span><span
523
- class="method-args">(b)</span>
524
- <span class="method-click-advice">click to toggle source</span>
525
- </div>
526
-
527
-
528
- <div class="method-description">
529
-
530
-
531
-
532
-
533
-
534
- <div class="method-source-code" id="contains_fully-3F-source">
535
- <pre>
536
- <span class="ruby-comment"># File lib/time_span.rb, line 118</span>
537
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">contains_fully?</span>(<span class="ruby-identifier">b</span>)
538
- <span class="ruby-identifier">starts_before?</span>(<span class="ruby-identifier">b</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">ends_after?</span>(<span class="ruby-identifier">b</span>)
539
- <span class="ruby-keyword">end</span></pre>
540
- </div><!-- contains_fully-3F-source -->
541
-
542
- </div>
391
+ <li class="public ">
392
+ <span class="summary_signature">
393
+
394
+ <a href="#contains%3F-instance_method" title="#contains? (instance method)">- (Boolean) <strong>contains?</strong>(other_time_span) </a>
395
+
543
396
 
544
-
397
+
398
+ </span>
399
+
400
+
401
+
402
+
403
+
404
+
545
405
 
546
-
547
- </div><!-- contains_fully-3F-method -->
406
+
407
+ <span class="summary_desc"><div class='inline'>
408
+ <p>tests if one TimeSpan contains within another (on the same TimeLine).</p>
409
+ </div></span>
410
+
411
+ </li>
548
412
 
549
413
 
550
- <div id="ends_after-3F-method" class="method-detail ">
551
- <a name="method-i-ends_after-3F"></a>
552
-
553
-
554
- <div class="method-heading">
555
- <span class="method-name">ends_after?</span><span
556
- class="method-args">(b)</span>
557
- <span class="method-click-advice">click to toggle source</span>
558
- </div>
559
-
560
-
561
- <div class="method-description">
562
-
563
-
564
-
565
-
566
-
567
- <div class="method-source-code" id="ends_after-3F-source">
568
- <pre>
569
- <span class="ruby-comment"># File lib/time_span.rb, line 60</span>
570
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">ends_after?</span>(<span class="ruby-identifier">b</span>)
571
- <span class="ruby-identifier">ends</span> <span class="ruby-operator">&gt;</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">ends</span>
572
- <span class="ruby-keyword">end</span></pre>
573
- </div><!-- ends_after-3F-source -->
574
-
575
- </div>
414
+ <li class="public ">
415
+ <span class="summary_signature">
416
+
417
+ <a href="#contains_fully%3F-instance_method" title="#contains_fully? (instance method)">- (Boolean) <strong>contains_fully?</strong>(other_time_span) </a>
418
+
576
419
 
577
-
420
+
421
+ </span>
422
+
423
+
424
+
425
+
426
+
427
+
578
428
 
579
-
580
- </div><!-- ends_after-3F-method -->
429
+
430
+ <span class="summary_desc"><div class='inline'>
431
+ <p>tests if one TimeSpan contains another (on the same TimeLine).</p>
432
+ </div></span>
433
+
434
+ </li>
581
435
 
582
436
 
583
- <div id="ends_as_other_starts-3F-method" class="method-detail ">
584
- <a name="method-i-ends_as_other_starts-3F"></a>
585
-
586
-
587
- <div class="method-heading">
588
- <span class="method-name">ends_as_other_starts?</span><span
589
- class="method-args">(b)</span>
590
- <span class="method-click-advice">click to toggle source</span>
591
- </div>
592
-
593
-
594
- <div class="method-description">
595
-
596
-
597
-
598
-
599
-
600
- <div class="method-source-code" id="ends_as_other_starts-3F-source">
601
- <pre>
602
- <span class="ruby-comment"># File lib/time_span.rb, line 72</span>
603
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">ends_as_other_starts?</span>(<span class="ruby-identifier">b</span>)
604
- <span class="ruby-identifier">ends</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">starts</span>
605
- <span class="ruby-keyword">end</span></pre>
606
- </div><!-- ends_as_other_starts-3F-source -->
607
-
608
- </div>
437
+ <li class="public ">
438
+ <span class="summary_signature">
439
+
440
+ <a href="#endpoint_statuses-instance_method" title="#endpoint_statuses (instance method)">- (Object) <strong>endpoint_statuses</strong> </a>
441
+
609
442
 
610
-
443
+
444
+ </span>
445
+
446
+
447
+
448
+
449
+
450
+
611
451
 
612
-
613
- </div><!-- ends_as_other_starts-3F-method -->
452
+
453
+ <span class="summary_desc"><div class='inline'>
454
+ <p>returns the 'statuses' for the start and end times.</p>
455
+ </div></span>
456
+
457
+ </li>
614
458
 
615
459
 
616
- <div id="ends_before-3F-method" class="method-detail ">
617
- <a name="method-i-ends_before-3F"></a>
618
-
619
-
620
- <div class="method-heading">
621
- <span class="method-name">ends_before?</span><span
622
- class="method-args">(b)</span>
623
- <span class="method-click-advice">click to toggle source</span>
624
- </div>
625
-
626
-
627
- <div class="method-description">
628
-
629
-
630
-
631
-
632
-
633
- <div class="method-source-code" id="ends_before-3F-source">
634
- <pre>
635
- <span class="ruby-comment"># File lib/time_span.rb, line 48</span>
636
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">ends_before?</span>(<span class="ruby-identifier">b</span>)
637
- <span class="ruby-identifier">ends</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">ends</span>
638
- <span class="ruby-keyword">end</span></pre>
639
- </div><!-- ends_before-3F-source -->
640
-
641
- </div>
460
+ <li class="public ">
461
+ <span class="summary_signature">
462
+
463
+ <a href="#ends_after%3F-instance_method" title="#ends_after? (instance method)">- (Boolean) <strong>ends_after?</strong>(other_time_span) </a>
464
+
642
465
 
643
-
466
+
467
+ </span>
468
+
469
+
470
+
471
+
472
+
473
+
644
474
 
645
-
646
- </div><!-- ends_before-3F-method -->
475
+
476
+ <span class="summary_desc"><div class='inline'>
477
+ <p>tests if one TimeSpan ends after another (on the same TimeLine).</p>
478
+ </div></span>
479
+
480
+ </li>
647
481
 
648
482
 
649
- <div id="ends_before_other_starts-3F-method" class="method-detail ">
650
- <a name="method-i-ends_before_other_starts-3F"></a>
651
-
652
-
653
- <div class="method-heading">
654
- <span class="method-name">ends_before_other_starts?</span><span
655
- class="method-args">(b)</span>
656
- <span class="method-click-advice">click to toggle source</span>
657
- </div>
658
-
659
-
660
- <div class="method-description">
661
-
662
-
663
-
664
-
665
-
666
- <div class="method-source-code" id="ends_before_other_starts-3F-source">
667
- <pre>
668
- <span class="ruby-comment"># File lib/time_span.rb, line 68</span>
669
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">ends_before_other_starts?</span>(<span class="ruby-identifier">b</span>)
670
- <span class="ruby-identifier">ends</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">starts</span>
671
- <span class="ruby-keyword">end</span></pre>
672
- </div><!-- ends_before_other_starts-3F-source -->
673
-
674
- </div>
483
+ <li class="public ">
484
+ <span class="summary_signature">
485
+
486
+ <a href="#ends_as_other_starts%3F-instance_method" title="#ends_as_other_starts? (instance method)">- (Boolean) <strong>ends_as_other_starts?</strong>(other_time_span) </a>
487
+
675
488
 
676
-
489
+
490
+ </span>
491
+
492
+
493
+
494
+
495
+
496
+
677
497
 
678
-
679
- </div><!-- ends_before_other_starts-3F-method -->
498
+
499
+ <span class="summary_desc"><div class='inline'>
500
+ <p>tests if one TimeSpan ends at the same time as another starts (on the same
501
+ TimeLine).</p>
502
+ </div></span>
503
+
504
+ </li>
680
505
 
681
506
 
682
- <div id="ends_on_or_after-3F-method" class="method-detail ">
683
- <a name="method-i-ends_on_or_after-3F"></a>
684
-
685
-
686
- <div class="method-heading">
687
- <span class="method-name">ends_on_or_after?</span><span
688
- class="method-args">(b)</span>
689
- <span class="method-click-advice">click to toggle source</span>
690
- </div>
691
-
692
-
693
- <div class="method-description">
694
-
695
-
696
-
697
-
698
-
699
- <div class="method-source-code" id="ends_on_or_after-3F-source">
700
- <pre>
701
- <span class="ruby-comment"># File lib/time_span.rb, line 56</span>
702
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">ends_on_or_after?</span>(<span class="ruby-identifier">b</span>)
703
- <span class="ruby-identifier">ends</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">ends</span>
704
- <span class="ruby-keyword">end</span></pre>
705
- </div><!-- ends_on_or_after-3F-source -->
706
-
707
- </div>
507
+ <li class="public ">
508
+ <span class="summary_signature">
509
+
510
+ <a href="#ends_before%3F-instance_method" title="#ends_before? (instance method)">- (Boolean) <strong>ends_before?</strong>(other_time_span) </a>
511
+
708
512
 
709
-
513
+
514
+ </span>
515
+
516
+
517
+
518
+
519
+
520
+
710
521
 
711
-
712
- </div><!-- ends_on_or_after-3F-method -->
522
+
523
+ <span class="summary_desc"><div class='inline'>
524
+ <p>tests if one TimeSpan ends before another starts (on the same TimeLine).</p>
525
+ </div></span>
526
+
527
+ </li>
713
528
 
714
529
 
715
- <div id="ends_on_or_before-3F-method" class="method-detail ">
716
- <a name="method-i-ends_on_or_before-3F"></a>
717
-
718
-
719
- <div class="method-heading">
720
- <span class="method-name">ends_on_or_before?</span><span
721
- class="method-args">(b)</span>
722
- <span class="method-click-advice">click to toggle source</span>
723
- </div>
724
-
725
-
726
- <div class="method-description">
727
-
728
-
729
-
730
-
731
-
732
- <div class="method-source-code" id="ends_on_or_before-3F-source">
733
- <pre>
734
- <span class="ruby-comment"># File lib/time_span.rb, line 52</span>
735
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">ends_on_or_before?</span>(<span class="ruby-identifier">b</span>)
736
- <span class="ruby-identifier">ends</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">ends</span>
737
- <span class="ruby-keyword">end</span></pre>
738
- </div><!-- ends_on_or_before-3F-source -->
739
-
740
- </div>
530
+ <li class="public ">
531
+ <span class="summary_signature">
532
+
533
+ <a href="#ends_before_other_starts%3F-instance_method" title="#ends_before_other_starts? (instance method)">- (Boolean) <strong>ends_before_other_starts?</strong>(other_time_span) </a>
534
+
741
535
 
742
-
536
+
537
+ </span>
538
+
539
+
540
+
541
+
542
+
543
+
743
544
 
744
-
745
- </div><!-- ends_on_or_before-3F-method -->
545
+
546
+ <span class="summary_desc"><div class='inline'>
547
+ <p>tests if one TimeSpan ends before another starts (on the same TimeLine).</p>
548
+ </div></span>
549
+
550
+ </li>
746
551
 
747
552
 
748
- <div id="ends_with-3F-method" class="method-detail ">
749
- <a name="method-i-ends_with-3F"></a>
750
-
751
-
752
- <div class="method-heading">
753
- <span class="method-name">ends_with?</span><span
754
- class="method-args">(b)</span>
755
- <span class="method-click-advice">click to toggle source</span>
756
- </div>
757
-
758
-
759
- <div class="method-description">
760
-
761
-
762
-
763
-
764
-
765
- <div class="method-source-code" id="ends_with-3F-source">
766
- <pre>
767
- <span class="ruby-comment"># File lib/time_span.rb, line 64</span>
768
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">ends_with?</span>(<span class="ruby-identifier">b</span>)
769
- <span class="ruby-identifier">ends</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">ends</span>
770
- <span class="ruby-keyword">end</span></pre>
771
- </div><!-- ends_with-3F-source -->
772
-
773
- </div>
553
+ <li class="public ">
554
+ <span class="summary_signature">
555
+
556
+ <a href="#ends_on_or_after%3F-instance_method" title="#ends_on_or_after? (instance method)">- (Boolean) <strong>ends_on_or_after?</strong>(other_time_span) </a>
557
+
774
558
 
775
-
559
+
560
+ </span>
561
+
562
+
563
+
564
+
565
+
566
+
776
567
 
777
-
778
- </div><!-- ends_with-3F-method -->
568
+
569
+ <span class="summary_desc"><div class='inline'>
570
+ <p>tests if one TimeSpan ends after or at the same time as another (on the
571
+ same TimeLine).</p>
572
+ </div></span>
573
+
574
+ </li>
779
575
 
780
576
 
781
- <div id="starts_after-3F-method" class="method-detail ">
782
- <a name="method-i-starts_after-3F"></a>
783
-
784
-
785
- <div class="method-heading">
786
- <span class="method-name">starts_after?</span><span
787
- class="method-args">(b)</span>
788
- <span class="method-click-advice">click to toggle source</span>
789
- </div>
790
-
791
-
792
- <div class="method-description">
793
-
794
-
795
-
796
-
797
-
798
- <div class="method-source-code" id="starts_after-3F-source">
799
- <pre>
800
- <span class="ruby-comment"># File lib/time_span.rb, line 31</span>
801
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">starts_after?</span>(<span class="ruby-identifier">b</span>)
802
- <span class="ruby-identifier">starts</span> <span class="ruby-operator">&gt;</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">starts</span>
803
- <span class="ruby-keyword">end</span></pre>
804
- </div><!-- starts_after-3F-source -->
805
-
806
- </div>
577
+ <li class="public ">
578
+ <span class="summary_signature">
579
+
580
+ <a href="#ends_on_or_before%3F-instance_method" title="#ends_on_or_before? (instance method)">- (Boolean) <strong>ends_on_or_before?</strong>(other_time_span) </a>
581
+
807
582
 
808
-
583
+
584
+ </span>
585
+
586
+
587
+
588
+
589
+
590
+
809
591
 
810
-
811
- </div><!-- starts_after-3F-method -->
592
+
593
+ <span class="summary_desc"><div class='inline'>
594
+ <p>tests if one TimeSpan end before or at the same time as another ends (on
595
+ the same TimeLine).</p>
596
+ </div></span>
597
+
598
+ </li>
812
599
 
813
600
 
814
- <div id="starts_after_other_ends-3F-method" class="method-detail ">
815
- <a name="method-i-starts_after_other_ends-3F"></a>
816
-
817
-
818
- <div class="method-heading">
819
- <span class="method-name">starts_after_other_ends?</span><span
820
- class="method-args">(b)</span>
821
- <span class="method-click-advice">click to toggle source</span>
822
- </div>
823
-
824
-
825
- <div class="method-description">
826
-
827
-
828
-
829
-
830
-
831
- <div class="method-source-code" id="starts_after_other_ends-3F-source">
832
- <pre>
833
- <span class="ruby-comment"># File lib/time_span.rb, line 76</span>
834
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">starts_after_other_ends?</span>(<span class="ruby-identifier">b</span>)
835
- <span class="ruby-identifier">starts</span> <span class="ruby-operator">&gt;</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">ends</span>
836
- <span class="ruby-keyword">end</span></pre>
837
- </div><!-- starts_after_other_ends-3F-source -->
838
-
839
- </div>
601
+ <li class="public ">
602
+ <span class="summary_signature">
603
+
604
+ <a href="#ends_with%3F-instance_method" title="#ends_with? (instance method)">- (Boolean) <strong>ends_with?</strong>(other_time_span) </a>
605
+
840
606
 
841
-
607
+
608
+ </span>
609
+
610
+
611
+
612
+
613
+
614
+
842
615
 
843
-
844
- </div><!-- starts_after_other_ends-3F-method -->
616
+
617
+ <span class="summary_desc"><div class='inline'>
618
+ <p>tests if one TimeSpan ends at the same time as another (on the same
619
+ TimeLine).</p>
620
+ </div></span>
621
+
622
+ </li>
845
623
 
846
624
 
847
- <div id="starts_as_other_ends-3F-method" class="method-detail ">
848
- <a name="method-i-starts_as_other_ends-3F"></a>
849
-
850
-
851
- <div class="method-heading">
852
- <span class="method-name">starts_as_other_ends?</span><span
853
- class="method-args">(b)</span>
854
- <span class="method-click-advice">click to toggle source</span>
855
- </div>
856
-
857
-
858
- <div class="method-description">
859
-
860
-
861
-
862
-
863
-
864
- <div class="method-source-code" id="starts_as_other_ends-3F-source">
865
- <pre>
866
- <span class="ruby-comment"># File lib/time_span.rb, line 80</span>
867
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">starts_as_other_ends?</span>(<span class="ruby-identifier">b</span>)
868
- <span class="ruby-identifier">starts</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">ends</span>
869
- <span class="ruby-keyword">end</span></pre>
870
- </div><!-- starts_as_other_ends-3F-source -->
871
-
872
- </div>
625
+ <li class="public ">
626
+ <span class="summary_signature">
627
+
628
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Boolean) <strong>initialize</strong>(starting_at, ending_at, t_line, nom = &quot;(unnamed)&quot;) </a>
629
+
873
630
 
874
-
631
+
632
+ </span>
633
+
634
+ <span class="note title constructor">constructor</span>
635
+
636
+
637
+
638
+
639
+
640
+
875
641
 
876
-
877
- </div><!-- starts_as_other_ends-3F-method -->
642
+
643
+ <span class="summary_desc"><div class='inline'>
644
+ <p>True if passed arguments are valid to create a TimeSpan.</p>
645
+ </div></span>
646
+
647
+ </li>
878
648
 
879
649
 
880
- <div id="starts_before-3F-method" class="method-detail ">
881
- <a name="method-i-starts_before-3F"></a>
882
-
883
-
884
- <div class="method-heading">
885
- <span class="method-name">starts_before?</span><span
886
- class="method-args">(b)</span>
887
- <span class="method-click-advice">click to toggle source</span>
888
- </div>
889
-
890
-
891
- <div class="method-description">
892
-
893
- <pre>#</pre>
650
+ <li class="public ">
651
+ <span class="summary_signature">
652
+
653
+ <a href="#starts_after%3F-instance_method" title="#starts_after? (instance method)">- (Boolean) <strong>starts_after?</strong>(other_time_span) </a>
654
+
894
655
 
895
- <p>single <a href="RelativeTime.html">RelativeTime</a> comparators
896
- #</p>
656
+
657
+ </span>
658
+
659
+
660
+
661
+
662
+
663
+
897
664
 
898
- <pre>#</pre>
899
-
665
+
666
+ <span class="summary_desc"><div class='inline'>
667
+ <p>tests if one TimeSpan starts after another (on the same TimeLine).</p>
668
+ </div></span>
669
+
670
+ </li>
900
671
 
901
-
902
- <div class="method-source-code" id="starts_before-3F-source">
903
- <pre>
904
- <span class="ruby-comment"># File lib/time_span.rb, line 27</span>
905
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">starts_before?</span>(<span class="ruby-identifier">b</span>)
906
- <span class="ruby-identifier">starts</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">starts</span>
907
- <span class="ruby-keyword">end</span></pre>
908
- </div><!-- starts_before-3F-source -->
909
-
910
- </div>
672
+
673
+ <li class="public ">
674
+ <span class="summary_signature">
675
+
676
+ <a href="#starts_after_other_ends%3F-instance_method" title="#starts_after_other_ends? (instance method)">- (Boolean) <strong>starts_after_other_ends?</strong>(other_time_span) </a>
677
+
911
678
 
912
-
679
+
680
+ </span>
681
+
682
+
683
+
684
+
685
+
686
+
913
687
 
914
-
915
- </div><!-- starts_before-3F-method -->
688
+
689
+ <span class="summary_desc"><div class='inline'>
690
+ <p>tests if one TimeSpan ends at the same time as another (on the same
691
+ TimeLine).</p>
692
+ </div></span>
693
+
694
+ </li>
916
695
 
917
696
 
918
- <div id="starts_before_or_with-3F-method" class="method-detail ">
919
- <a name="method-i-starts_before_or_with-3F"></a>
920
-
921
-
922
- <div class="method-heading">
923
- <span class="method-name">starts_before_or_with?</span><span
924
- class="method-args">(b)</span>
925
- <span class="method-click-advice">click to toggle source</span>
926
- </div>
927
-
697
+ <li class="public ">
698
+ <span class="summary_signature">
699
+
700
+ <a href="#starts_as_other_ends%3F-instance_method" title="#starts_as_other_ends? (instance method)">- (Boolean) <strong>starts_as_other_ends?</strong>(other_time_span) </a>
701
+
928
702
 
929
- <div class="method-description">
930
-
931
-
932
-
933
-
934
-
935
- <div class="method-source-code" id="starts_before_or_with-3F-source">
936
- <pre>
937
- <span class="ruby-comment"># File lib/time_span.rb, line 44</span>
938
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">starts_before_or_with?</span>(<span class="ruby-identifier">b</span>)
939
- <span class="ruby-identifier">starts</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">starts</span>
940
- <span class="ruby-keyword">end</span></pre>
941
- </div><!-- starts_before_or_with-3F-source -->
942
-
943
- </div>
703
+
704
+ </span>
705
+
706
+
707
+
708
+
709
+
710
+
944
711
 
945
-
712
+
713
+ <span class="summary_desc"><div class='inline'>
714
+ <p>tests if one TimeSpan starts at the same time as another ends (on the same
715
+ TimeLine).</p>
716
+ </div></span>
717
+
718
+ </li>
719
+
720
+
721
+ <li class="public ">
722
+ <span class="summary_signature">
723
+
724
+ <a href="#starts_before%3F-instance_method" title="#starts_before? (instance method)">- (Boolean) <strong>starts_before?</strong>(other_time_span) </a>
725
+
726
+
727
+
728
+ </span>
729
+
730
+
731
+
732
+
733
+
734
+
735
+
736
+
737
+ <span class="summary_desc"><div class='inline'>
738
+ <p>tests if one TimeSpan starts before another (on the same TimeLine).</p>
739
+ </div></span>
740
+
741
+ </li>
742
+
743
+
744
+ <li class="public ">
745
+ <span class="summary_signature">
746
+
747
+ <a href="#starts_before_or_with%3F-instance_method" title="#starts_before_or_with? (instance method)">- (Boolean) <strong>starts_before_or_with?</strong>(other_time_span) </a>
748
+
749
+
750
+
751
+ </span>
752
+
753
+
754
+
755
+
756
+
757
+
758
+
759
+
760
+ <span class="summary_desc"><div class='inline'>
761
+ <p>tests if one TimeSpan starts before or at the same time as another (on the
762
+ same TimeLine).</p>
763
+ </div></span>
764
+
765
+ </li>
766
+
767
+
768
+ <li class="public ">
769
+ <span class="summary_signature">
770
+
771
+ <a href="#starts_on_or_after%3F-instance_method" title="#starts_on_or_after? (instance method)">- (Boolean) <strong>starts_on_or_after?</strong>(other_time_span) </a>
772
+
773
+
774
+
775
+ </span>
776
+
777
+
778
+
779
+
780
+
781
+
782
+
783
+
784
+ <span class="summary_desc"><div class='inline'>
785
+ <p>tests if one TimeSpan starts with or after another (on the same TimeLine).</p>
786
+ </div></span>
787
+
788
+ </li>
789
+
790
+
791
+ <li class="public ">
792
+ <span class="summary_signature">
793
+
794
+ <a href="#starts_with%3F-instance_method" title="#starts_with? (instance method)">- (Boolean) <strong>starts_with?</strong>(other_time_span) </a>
795
+
796
+
797
+
798
+ </span>
799
+
800
+
801
+
802
+
803
+
804
+
805
+
806
+
807
+ <span class="summary_desc"><div class='inline'>
808
+ <p>tests if one TimeSpan starts at the same time as another (on the same
809
+ TimeLine).</p>
810
+ </div></span>
811
+
812
+ </li>
813
+
814
+
815
+ </ul>
816
+
817
+
818
+ <div id="constructor_details" class="method_details_list">
819
+ <h2>Constructor Details</h2>
820
+
821
+ <div class="method_details first">
822
+ <p class="signature first" id="initialize-instance_method">
823
+
824
+ - (<tt>Boolean</tt>) <strong>initialize</strong>(starting_at, ending_at, t_line, nom = &quot;(unnamed)&quot;)
825
+
826
+
827
+
828
+ </p><div class="docstring">
829
+ <div class="discussion">
830
+
831
+ <p>True if passed arguments are valid to create a TimeSpan</p>
832
+
833
+
834
+ </div>
835
+ </div>
836
+ <div class="tags">
837
+ <h3>Parameters:</h3>
838
+ <ul class="param">
839
+
840
+ <li>
841
+
842
+ <span class='name'>starting_at</span>
843
+
844
+
845
+ <span class='type'>(<tt><span class='object_link'><a href="RelativeTime.html" title="TimeSpan::RelativeTime (class)">TimeSpan::RelativeTime</a></span></tt>)</span>
846
+
847
+
848
+
849
+ &mdash;
850
+ <div class='inline'>
851
+ <p>is when the span starts</p>
852
+ </div>
853
+
854
+ </li>
855
+
856
+ <li>
857
+
858
+ <span class='name'>ending_at</span>
859
+
860
+
861
+ <span class='type'>(<tt><span class='object_link'><a href="RelativeTime.html" title="TimeSpan::RelativeTime (class)">TimeSpan::RelativeTime</a></span></tt>)</span>
862
+
863
+
864
+
865
+ &mdash;
866
+ <div class='inline'>
867
+ <p>is when the spa nends</p>
868
+ </div>
869
+
870
+ </li>
871
+
872
+ <li>
873
+
874
+ <span class='name'>is</span>
875
+
876
+
877
+ <span class='type'>(<tt>TimeSpan::TimeLIne</tt>)</span>
878
+
879
+
880
+
881
+ &mdash;
882
+ <div class='inline'>
883
+ <p>the associated TimeLine</p>
884
+ </div>
885
+
886
+ </li>
887
+
888
+ <li>
889
+
890
+ <span class='name'>The</span>
891
+
892
+
893
+ <span class='type'>(<tt>String</tt>)</span>
894
+
895
+
896
+
897
+ &mdash;
898
+ <div class='inline'>
899
+ <p>name of the TimeSpan (Actually any Ruby Object for which
900
+ '#respond_to?(:to_s) == true')</p>
901
+ </div>
902
+
903
+ </li>
904
+
905
+ </ul>
906
+
907
+ <h3>Raises:</h3>
908
+ <ul class="raise">
909
+
910
+ <li>
911
+
912
+
913
+ <span class='type'>(<tt>ArgumentError</tt>)</span>
914
+
915
+
916
+
917
+ </li>
918
+
919
+ </ul>
920
+
921
+ </div><table class="source_code">
922
+ <tr>
923
+ <td>
924
+ <pre class="lines">
925
+
926
+
927
+ 25
928
+ 26
929
+ 27
930
+ 28
931
+ 29
932
+ 30
933
+ 31
934
+ 32
935
+ 33</pre>
936
+ </td>
937
+ <td>
938
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 25</span>
939
+
940
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_starting_at'>starting_at</span><span class='comma'>,</span> <span class='id identifier rubyid_ending_at'>ending_at</span><span class='comma'>,</span> <span class='id identifier rubyid_t_line'>t_line</span><span class='comma'>,</span> <span class='id identifier rubyid_nom'>nom</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>(unnamed)</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
941
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Cannot make a span unless both points are on the same time_line</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_starting_at'>starting_at</span><span class='period'>.</span><span class='id identifier rubyid_colinear_with?'>colinear_with?</span><span class='lparen'>(</span><span class='id identifier rubyid_ending_at'>ending_at</span><span class='rparen'>)</span>
942
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_starts'>starts</span> <span class='op'>=</span> <span class='id identifier rubyid_starting_at'>starting_at</span>
943
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ends'>ends</span> <span class='op'>=</span> <span class='id identifier rubyid_ending_at'>ending_at</span>
944
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_time_line'>time_line</span> <span class='op'>=</span> <span class='id identifier rubyid_t_line'>t_line</span>
945
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_time_line'>time_line</span><span class='period'>.</span><span class='id identifier rubyid_spans'>spans</span> <span class='op'>&lt;&lt;</span> <span class='kw'>self</span>
946
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='id identifier rubyid_nom'>nom</span>
947
+ <span class='id identifier rubyid_starting_at'>starting_at</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>RelativeTime</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_ending_at'>ending_at</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>RelativeTime</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='lparen'>(</span><span class='id identifier rubyid_starting_at'>starting_at</span> <span class='op'>&lt;=</span> <span class='id identifier rubyid_ending_at'>ending_at</span><span class='rparen'>)</span>
948
+ <span class='kw'>end</span></pre>
949
+ </td>
950
+ </tr>
951
+ </table>
952
+ </div>
953
+
954
+ </div>
955
+
956
+ <div id="instance_attr_details" class="attr_details">
957
+ <h2>Instance Attribute Details</h2>
958
+
959
+
960
+ <span id="ends=-instance_method"></span>
961
+ <span id="ends-instance_method"></span>
962
+ <div class="method_details first">
963
+ <p class="signature first" id="ends-instance_method">
964
+
965
+ - (<tt>Object</tt>) <strong>ends</strong>
966
+
967
+
968
+
969
+ </p><div class="docstring">
970
+ <div class="discussion">
971
+
972
+ <p>TimeSpan::RelativeTime end time</p>
973
+
974
+
975
+ </div>
976
+ </div>
977
+ <div class="tags">
978
+
979
+
980
+ </div><table class="source_code">
981
+ <tr>
982
+ <td>
983
+ <pre class="lines">
984
+
985
+
986
+ 15
987
+ 16
988
+ 17</pre>
989
+ </td>
990
+ <td>
991
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 15</span>
992
+
993
+ <span class='kw'>def</span> <span class='id identifier rubyid_ends'>ends</span>
994
+ <span class='ivar'>@ends</span>
995
+ <span class='kw'>end</span></pre>
996
+ </td>
997
+ </tr>
998
+ </table>
999
+ </div>
1000
+
1001
+
1002
+ <span id="name=-instance_method"></span>
1003
+ <span id="name-instance_method"></span>
1004
+ <div class="method_details ">
1005
+ <p class="signature " id="name-instance_method">
1006
+
1007
+ - (<tt>Object</tt>) <strong>name</strong>
1008
+
1009
+
1010
+
1011
+ </p><div class="docstring">
1012
+ <div class="discussion">
1013
+
1014
+ <p>Returns the value of attribute name</p>
1015
+
1016
+
1017
+ </div>
1018
+ </div>
1019
+ <div class="tags">
1020
+
1021
+
1022
+ </div><table class="source_code">
1023
+ <tr>
1024
+ <td>
1025
+ <pre class="lines">
1026
+
1027
+
1028
+ 18
1029
+ 19
1030
+ 20</pre>
1031
+ </td>
1032
+ <td>
1033
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 18</span>
1034
+
1035
+ <span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
1036
+ <span class='ivar'>@name</span>
1037
+ <span class='kw'>end</span></pre>
1038
+ </td>
1039
+ </tr>
1040
+ </table>
1041
+ </div>
1042
+
1043
+
1044
+ <span id="starts=-instance_method"></span>
1045
+ <span id="starts-instance_method"></span>
1046
+ <div class="method_details ">
1047
+ <p class="signature " id="starts-instance_method">
1048
+
1049
+ - (<tt>Object</tt>) <strong>starts</strong>
1050
+
1051
+
1052
+
1053
+ </p><div class="docstring">
1054
+ <div class="discussion">
1055
+
1056
+ <p>TimeSpan::RelativeTime start time</p>
1057
+
1058
+
1059
+ </div>
1060
+ </div>
1061
+ <div class="tags">
1062
+
1063
+
1064
+ </div><table class="source_code">
1065
+ <tr>
1066
+ <td>
1067
+ <pre class="lines">
1068
+
1069
+
1070
+ 13
1071
+ 14
1072
+ 15</pre>
1073
+ </td>
1074
+ <td>
1075
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 13</span>
1076
+
1077
+ <span class='kw'>def</span> <span class='id identifier rubyid_starts'>starts</span>
1078
+ <span class='ivar'>@starts</span>
1079
+ <span class='kw'>end</span></pre>
1080
+ </td>
1081
+ </tr>
1082
+ </table>
1083
+ </div>
1084
+
1085
+
1086
+ <span id="time_line=-instance_method"></span>
1087
+ <span id="time_line-instance_method"></span>
1088
+ <div class="method_details ">
1089
+ <p class="signature " id="time_line-instance_method">
1090
+
1091
+ - (<tt>Object</tt>) <strong>time_line</strong>
1092
+
1093
+
1094
+
1095
+ </p><div class="docstring">
1096
+ <div class="discussion">
1097
+
1098
+ <p>TimeSpan::TimeLine this TimeSpan is associated with</p>
1099
+
1100
+
1101
+ </div>
1102
+ </div>
1103
+ <div class="tags">
1104
+
1105
+
1106
+ </div><table class="source_code">
1107
+ <tr>
1108
+ <td>
1109
+ <pre class="lines">
1110
+
1111
+
1112
+ 17
1113
+ 18
1114
+ 19</pre>
1115
+ </td>
1116
+ <td>
1117
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 17</span>
1118
+
1119
+ <span class='kw'>def</span> <span class='id identifier rubyid_time_line'>time_line</span>
1120
+ <span class='ivar'>@time_line</span>
1121
+ <span class='kw'>end</span></pre>
1122
+ </td>
1123
+ </tr>
1124
+ </table>
1125
+ </div>
1126
+
1127
+ </div>
1128
+
1129
+
1130
+ <div id="instance_method_details" class="method_details_list">
1131
+ <h2>Instance Method Details</h2>
1132
+
1133
+
1134
+ <div class="method_details first">
1135
+ <p class="signature first" id="!=-instance_method">
1136
+
1137
+ - (<tt>Boolean</tt>) <strong>!=</strong>(other_time_span)
1138
+
1139
+
1140
+
1141
+ </p><div class="docstring">
1142
+ <div class="discussion">
1143
+
1144
+ <p>tests if one TimeSpan is not the same as another (on the same TimeLine)</p>
1145
+
1146
+
1147
+ </div>
1148
+ </div>
1149
+ <div class="tags">
1150
+ <h3>Parameters:</h3>
1151
+ <ul class="param">
1152
+
1153
+ <li>
1154
+
1155
+ <span class='name'>other_time_span</span>
1156
+
1157
+
1158
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
1159
+
1160
+
1161
+
1162
+ &mdash;
1163
+ <div class='inline'>
1164
+ <p>the TimeSpan being compared to self</p>
1165
+ </div>
1166
+
1167
+ </li>
1168
+
1169
+ </ul>
1170
+
1171
+ <h3>Returns:</h3>
1172
+ <ul class="return">
1173
+
1174
+ <li>
1175
+
1176
+
1177
+ <span class='type'>(<tt>Boolean</tt>)</span>
1178
+
1179
+
1180
+
1181
+ &mdash;
1182
+ <div class='inline'>
1183
+ <p>true if not same as the other</p>
1184
+ </div>
1185
+
1186
+ </li>
1187
+
1188
+ </ul>
1189
+
1190
+ </div><table class="source_code">
1191
+ <tr>
1192
+ <td>
1193
+ <pre class="lines">
1194
+
1195
+
1196
+ 165
1197
+ 166
1198
+ 167</pre>
1199
+ </td>
1200
+ <td>
1201
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 165</span>
1202
+
1203
+ <span class='kw'>def</span> <span class='op'>!=</span> <span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1204
+ <span class='op'>!</span><span class='id identifier rubyid_end_with'>end_with</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='op'>!</span><span class='id identifier rubyid_starts_with'>starts_with</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1205
+ <span class='kw'>end</span></pre>
1206
+ </td>
1207
+ </tr>
1208
+ </table>
1209
+ </div>
1210
+
1211
+ <div class="method_details ">
1212
+ <p class="signature " id="<-instance_method">
1213
+
1214
+ - (<tt>Boolean</tt>) <strong>&lt;</strong>(other_time_span)
1215
+
1216
+
1217
+
1218
+ </p><div class="docstring">
1219
+ <div class="discussion">
1220
+
1221
+ <p>tests if one TimeSpan ends before another starts (on the same TimeLine)
1222
+ alias for '#ends_before_other_starts'</p>
1223
+
1224
+
1225
+ </div>
1226
+ </div>
1227
+ <div class="tags">
1228
+ <h3>Parameters:</h3>
1229
+ <ul class="param">
1230
+
1231
+ <li>
1232
+
1233
+ <span class='name'>other_time_span</span>
1234
+
1235
+
1236
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
1237
+
1238
+
1239
+
1240
+ &mdash;
1241
+ <div class='inline'>
1242
+ <p>the TimeSpan being compared to self</p>
1243
+ </div>
1244
+
1245
+ </li>
1246
+
1247
+ </ul>
1248
+
1249
+ <h3>Returns:</h3>
1250
+ <ul class="return">
1251
+
1252
+ <li>
1253
+
1254
+
1255
+ <span class='type'>(<tt>Boolean</tt>)</span>
1256
+
1257
+
1258
+
1259
+ &mdash;
1260
+ <div class='inline'>
1261
+ <p>true if self ends before another starts</p>
1262
+ </div>
1263
+
1264
+ </li>
1265
+
1266
+ </ul>
1267
+
1268
+ </div><table class="source_code">
1269
+ <tr>
1270
+ <td>
1271
+ <pre class="lines">
1272
+
1273
+
1274
+ 173
1275
+ 174
1276
+ 175</pre>
1277
+ </td>
1278
+ <td>
1279
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 173</span>
1280
+
1281
+ <span class='kw'>def</span> <span class='op'>&lt;</span> <span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1282
+ <span class='id identifier rubyid_ends_before_other_starts?'>ends_before_other_starts?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1283
+ <span class='kw'>end</span></pre>
1284
+ </td>
1285
+ </tr>
1286
+ </table>
1287
+ </div>
1288
+
1289
+ <div class="method_details ">
1290
+ <p class="signature " id="==-instance_method">
1291
+
1292
+ - (<tt>Boolean</tt>) <strong>==</strong>(other_time_span)
1293
+
1294
+
1295
+
1296
+ </p><div class="docstring">
1297
+ <div class="discussion">
1298
+
1299
+ <p>tests if one TimeSpan is the same as another (on the same TimeLine)</p>
1300
+
1301
+
1302
+ </div>
1303
+ </div>
1304
+ <div class="tags">
1305
+ <h3>Parameters:</h3>
1306
+ <ul class="param">
1307
+
1308
+ <li>
1309
+
1310
+ <span class='name'>other_time_span</span>
1311
+
1312
+
1313
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
1314
+
1315
+
1316
+
1317
+ &mdash;
1318
+ <div class='inline'>
1319
+ <p>the TimeSpan being compared to self</p>
1320
+ </div>
1321
+
1322
+ </li>
1323
+
1324
+ </ul>
1325
+
1326
+ <h3>Returns:</h3>
1327
+ <ul class="return">
1328
+
1329
+ <li>
1330
+
1331
+
1332
+ <span class='type'>(<tt>Boolean</tt>)</span>
1333
+
1334
+
1335
+
1336
+ &mdash;
1337
+ <div class='inline'>
1338
+ <p>true if same as the other</p>
1339
+ </div>
1340
+
1341
+ </li>
1342
+
1343
+ </ul>
1344
+
1345
+ </div><table class="source_code">
1346
+ <tr>
1347
+ <td>
1348
+ <pre class="lines">
1349
+
1350
+
1351
+ 158
1352
+ 159
1353
+ 160</pre>
1354
+ </td>
1355
+ <td>
1356
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 158</span>
1357
+
1358
+ <span class='kw'>def</span> <span class='op'>==</span> <span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1359
+ <span class='id identifier rubyid_ends_with?'>ends_with?</span><span class='lparen'>(</span><span class='id identifier rubyid_b'>b</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_starts_with?'>starts_with?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1360
+ <span class='kw'>end</span></pre>
1361
+ </td>
1362
+ </tr>
1363
+ </table>
1364
+ </div>
1365
+
1366
+ <div class="method_details ">
1367
+ <p class="signature " id=">-instance_method">
1368
+
1369
+ - (<tt>Boolean</tt>) <strong>&gt;</strong>(other_time_span)
1370
+
1371
+
1372
+
1373
+ </p><div class="docstring">
1374
+ <div class="discussion">
1375
+
1376
+ <p>tests if one TimeSpan starts after another ends (on the same TimeLine)
1377
+ alias for '#starts_after_other_ends'</p>
1378
+
1379
+
1380
+ </div>
1381
+ </div>
1382
+ <div class="tags">
1383
+ <h3>Parameters:</h3>
1384
+ <ul class="param">
1385
+
1386
+ <li>
1387
+
1388
+ <span class='name'>other_time_span</span>
1389
+
1390
+
1391
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
1392
+
1393
+
1394
+
1395
+ &mdash;
1396
+ <div class='inline'>
1397
+ <p>the TimeSpan being compared to self</p>
1398
+ </div>
1399
+
1400
+ </li>
1401
+
1402
+ </ul>
1403
+
1404
+ <h3>Returns:</h3>
1405
+ <ul class="return">
1406
+
1407
+ <li>
1408
+
1409
+
1410
+ <span class='type'>(<tt>Boolean</tt>)</span>
1411
+
1412
+
1413
+
1414
+ &mdash;
1415
+ <div class='inline'>
1416
+ <p>true if self starts after another ends</p>
1417
+ </div>
1418
+
1419
+ </li>
1420
+
1421
+ </ul>
1422
+
1423
+ </div><table class="source_code">
1424
+ <tr>
1425
+ <td>
1426
+ <pre class="lines">
1427
+
1428
+
1429
+ 181
1430
+ 182
1431
+ 183</pre>
1432
+ </td>
1433
+ <td>
1434
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 181</span>
1435
+
1436
+ <span class='kw'>def</span> <span class='op'>&gt;</span> <span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1437
+ <span class='id identifier rubyid_starts_after_other_ends?'>starts_after_other_ends?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1438
+ <span class='kw'>end</span></pre>
1439
+ </td>
1440
+ </tr>
1441
+ </table>
1442
+ </div>
1443
+
1444
+ <div class="method_details ">
1445
+ <p class="signature " id="contained_fully_inside?-instance_method">
1446
+
1447
+ - (<tt>Boolean</tt>) <strong>contained_fully_inside?</strong>(other_time_span)
1448
+
1449
+
1450
+
1451
+ </p><div class="docstring">
1452
+ <div class="discussion">
1453
+
1454
+ <p>tests if one TimeSpan is contained within another (on the same TimeLine)</p>
1455
+
1456
+
1457
+ </div>
1458
+ </div>
1459
+ <div class="tags">
1460
+ <h3>Parameters:</h3>
1461
+ <ul class="param">
1462
+
1463
+ <li>
1464
+
1465
+ <span class='name'>other_time_span</span>
1466
+
1467
+
1468
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
1469
+
1470
+
1471
+
1472
+ &mdash;
1473
+ <div class='inline'>
1474
+ <p>the TimeSpan being compared to self</p>
1475
+ </div>
1476
+
1477
+ </li>
1478
+
1479
+ </ul>
1480
+
1481
+ <h3>Returns:</h3>
1482
+ <ul class="return">
1483
+
1484
+ <li>
1485
+
1486
+
1487
+ <span class='type'>(<tt>Boolean</tt>)</span>
1488
+
1489
+
1490
+
1491
+ &mdash;
1492
+ <div class='inline'>
1493
+ <p>true if self contained inside another</p>
1494
+ </div>
1495
+
1496
+ </li>
1497
+
1498
+ </ul>
1499
+
1500
+ </div><table class="source_code">
1501
+ <tr>
1502
+ <td>
1503
+ <pre class="lines">
1504
+
1505
+
1506
+ 188
1507
+ 189
1508
+ 190</pre>
1509
+ </td>
1510
+ <td>
1511
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 188</span>
1512
+
1513
+ <span class='kw'>def</span> <span class='id identifier rubyid_contained_fully_inside?'>contained_fully_inside?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1514
+ <span class='id identifier rubyid_starts_after?'>starts_after?</span><span class='lparen'>(</span><span class='id identifier rubyid_b'>b</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_ends_before?'>ends_before?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1515
+ <span class='kw'>end</span></pre>
1516
+ </td>
1517
+ </tr>
1518
+ </table>
1519
+ </div>
1520
+
1521
+ <div class="method_details ">
1522
+ <p class="signature " id="contained_inside?-instance_method">
1523
+
1524
+ - (<tt>Boolean</tt>) <strong>contained_inside?</strong>(other_time_span)
1525
+
1526
+
1527
+
1528
+ </p><div class="docstring">
1529
+ <div class="discussion">
1530
+
1531
+ <p>tests if one TimeSpan is contained within another, possibly begining as or
1532
+ ends as another (on the same TimeLine)</p>
1533
+
1534
+
1535
+ </div>
1536
+ </div>
1537
+ <div class="tags">
1538
+ <h3>Parameters:</h3>
1539
+ <ul class="param">
1540
+
1541
+ <li>
1542
+
1543
+ <span class='name'>other_time_span</span>
1544
+
1545
+
1546
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
1547
+
1548
+
1549
+
1550
+ &mdash;
1551
+ <div class='inline'>
1552
+ <p>the TimeSpan being compared to self</p>
1553
+ </div>
1554
+
1555
+ </li>
1556
+
1557
+ </ul>
1558
+
1559
+ <h3>Returns:</h3>
1560
+ <ul class="return">
1561
+
1562
+ <li>
1563
+
1564
+
1565
+ <span class='type'>(<tt>Boolean</tt>)</span>
1566
+
1567
+
1568
+
1569
+ &mdash;
1570
+ <div class='inline'>
1571
+ <p>true if self contained inside another, including same endpoints</p>
1572
+ </div>
1573
+
1574
+ </li>
1575
+
1576
+ </ul>
1577
+
1578
+ </div><table class="source_code">
1579
+ <tr>
1580
+ <td>
1581
+ <pre class="lines">
1582
+
1583
+
1584
+ 195
1585
+ 196
1586
+ 197</pre>
1587
+ </td>
1588
+ <td>
1589
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 195</span>
1590
+
1591
+ <span class='kw'>def</span> <span class='id identifier rubyid_contained_inside?'>contained_inside?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1592
+ <span class='id identifier rubyid_starts_on_or_after?'>starts_on_or_after?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_ends_on_or_before?'>ends_on_or_before?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1593
+ <span class='kw'>end</span></pre>
1594
+ </td>
1595
+ </tr>
1596
+ </table>
1597
+ </div>
1598
+
1599
+ <div class="method_details ">
1600
+ <p class="signature " id="contains?-instance_method">
1601
+
1602
+ - (<tt>Boolean</tt>) <strong>contains?</strong>(other_time_span)
1603
+
1604
+
1605
+
1606
+ </p><div class="docstring">
1607
+ <div class="discussion">
1608
+
1609
+ <p>tests if one TimeSpan contains within another (on the same TimeLine)</p>
1610
+
1611
+
1612
+ </div>
1613
+ </div>
1614
+ <div class="tags">
1615
+ <h3>Parameters:</h3>
1616
+ <ul class="param">
1617
+
1618
+ <li>
1619
+
1620
+ <span class='name'>other_time_span</span>
1621
+
1622
+
1623
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
1624
+
1625
+
1626
+
1627
+ &mdash;
1628
+ <div class='inline'>
1629
+ <p>the TimeSpan being compared to self</p>
1630
+ </div>
1631
+
1632
+ </li>
1633
+
1634
+ </ul>
1635
+
1636
+ <h3>Returns:</h3>
1637
+ <ul class="return">
1638
+
1639
+ <li>
1640
+
1641
+
1642
+ <span class='type'>(<tt>Boolean</tt>)</span>
1643
+
1644
+
1645
+
1646
+ &mdash;
1647
+ <div class='inline'>
1648
+ <p>true if self contains another</p>
1649
+ </div>
1650
+
1651
+ </li>
1652
+
1653
+ </ul>
1654
+
1655
+ </div><table class="source_code">
1656
+ <tr>
1657
+ <td>
1658
+ <pre class="lines">
1659
+
1660
+
1661
+ 209
1662
+ 210
1663
+ 211</pre>
1664
+ </td>
1665
+ <td>
1666
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 209</span>
1667
+
1668
+ <span class='kw'>def</span> <span class='id identifier rubyid_contains?'>contains?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1669
+ <span class='id identifier rubyid_starts_before_or_with?'>starts_before_or_with?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_ends_on_or_after?'>ends_on_or_after?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1670
+ <span class='kw'>end</span></pre>
1671
+ </td>
1672
+ </tr>
1673
+ </table>
1674
+ </div>
1675
+
1676
+ <div class="method_details ">
1677
+ <p class="signature " id="contains_fully?-instance_method">
1678
+
1679
+ - (<tt>Boolean</tt>) <strong>contains_fully?</strong>(other_time_span)
1680
+
1681
+
1682
+
1683
+ </p><div class="docstring">
1684
+ <div class="discussion">
1685
+
1686
+ <p>tests if one TimeSpan contains another (on the same TimeLine)</p>
1687
+
1688
+
1689
+ </div>
1690
+ </div>
1691
+ <div class="tags">
1692
+ <h3>Parameters:</h3>
1693
+ <ul class="param">
1694
+
1695
+ <li>
1696
+
1697
+ <span class='name'>other_time_span</span>
1698
+
1699
+
1700
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
1701
+
1702
+
1703
+
1704
+ &mdash;
1705
+ <div class='inline'>
1706
+ <p>the TimeSpan being compared to self</p>
1707
+ </div>
1708
+
1709
+ </li>
1710
+
1711
+ </ul>
1712
+
1713
+ <h3>Returns:</h3>
1714
+ <ul class="return">
1715
+
1716
+ <li>
1717
+
1718
+
1719
+ <span class='type'>(<tt>Boolean</tt>)</span>
1720
+
1721
+
1722
+
1723
+ &mdash;
1724
+ <div class='inline'>
1725
+ <p>true if self contains another</p>
1726
+ </div>
1727
+
1728
+ </li>
1729
+
1730
+ </ul>
1731
+
1732
+ </div><table class="source_code">
1733
+ <tr>
1734
+ <td>
1735
+ <pre class="lines">
1736
+
1737
+
1738
+ 202
1739
+ 203
1740
+ 204</pre>
1741
+ </td>
1742
+ <td>
1743
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 202</span>
1744
+
1745
+ <span class='kw'>def</span> <span class='id identifier rubyid_contains_fully?'>contains_fully?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1746
+ <span class='id identifier rubyid_starts_before?'>starts_before?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_ends_after?'>ends_after?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1747
+ <span class='kw'>end</span></pre>
1748
+ </td>
1749
+ </tr>
1750
+ </table>
1751
+ </div>
1752
+
1753
+ <div class="method_details ">
1754
+ <p class="signature " id="endpoint_statuses-instance_method">
1755
+
1756
+ - (<tt>Object</tt>) <strong>endpoint_statuses</strong>
1757
+
1758
+
1759
+
1760
+ </p><div class="docstring">
1761
+ <div class="discussion">
1762
+
1763
+ <p>returns the 'statuses' for the start and end times</p>
1764
+
1765
+
1766
+ </div>
1767
+ </div>
1768
+ <div class="tags">
1769
+
1770
+ <h3>Returns:</h3>
1771
+ <ul class="return">
1772
+
1773
+ <li>
1774
+
1775
+
1776
+ <span class='type'></span>
1777
+
1778
+
1779
+
1780
+
1781
+ <div class='inline'>
1782
+ <p>start and end time statuses in a hash with key is self</p>
1783
+ </div>
1784
+
1785
+ </li>
1786
+
1787
+ </ul>
1788
+
1789
+ </div><table class="source_code">
1790
+ <tr>
1791
+ <td>
1792
+ <pre class="lines">
1793
+
1794
+
1795
+ 37
1796
+ 38
1797
+ 39</pre>
1798
+ </td>
1799
+ <td>
1800
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 37</span>
1801
+
1802
+ <span class='kw'>def</span> <span class='id identifier rubyid_endpoint_statuses'>endpoint_statuses</span>
1803
+ <span class='lbrace'>{</span><span class='kw'>self</span> <span class='op'>=&gt;</span> <span class='lbracket'>[</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_starts'>starts</span><span class='period'>.</span><span class='id identifier rubyid_reference_to'>reference_to</span><span class='comma'>,</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ends'>ends</span><span class='period'>.</span><span class='id identifier rubyid_reference_to'>reference_to</span><span class='rbracket'>]</span><span class='rbrace'>}</span>
1804
+ <span class='kw'>end</span></pre>
1805
+ </td>
1806
+ </tr>
1807
+ </table>
1808
+ </div>
1809
+
1810
+ <div class="method_details ">
1811
+ <p class="signature " id="ends_after?-instance_method">
1812
+
1813
+ - (<tt>Boolean</tt>) <strong>ends_after?</strong>(other_time_span)
1814
+
1815
+
1816
+
1817
+ </p><div class="docstring">
1818
+ <div class="discussion">
1819
+
1820
+ <p>tests if one TimeSpan ends after another (on the same TimeLine)</p>
1821
+
1822
+
1823
+ </div>
1824
+ </div>
1825
+ <div class="tags">
1826
+ <h3>Parameters:</h3>
1827
+ <ul class="param">
1828
+
1829
+ <li>
1830
+
1831
+ <span class='name'>other_time_span</span>
1832
+
1833
+
1834
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
1835
+
1836
+
1837
+
1838
+ &mdash;
1839
+ <div class='inline'>
1840
+ <p>the TimeSpan being compared to self</p>
1841
+ </div>
1842
+
1843
+ </li>
1844
+
1845
+ </ul>
1846
+
1847
+ <h3>Returns:</h3>
1848
+ <ul class="return">
1849
+
1850
+ <li>
1851
+
1852
+
1853
+ <span class='type'>(<tt>Boolean</tt>)</span>
1854
+
1855
+
1856
+
1857
+ &mdash;
1858
+ <div class='inline'>
1859
+ <p>true if self ends after another time_span ends</p>
1860
+ </div>
1861
+
1862
+ </li>
1863
+
1864
+ </ul>
1865
+
1866
+ </div><table class="source_code">
1867
+ <tr>
1868
+ <td>
1869
+ <pre class="lines">
1870
+
1871
+
1872
+ 106
1873
+ 107
1874
+ 108</pre>
1875
+ </td>
1876
+ <td>
1877
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 106</span>
1878
+
1879
+ <span class='kw'>def</span> <span class='id identifier rubyid_ends_after?'>ends_after?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1880
+ <span class='id identifier rubyid_ends'>ends</span> <span class='op'>&gt;</span> <span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='period'>.</span><span class='id identifier rubyid_ends'>ends</span>
1881
+ <span class='kw'>end</span></pre>
1882
+ </td>
1883
+ </tr>
1884
+ </table>
1885
+ </div>
1886
+
1887
+ <div class="method_details ">
1888
+ <p class="signature " id="ends_as_other_starts?-instance_method">
1889
+
1890
+ - (<tt>Boolean</tt>) <strong>ends_as_other_starts?</strong>(other_time_span)
1891
+
1892
+
1893
+
1894
+ </p><div class="docstring">
1895
+ <div class="discussion">
1896
+
1897
+ <p>tests if one TimeSpan ends at the same time as another starts (on the same
1898
+ TimeLine)</p>
1899
+
1900
+
1901
+ </div>
1902
+ </div>
1903
+ <div class="tags">
1904
+ <h3>Parameters:</h3>
1905
+ <ul class="param">
1906
+
1907
+ <li>
1908
+
1909
+ <span class='name'>other_time_span</span>
1910
+
1911
+
1912
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
1913
+
1914
+
1915
+
1916
+ &mdash;
1917
+ <div class='inline'>
1918
+ <p>the TimeSpan being compared to self</p>
1919
+ </div>
1920
+
1921
+ </li>
1922
+
1923
+ </ul>
1924
+
1925
+ <h3>Returns:</h3>
1926
+ <ul class="return">
1927
+
1928
+ <li>
1929
+
1930
+
1931
+ <span class='type'>(<tt>Boolean</tt>)</span>
1932
+
1933
+
1934
+
1935
+ &mdash;
1936
+ <div class='inline'>
1937
+ <p>true if self ends at the same time as another time_span starts (no gap)</p>
1938
+ </div>
1939
+
1940
+ </li>
1941
+
1942
+ </ul>
1943
+
1944
+ </div><table class="source_code">
1945
+ <tr>
1946
+ <td>
1947
+ <pre class="lines">
1948
+
1949
+
1950
+ 127
1951
+ 128
1952
+ 129</pre>
1953
+ </td>
1954
+ <td>
1955
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 127</span>
1956
+
1957
+ <span class='kw'>def</span> <span class='id identifier rubyid_ends_as_other_starts?'>ends_as_other_starts?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
1958
+ <span class='id identifier rubyid_ends'>ends</span> <span class='op'>==</span> <span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='period'>.</span><span class='id identifier rubyid_starts'>starts</span>
1959
+ <span class='kw'>end</span></pre>
1960
+ </td>
1961
+ </tr>
1962
+ </table>
1963
+ </div>
1964
+
1965
+ <div class="method_details ">
1966
+ <p class="signature " id="ends_before?-instance_method">
1967
+
1968
+ - (<tt>Boolean</tt>) <strong>ends_before?</strong>(other_time_span)
1969
+
1970
+
1971
+
1972
+ </p><div class="docstring">
1973
+ <div class="discussion">
1974
+
1975
+ <p>tests if one TimeSpan ends before another starts (on the same TimeLine)</p>
1976
+
1977
+
1978
+ </div>
1979
+ </div>
1980
+ <div class="tags">
1981
+ <h3>Parameters:</h3>
1982
+ <ul class="param">
1983
+
1984
+ <li>
1985
+
1986
+ <span class='name'>other_time_span</span>
1987
+
1988
+
1989
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
1990
+
1991
+
1992
+
1993
+ &mdash;
1994
+ <div class='inline'>
1995
+ <p>the TimeSpan being compared to self</p>
1996
+ </div>
1997
+
1998
+ </li>
1999
+
2000
+ </ul>
2001
+
2002
+ <h3>Returns:</h3>
2003
+ <ul class="return">
2004
+
2005
+ <li>
2006
+
2007
+
2008
+ <span class='type'>(<tt>Boolean</tt>)</span>
2009
+
2010
+
2011
+
2012
+ &mdash;
2013
+ <div class='inline'>
2014
+ <p>true if self ends before another time_span starts</p>
2015
+ </div>
2016
+
2017
+ </li>
2018
+
2019
+ </ul>
2020
+
2021
+ </div><table class="source_code">
2022
+ <tr>
2023
+ <td>
2024
+ <pre class="lines">
2025
+
2026
+
2027
+ 85
2028
+ 86
2029
+ 87</pre>
2030
+ </td>
2031
+ <td>
2032
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 85</span>
2033
+
2034
+ <span class='kw'>def</span> <span class='id identifier rubyid_ends_before?'>ends_before?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
2035
+ <span class='id identifier rubyid_ends'>ends</span> <span class='op'>&lt;</span> <span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='period'>.</span><span class='id identifier rubyid_ends'>ends</span>
2036
+ <span class='kw'>end</span></pre>
2037
+ </td>
2038
+ </tr>
2039
+ </table>
2040
+ </div>
2041
+
2042
+ <div class="method_details ">
2043
+ <p class="signature " id="ends_before_other_starts?-instance_method">
2044
+
2045
+ - (<tt>Boolean</tt>) <strong>ends_before_other_starts?</strong>(other_time_span)
2046
+
2047
+
2048
+
2049
+ </p><div class="docstring">
2050
+ <div class="discussion">
2051
+
2052
+ <p>tests if one TimeSpan ends before another starts (on the same TimeLine)</p>
2053
+
2054
+
2055
+ </div>
2056
+ </div>
2057
+ <div class="tags">
2058
+ <h3>Parameters:</h3>
2059
+ <ul class="param">
2060
+
2061
+ <li>
2062
+
2063
+ <span class='name'>other_time_span</span>
2064
+
2065
+
2066
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
2067
+
2068
+
2069
+
2070
+ &mdash;
2071
+ <div class='inline'>
2072
+ <p>the TimeSpan being compared to self</p>
2073
+ </div>
2074
+
2075
+ </li>
2076
+
2077
+ </ul>
2078
+
2079
+ <h3>Returns:</h3>
2080
+ <ul class="return">
2081
+
2082
+ <li>
2083
+
2084
+
2085
+ <span class='type'>(<tt>Boolean</tt>)</span>
2086
+
2087
+
2088
+
2089
+ &mdash;
2090
+ <div class='inline'>
2091
+ <p>true if self ends before another time_span starts</p>
2092
+ </div>
2093
+
2094
+ </li>
2095
+
2096
+ </ul>
2097
+
2098
+ </div><table class="source_code">
2099
+ <tr>
2100
+ <td>
2101
+ <pre class="lines">
2102
+
2103
+
2104
+ 120
2105
+ 121
2106
+ 122</pre>
2107
+ </td>
2108
+ <td>
2109
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 120</span>
2110
+
2111
+ <span class='kw'>def</span> <span class='id identifier rubyid_ends_before_other_starts?'>ends_before_other_starts?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
2112
+ <span class='id identifier rubyid_ends'>ends</span> <span class='op'>&lt;</span> <span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='period'>.</span><span class='id identifier rubyid_starts'>starts</span>
2113
+ <span class='kw'>end</span></pre>
2114
+ </td>
2115
+ </tr>
2116
+ </table>
2117
+ </div>
2118
+
2119
+ <div class="method_details ">
2120
+ <p class="signature " id="ends_on_or_after?-instance_method">
2121
+
2122
+ - (<tt>Boolean</tt>) <strong>ends_on_or_after?</strong>(other_time_span)
2123
+
2124
+
2125
+
2126
+ </p><div class="docstring">
2127
+ <div class="discussion">
2128
+
2129
+ <p>tests if one TimeSpan ends after or at the same time as another (on the
2130
+ same TimeLine)</p>
946
2131
 
947
-
948
- </div><!-- starts_before_or_with-3F-method -->
949
2132
 
2133
+ </div>
2134
+ </div>
2135
+ <div class="tags">
2136
+ <h3>Parameters:</h3>
2137
+ <ul class="param">
2138
+
2139
+ <li>
2140
+
2141
+ <span class='name'>other_time_span</span>
2142
+
2143
+
2144
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
2145
+
950
2146
 
951
- <div id="starts_on_or_after-3F-method" class="method-detail ">
952
- <a name="method-i-starts_on_or_after-3F"></a>
2147
+
2148
+ &mdash;
2149
+ <div class='inline'>
2150
+ <p>the TimeSpan being compared to self</p>
2151
+ </div>
2152
+
2153
+ </li>
2154
+
2155
+ </ul>
953
2156
 
954
-
955
- <div class="method-heading">
956
- <span class="method-name">starts_on_or_after?</span><span
957
- class="method-args">(b)</span>
958
- <span class="method-click-advice">click to toggle source</span>
959
- </div>
960
-
2157
+ <h3>Returns:</h3>
2158
+ <ul class="return">
2159
+
2160
+ <li>
2161
+
2162
+
2163
+ <span class='type'>(<tt>Boolean</tt>)</span>
2164
+
2165
+
2166
+
2167
+ &mdash;
2168
+ <div class='inline'>
2169
+ <p>true if self ends after or at the same time as another time_span ends</p>
2170
+ </div>
2171
+
2172
+ </li>
2173
+
2174
+ </ul>
2175
+
2176
+ </div><table class="source_code">
2177
+ <tr>
2178
+ <td>
2179
+ <pre class="lines">
2180
+
2181
+
2182
+ 99
2183
+ 100
2184
+ 101</pre>
2185
+ </td>
2186
+ <td>
2187
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 99</span>
2188
+
2189
+ <span class='kw'>def</span> <span class='id identifier rubyid_ends_on_or_after?'>ends_on_or_after?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
2190
+ <span class='id identifier rubyid_ends'>ends</span> <span class='op'>&gt;=</span> <span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='period'>.</span><span class='id identifier rubyid_ends'>ends</span>
2191
+ <span class='kw'>end</span></pre>
2192
+ </td>
2193
+ </tr>
2194
+ </table>
2195
+ </div>
2196
+
2197
+ <div class="method_details ">
2198
+ <p class="signature " id="ends_on_or_before?-instance_method">
2199
+
2200
+ - (<tt>Boolean</tt>) <strong>ends_on_or_before?</strong>(other_time_span)
2201
+
961
2202
 
962
- <div class="method-description">
963
-
964
-
965
-
966
-
967
-
968
- <div class="method-source-code" id="starts_on_or_after-3F-source">
969
- <pre>
970
- <span class="ruby-comment"># File lib/time_span.rb, line 35</span>
971
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">starts_on_or_after?</span>(<span class="ruby-identifier">b</span>)
972
- <span class="ruby-identifier">starts</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">starts</span>
973
- <span class="ruby-keyword">end</span></pre>
974
- </div><!-- starts_on_or_after-3F-source -->
975
-
976
- </div>
2203
+
2204
+ </p><div class="docstring">
2205
+ <div class="discussion">
2206
+
2207
+ <p>tests if one TimeSpan end before or at the same time as another ends (on
2208
+ the same TimeLine)</p>
977
2209
 
978
-
979
2210
 
980
-
981
- </div><!-- starts_on_or_after-3F-method -->
2211
+ </div>
2212
+ </div>
2213
+ <div class="tags">
2214
+ <h3>Parameters:</h3>
2215
+ <ul class="param">
2216
+
2217
+ <li>
2218
+
2219
+ <span class='name'>other_time_span</span>
2220
+
2221
+
2222
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
2223
+
2224
+
2225
+
2226
+ &mdash;
2227
+ <div class='inline'>
2228
+ <p>the TimeSpan being compared to self</p>
2229
+ </div>
2230
+
2231
+ </li>
2232
+
2233
+ </ul>
982
2234
 
2235
+ <h3>Returns:</h3>
2236
+ <ul class="return">
2237
+
2238
+ <li>
2239
+
983
2240
 
984
- <div id="starts_with-3F-method" class="method-detail ">
985
- <a name="method-i-starts_with-3F"></a>
2241
+ <span class='type'>(<tt>Boolean</tt>)</span>
2242
+
2243
+
2244
+
2245
+ &mdash;
2246
+ <div class='inline'>
2247
+ <p>true if self ends before or at the same time as another time_span ends</p>
2248
+ </div>
2249
+
2250
+ </li>
2251
+
2252
+ </ul>
2253
+
2254
+ </div><table class="source_code">
2255
+ <tr>
2256
+ <td>
2257
+ <pre class="lines">
2258
+
2259
+
2260
+ 92
2261
+ 93
2262
+ 94</pre>
2263
+ </td>
2264
+ <td>
2265
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 92</span>
2266
+
2267
+ <span class='kw'>def</span> <span class='id identifier rubyid_ends_on_or_before?'>ends_on_or_before?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
2268
+ <span class='id identifier rubyid_ends'>ends</span> <span class='op'>&lt;=</span> <span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='period'>.</span><span class='id identifier rubyid_ends'>ends</span>
2269
+ <span class='kw'>end</span></pre>
2270
+ </td>
2271
+ </tr>
2272
+ </table>
2273
+ </div>
2274
+
2275
+ <div class="method_details ">
2276
+ <p class="signature " id="ends_with?-instance_method">
2277
+
2278
+ - (<tt>Boolean</tt>) <strong>ends_with?</strong>(other_time_span)
2279
+
986
2280
 
987
-
988
- <div class="method-heading">
989
- <span class="method-name">starts_with?</span><span
990
- class="method-args">(b)</span>
991
- <span class="method-click-advice">click to toggle source</span>
992
- </div>
993
-
2281
+
2282
+ </p><div class="docstring">
2283
+ <div class="discussion">
2284
+
2285
+ <p>tests if one TimeSpan ends at the same time as another (on the same
2286
+ TimeLine)</p>
994
2287
 
995
- <div class="method-description">
996
-
997
-
998
-
999
-
1000
-
1001
- <div class="method-source-code" id="starts_with-3F-source">
1002
- <pre>
1003
- <span class="ruby-comment"># File lib/time_span.rb, line 40</span>
1004
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">starts_with?</span>(<span class="ruby-identifier">b</span>)
1005
- <span class="ruby-identifier">starts</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">starts</span>
1006
- <span class="ruby-keyword">end</span></pre>
1007
- </div><!-- starts_with-3F-source -->
1008
-
1009
- </div>
1010
2288
 
1011
-
2289
+ </div>
2290
+ </div>
2291
+ <div class="tags">
2292
+ <h3>Parameters:</h3>
2293
+ <ul class="param">
2294
+
2295
+ <li>
2296
+
2297
+ <span class='name'>other_time_span</span>
2298
+
2299
+
2300
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
2301
+
2302
+
2303
+
2304
+ &mdash;
2305
+ <div class='inline'>
2306
+ <p>the TimeSpan being compared to self</p>
2307
+ </div>
2308
+
2309
+ </li>
2310
+
2311
+ </ul>
1012
2312
 
1013
-
1014
- </div><!-- starts_with-3F-method -->
2313
+ <h3>Returns:</h3>
2314
+ <ul class="return">
2315
+
2316
+ <li>
2317
+
2318
+
2319
+ <span class='type'>(<tt>Boolean</tt>)</span>
2320
+
2321
+
2322
+
2323
+ &mdash;
2324
+ <div class='inline'>
2325
+ <p>true if self ends at the same time as another time_span ends</p>
2326
+ </div>
2327
+
2328
+ </li>
2329
+
2330
+ </ul>
2331
+
2332
+ </div><table class="source_code">
2333
+ <tr>
2334
+ <td>
2335
+ <pre class="lines">
2336
+
2337
+
2338
+ 113
2339
+ 114
2340
+ 115</pre>
2341
+ </td>
2342
+ <td>
2343
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 113</span>
2344
+
2345
+ <span class='kw'>def</span> <span class='id identifier rubyid_ends_with?'>ends_with?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
2346
+ <span class='id identifier rubyid_ends'>ends</span> <span class='op'>==</span> <span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='period'>.</span><span class='id identifier rubyid_ends'>ends</span>
2347
+ <span class='kw'>end</span></pre>
2348
+ </td>
2349
+ </tr>
2350
+ </table>
2351
+ </div>
2352
+
2353
+ <div class="method_details ">
2354
+ <p class="signature " id="starts_after?-instance_method">
2355
+
2356
+ - (<tt>Boolean</tt>) <strong>starts_after?</strong>(other_time_span)
2357
+
2358
+
2359
+
2360
+ </p><div class="docstring">
2361
+ <div class="discussion">
2362
+
2363
+ <p>tests if one TimeSpan starts after another (on the same TimeLine)</p>
2364
+
2365
+
2366
+ </div>
2367
+ </div>
2368
+ <div class="tags">
2369
+ <h3>Parameters:</h3>
2370
+ <ul class="param">
2371
+
2372
+ <li>
2373
+
2374
+ <span class='name'>other_time_span</span>
2375
+
2376
+
2377
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
2378
+
2379
+
2380
+
2381
+ &mdash;
2382
+ <div class='inline'>
2383
+ <p>the TimeSpan being compared to self</p>
2384
+ </div>
2385
+
2386
+ </li>
2387
+
2388
+ </ul>
2389
+
2390
+ <h3>Returns:</h3>
2391
+ <ul class="return">
2392
+
2393
+ <li>
2394
+
2395
+
2396
+ <span class='type'>(<tt>Boolean</tt>)</span>
2397
+
2398
+
2399
+
2400
+ &mdash;
2401
+ <div class='inline'>
2402
+ <p>true if self starts after other_time_span starts</p>
2403
+ </div>
2404
+
2405
+ </li>
2406
+
2407
+ </ul>
2408
+
2409
+ </div><table class="source_code">
2410
+ <tr>
2411
+ <td>
2412
+ <pre class="lines">
2413
+
2414
+
2415
+ 57
2416
+ 58
2417
+ 59</pre>
2418
+ </td>
2419
+ <td>
2420
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 57</span>
2421
+
2422
+ <span class='kw'>def</span> <span class='id identifier rubyid_starts_after?'>starts_after?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
2423
+ <span class='id identifier rubyid_starts'>starts</span> <span class='op'>&gt;</span> <span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='period'>.</span><span class='id identifier rubyid_starts'>starts</span>
2424
+ <span class='kw'>end</span></pre>
2425
+ </td>
2426
+ </tr>
2427
+ </table>
2428
+ </div>
2429
+
2430
+ <div class="method_details ">
2431
+ <p class="signature " id="starts_after_other_ends?-instance_method">
2432
+
2433
+ - (<tt>Boolean</tt>) <strong>starts_after_other_ends?</strong>(other_time_span)
2434
+
2435
+
2436
+
2437
+ </p><div class="docstring">
2438
+ <div class="discussion">
2439
+
2440
+ <p>tests if one TimeSpan ends at the same time as another (on the same
2441
+ TimeLine)</p>
2442
+
2443
+
2444
+ </div>
2445
+ </div>
2446
+ <div class="tags">
2447
+ <h3>Parameters:</h3>
2448
+ <ul class="param">
2449
+
2450
+ <li>
2451
+
2452
+ <span class='name'>other_time_span</span>
2453
+
2454
+
2455
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
2456
+
2457
+
2458
+
2459
+ &mdash;
2460
+ <div class='inline'>
2461
+ <p>the TimeSpan being compared to self</p>
2462
+ </div>
2463
+
2464
+ </li>
2465
+
2466
+ </ul>
2467
+
2468
+ <h3>Returns:</h3>
2469
+ <ul class="return">
2470
+
2471
+ <li>
2472
+
2473
+
2474
+ <span class='type'>(<tt>Boolean</tt>)</span>
2475
+
2476
+
2477
+
2478
+ &mdash;
2479
+ <div class='inline'>
2480
+ <p>true if self ends at the same time as another time_span ends</p>
2481
+ </div>
2482
+
2483
+ </li>
2484
+
2485
+ </ul>
2486
+
2487
+ </div><table class="source_code">
2488
+ <tr>
2489
+ <td>
2490
+ <pre class="lines">
2491
+
2492
+
2493
+ 134
2494
+ 135
2495
+ 136</pre>
2496
+ </td>
2497
+ <td>
2498
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 134</span>
2499
+
2500
+ <span class='kw'>def</span> <span class='id identifier rubyid_starts_after_other_ends?'>starts_after_other_ends?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
2501
+ <span class='id identifier rubyid_starts'>starts</span> <span class='op'>&gt;</span> <span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='period'>.</span><span class='id identifier rubyid_ends'>ends</span>
2502
+ <span class='kw'>end</span></pre>
2503
+ </td>
2504
+ </tr>
2505
+ </table>
2506
+ </div>
2507
+
2508
+ <div class="method_details ">
2509
+ <p class="signature " id="starts_as_other_ends?-instance_method">
2510
+
2511
+ - (<tt>Boolean</tt>) <strong>starts_as_other_ends?</strong>(other_time_span)
2512
+
2513
+
2514
+
2515
+ </p><div class="docstring">
2516
+ <div class="discussion">
2517
+
2518
+ <p>tests if one TimeSpan starts at the same time as another ends (on the same
2519
+ TimeLine)</p>
2520
+
2521
+
2522
+ </div>
2523
+ </div>
2524
+ <div class="tags">
2525
+ <h3>Parameters:</h3>
2526
+ <ul class="param">
2527
+
2528
+ <li>
2529
+
2530
+ <span class='name'>other_time_span</span>
2531
+
2532
+
2533
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
2534
+
2535
+
2536
+
2537
+ &mdash;
2538
+ <div class='inline'>
2539
+ <p>the TimeSpan being compared to self</p>
2540
+ </div>
2541
+
2542
+ </li>
2543
+
2544
+ </ul>
2545
+
2546
+ <h3>Returns:</h3>
2547
+ <ul class="return">
2548
+
2549
+ <li>
2550
+
2551
+
2552
+ <span class='type'>(<tt>Boolean</tt>)</span>
2553
+
2554
+
2555
+
2556
+ &mdash;
2557
+ <div class='inline'>
2558
+ <p>true if self starts at the same time as another time_span ends</p>
2559
+ </div>
2560
+
2561
+ </li>
2562
+
2563
+ </ul>
2564
+
2565
+ </div><table class="source_code">
2566
+ <tr>
2567
+ <td>
2568
+ <pre class="lines">
2569
+
2570
+
2571
+ 141
2572
+ 142
2573
+ 143</pre>
2574
+ </td>
2575
+ <td>
2576
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 141</span>
2577
+
2578
+ <span class='kw'>def</span> <span class='id identifier rubyid_starts_as_other_ends?'>starts_as_other_ends?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
2579
+ <span class='id identifier rubyid_starts'>starts</span> <span class='op'>==</span> <span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='period'>.</span><span class='id identifier rubyid_ends'>ends</span>
2580
+ <span class='kw'>end</span></pre>
2581
+ </td>
2582
+ </tr>
2583
+ </table>
2584
+ </div>
2585
+
2586
+ <div class="method_details ">
2587
+ <p class="signature " id="starts_before?-instance_method">
2588
+
2589
+ - (<tt>Boolean</tt>) <strong>starts_before?</strong>(other_time_span)
2590
+
2591
+
2592
+
2593
+ </p><div class="docstring">
2594
+ <div class="discussion">
2595
+
2596
+ <p>tests if one TimeSpan starts before another (on the same TimeLine)</p>
2597
+
2598
+
2599
+ </div>
2600
+ </div>
2601
+ <div class="tags">
2602
+ <h3>Parameters:</h3>
2603
+ <ul class="param">
2604
+
2605
+ <li>
2606
+
2607
+ <span class='name'>other_time_span</span>
2608
+
2609
+
2610
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
2611
+
2612
+
2613
+
2614
+ &mdash;
2615
+ <div class='inline'>
2616
+ <p>the TimeSpan being compared to self</p>
2617
+ </div>
2618
+
2619
+ </li>
2620
+
2621
+ </ul>
2622
+
2623
+ <h3>Returns:</h3>
2624
+ <ul class="return">
2625
+
2626
+ <li>
2627
+
2628
+
2629
+ <span class='type'>(<tt>Boolean</tt>)</span>
2630
+
2631
+
2632
+
2633
+ &mdash;
2634
+ <div class='inline'>
2635
+ <p>true if self starts before b starts</p>
2636
+ </div>
2637
+
2638
+ </li>
2639
+
2640
+ </ul>
2641
+
2642
+ </div><table class="source_code">
2643
+ <tr>
2644
+ <td>
2645
+ <pre class="lines">
2646
+
2647
+
2648
+ 50
2649
+ 51
2650
+ 52</pre>
2651
+ </td>
2652
+ <td>
2653
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 50</span>
2654
+
2655
+ <span class='kw'>def</span> <span class='id identifier rubyid_starts_before?'>starts_before?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
2656
+ <span class='id identifier rubyid_starts'>starts</span> <span class='op'>&lt;</span> <span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='period'>.</span><span class='id identifier rubyid_starts'>starts</span>
2657
+ <span class='kw'>end</span></pre>
2658
+ </td>
2659
+ </tr>
2660
+ </table>
2661
+ </div>
2662
+
2663
+ <div class="method_details ">
2664
+ <p class="signature " id="starts_before_or_with?-instance_method">
2665
+
2666
+ - (<tt>Boolean</tt>) <strong>starts_before_or_with?</strong>(other_time_span)
2667
+
2668
+
2669
+
2670
+ </p><div class="docstring">
2671
+ <div class="discussion">
2672
+
2673
+ <p>tests if one TimeSpan starts before or at the same time as another (on the
2674
+ same TimeLine)</p>
2675
+
2676
+
2677
+ </div>
2678
+ </div>
2679
+ <div class="tags">
2680
+ <h3>Parameters:</h3>
2681
+ <ul class="param">
2682
+
2683
+ <li>
2684
+
2685
+ <span class='name'>other_time_span</span>
2686
+
2687
+
2688
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
2689
+
2690
+
2691
+
2692
+ &mdash;
2693
+ <div class='inline'>
2694
+ <p>the TimeSpan being compared to self</p>
2695
+ </div>
2696
+
2697
+ </li>
2698
+
2699
+ </ul>
2700
+
2701
+ <h3>Returns:</h3>
2702
+ <ul class="return">
2703
+
2704
+ <li>
2705
+
2706
+
2707
+ <span class='type'>(<tt>Boolean</tt>)</span>
2708
+
2709
+
2710
+
2711
+ &mdash;
2712
+ <div class='inline'>
2713
+ <p>true if self starts before or at the same time as other_time_span starts</p>
2714
+ </div>
2715
+
2716
+ </li>
2717
+
2718
+ </ul>
2719
+
2720
+ </div><table class="source_code">
2721
+ <tr>
2722
+ <td>
2723
+ <pre class="lines">
2724
+
2725
+
2726
+ 78
2727
+ 79
2728
+ 80</pre>
2729
+ </td>
2730
+ <td>
2731
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 78</span>
2732
+
2733
+ <span class='kw'>def</span> <span class='id identifier rubyid_starts_before_or_with?'>starts_before_or_with?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
2734
+ <span class='id identifier rubyid_starts'>starts</span> <span class='op'>&lt;=</span> <span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='period'>.</span><span class='id identifier rubyid_starts'>starts</span>
2735
+ <span class='kw'>end</span></pre>
2736
+ </td>
2737
+ </tr>
2738
+ </table>
2739
+ </div>
2740
+
2741
+ <div class="method_details ">
2742
+ <p class="signature " id="starts_on_or_after?-instance_method">
2743
+
2744
+ - (<tt>Boolean</tt>) <strong>starts_on_or_after?</strong>(other_time_span)
2745
+
2746
+
2747
+
2748
+ </p><div class="docstring">
2749
+ <div class="discussion">
2750
+
2751
+ <p>tests if one TimeSpan starts with or after another (on the same TimeLine)</p>
2752
+
2753
+
2754
+ </div>
2755
+ </div>
2756
+ <div class="tags">
2757
+ <h3>Parameters:</h3>
2758
+ <ul class="param">
2759
+
2760
+ <li>
2761
+
2762
+ <span class='name'>other_time_span</span>
2763
+
2764
+
2765
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
2766
+
2767
+
2768
+
2769
+ &mdash;
2770
+ <div class='inline'>
2771
+ <p>the TimeSpan being compared to self</p>
2772
+ </div>
2773
+
2774
+ </li>
2775
+
2776
+ </ul>
1015
2777
 
2778
+ <h3>Returns:</h3>
2779
+ <ul class="return">
2780
+
2781
+ <li>
2782
+
2783
+
2784
+ <span class='type'>(<tt>Boolean</tt>)</span>
1016
2785
 
1017
- </div><!-- public-instance-method-details -->
2786
+
2787
+
2788
+ &mdash;
2789
+ <div class='inline'>
2790
+ <p>true if self starts on or after other_time_span starts</p>
2791
+ </div>
2792
+
2793
+ </li>
2794
+
2795
+ </ul>
2796
+
2797
+ </div><table class="source_code">
2798
+ <tr>
2799
+ <td>
2800
+ <pre class="lines">
2801
+
2802
+
2803
+ 64
2804
+ 65
2805
+ 66</pre>
2806
+ </td>
2807
+ <td>
2808
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 64</span>
2809
+
2810
+ <span class='kw'>def</span> <span class='id identifier rubyid_starts_on_or_after?'>starts_on_or_after?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
2811
+ <span class='id identifier rubyid_starts'>starts</span> <span class='op'>&gt;=</span> <span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='period'>.</span><span class='id identifier rubyid_starts'>starts</span>
2812
+ <span class='kw'>end</span></pre>
2813
+ </td>
2814
+ </tr>
2815
+ </table>
2816
+ </div>
1018
2817
 
1019
- </div><!-- 5Buntitled-5D -->
2818
+ <div class="method_details ">
2819
+ <p class="signature " id="starts_with?-instance_method">
1020
2820
 
2821
+ - (<tt>Boolean</tt>) <strong>starts_with?</strong>(other_time_span)
2822
+
2823
+
2824
+
2825
+ </p><div class="docstring">
2826
+ <div class="discussion">
2827
+
2828
+ <p>tests if one TimeSpan starts at the same time as another (on the same
2829
+ TimeLine)</p>
1021
2830
 
1022
- </div><!-- documentation -->
1023
2831
 
1024
- <div id="validator-badges">
1025
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
1026
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
1027
- Rdoc Generator</a> 2</small>.</p>
1028
2832
  </div>
2833
+ </div>
2834
+ <div class="tags">
2835
+ <h3>Parameters:</h3>
2836
+ <ul class="param">
2837
+
2838
+ <li>
2839
+
2840
+ <span class='name'>other_time_span</span>
2841
+
2842
+
2843
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TimeSpan::TimeSpan (class)">TimeSpan::TimeSpan</a></span></tt>)</span>
2844
+
2845
+
2846
+
2847
+ &mdash;
2848
+ <div class='inline'>
2849
+ <p>the TimeSpan being compared to self</p>
2850
+ </div>
2851
+
2852
+ </li>
2853
+
2854
+ </ul>
1029
2855
 
1030
- </body>
1031
- </html>
2856
+ <h3>Returns:</h3>
2857
+ <ul class="return">
2858
+
2859
+ <li>
2860
+
2861
+
2862
+ <span class='type'>(<tt>Boolean</tt>)</span>
2863
+
2864
+
2865
+
2866
+ &mdash;
2867
+ <div class='inline'>
2868
+ <p>true if self starts at the same time as other_time_span starts</p>
2869
+ </div>
2870
+
2871
+ </li>
2872
+
2873
+ </ul>
2874
+
2875
+ </div><table class="source_code">
2876
+ <tr>
2877
+ <td>
2878
+ <pre class="lines">
2879
+
2880
+
2881
+ 71
2882
+ 72
2883
+ 73</pre>
2884
+ </td>
2885
+ <td>
2886
+ <pre class="code"><span class="info file"># File 'lib/time_span.rb', line 71</span>
2887
+
2888
+ <span class='kw'>def</span> <span class='id identifier rubyid_starts_with?'>starts_with?</span><span class='lparen'>(</span><span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='rparen'>)</span>
2889
+ <span class='id identifier rubyid_starts'>starts</span> <span class='op'>==</span> <span class='id identifier rubyid_other_time_span'>other_time_span</span><span class='period'>.</span><span class='id identifier rubyid_starts'>starts</span>
2890
+ <span class='kw'>end</span></pre>
2891
+ </td>
2892
+ </tr>
2893
+ </table>
2894
+ </div>
2895
+
2896
+ </div>
1032
2897
 
2898
+ </div>
2899
+
2900
+ <div id="footer">
2901
+ Generated on Fri Mar 2 13:34:25 2012 by
2902
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2903
+ 0.7.5 (ruby-1.9.3).
2904
+ </div>
2905
+
2906
+ </body>
2907
+ </html>