temporal_object 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/TemporalObject.html +481 -13
- data/doc/_index.html +1 -8
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +19 -4
- data/doc/index.html +19 -4
- data/doc/method_list.html +10 -26
- data/doc/top-level-namespace.html +1 -1
- data/lib/temporal_object/version.rb +1 -1
- metadata +5 -5
data/doc/TemporalObject.html
CHANGED
@@ -104,17 +104,7 @@
|
|
104
104
|
|
105
105
|
</ul>
|
106
106
|
|
107
|
-
</div
|
108
|
-
<p class="children">
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="TemporalObject/TemporalObject.html" title="TemporalObject::TemporalObject (class)">TemporalObject</a></span>
|
114
|
-
|
115
|
-
|
116
|
-
</p>
|
117
|
-
|
107
|
+
</div>
|
118
108
|
<h2>Constant Summary</h2>
|
119
109
|
|
120
110
|
<dl class="constants">
|
@@ -122,7 +112,7 @@
|
|
122
112
|
<dt id="VERSION-constant" class="">VERSION =
|
123
113
|
|
124
114
|
</dt>
|
125
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.0
|
115
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.1.0</span><span class='tstring_end'>"</span></span></pre></dd>
|
126
116
|
|
127
117
|
</dl>
|
128
118
|
|
@@ -130,15 +120,493 @@
|
|
130
120
|
|
131
121
|
|
132
122
|
|
123
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
124
|
+
<ul class="summary">
|
125
|
+
|
126
|
+
<li class="public ">
|
127
|
+
<span class="summary_signature">
|
128
|
+
|
129
|
+
<a href="#temporal_statuses-instance_method" title="#temporal_statuses (instance method)">- (Object) <strong>temporal_statuses</strong> </a>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
</span>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
<span class="summary_desc"><div class='inline'><dl class="rdoc-list"><dt>Array</dt>
|
146
|
+
<dd>
|
147
|
+
<p>of TimeSpan::TimeLine statuses for temporal attributes.</p>
|
148
|
+
</dd></dl>
|
149
|
+
</div></span>
|
150
|
+
|
151
|
+
</li>
|
152
|
+
|
153
|
+
|
154
|
+
</ul>
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
<h2>
|
161
|
+
Instance Method Summary
|
162
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
163
|
+
</h2>
|
164
|
+
|
165
|
+
<ul class="summary">
|
166
|
+
|
167
|
+
<li class="public ">
|
168
|
+
<span class="summary_signature">
|
169
|
+
|
170
|
+
<a href="#add_timeline-instance_method" title="#add_timeline (instance method)">- (Array) <strong>add_timeline</strong>(timeline) </a>
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
</span>
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
<span class="summary_desc"><div class='inline'>
|
184
|
+
<p>add a timeline to the TemporalObject.</p>
|
185
|
+
</div></span>
|
186
|
+
|
187
|
+
</li>
|
188
|
+
|
189
|
+
|
190
|
+
<li class="public ">
|
191
|
+
<span class="summary_signature">
|
192
|
+
|
193
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (TemporalObject) <strong>initialize</strong> </a>
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
</span>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
<span class="summary_desc"><div class='inline'>
|
207
|
+
<p>A new instance of TemporalObject.</p>
|
208
|
+
</div></span>
|
209
|
+
|
210
|
+
</li>
|
211
|
+
|
212
|
+
|
213
|
+
<li class="public ">
|
214
|
+
<span class="summary_signature">
|
215
|
+
|
216
|
+
<a href="#remove_timeline-instance_method" title="#remove_timeline (instance method)">- (TimeSpan::TimeLine<sup>?</sup>) <strong>remove_timeline</strong>(timeline) </a>
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
</span>
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
<span class="summary_desc"><div class='inline'>
|
230
|
+
<p>delete the cited timeline.</p>
|
231
|
+
</div></span>
|
232
|
+
|
233
|
+
</li>
|
234
|
+
|
235
|
+
|
236
|
+
<li class="public ">
|
237
|
+
<span class="summary_signature">
|
238
|
+
|
239
|
+
<a href="#remove_timelines-instance_method" title="#remove_timelines (instance method)">- (Array) <strong>remove_timelines</strong> </a>
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
</span>
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
<span class="summary_desc"><div class='inline'>
|
253
|
+
<p>remove all TimeLine s from the TemporalObject.</p>
|
254
|
+
</div></span>
|
255
|
+
|
256
|
+
</li>
|
257
|
+
|
258
|
+
|
259
|
+
</ul>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
<div id="instance_attr_details" class="attr_details">
|
264
|
+
<h2>Instance Attribute Details</h2>
|
265
|
+
|
266
|
+
|
267
|
+
<span id="temporal_statuses=-instance_method"></span>
|
268
|
+
<span id="temporal_statuses-instance_method"></span>
|
269
|
+
<div class="method_details first">
|
270
|
+
<p class="signature first" id="temporal_statuses-instance_method">
|
271
|
+
|
272
|
+
- (<tt>Object</tt>) <strong>temporal_statuses</strong>
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
</p><div class="docstring">
|
277
|
+
<div class="discussion">
|
278
|
+
<dl class="rdoc-list"><dt>Array</dt>
|
279
|
+
<dd>
|
280
|
+
<p>of TimeSpan::TimeLine statuses for temporal attributes</p>
|
281
|
+
</dd></dl>
|
282
|
+
|
283
|
+
|
284
|
+
</div>
|
285
|
+
</div>
|
286
|
+
<div class="tags">
|
287
|
+
|
288
|
+
|
289
|
+
</div><table class="source_code">
|
290
|
+
<tr>
|
291
|
+
<td>
|
292
|
+
<pre class="lines">
|
293
|
+
|
294
|
+
|
295
|
+
9
|
296
|
+
10
|
297
|
+
11</pre>
|
298
|
+
</td>
|
299
|
+
<td>
|
300
|
+
<pre class="code"><span class="info file"># File 'lib/temporal_object.rb', line 9</span>
|
301
|
+
|
302
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_temporal_statuses'>temporal_statuses</span>
|
303
|
+
<span class='ivar'>@temporal_statuses</span>
|
304
|
+
<span class='kw'>end</span></pre>
|
305
|
+
</td>
|
306
|
+
</tr>
|
307
|
+
</table>
|
308
|
+
</div>
|
309
|
+
|
310
|
+
</div>
|
311
|
+
|
133
312
|
|
313
|
+
<div id="instance_method_details" class="method_details_list">
|
314
|
+
<h2>Instance Method Details</h2>
|
315
|
+
|
316
|
+
|
317
|
+
<div class="method_details first">
|
318
|
+
<p class="signature first" id="add_timeline-instance_method">
|
319
|
+
|
320
|
+
- (<tt>Array</tt>) <strong>add_timeline</strong>(timeline)
|
321
|
+
|
134
322
|
|
323
|
+
|
324
|
+
</p><div class="docstring">
|
325
|
+
<div class="discussion">
|
326
|
+
|
327
|
+
<p>add a timeline to the TemporalObject</p>
|
135
328
|
|
136
329
|
|
330
|
+
</div>
|
331
|
+
</div>
|
332
|
+
<div class="tags">
|
333
|
+
<h3>Parameters:</h3>
|
334
|
+
<ul class="param">
|
335
|
+
|
336
|
+
<li>
|
337
|
+
|
338
|
+
<span class='name'>timeline</span>
|
339
|
+
|
340
|
+
|
341
|
+
<span class='type'>(<tt>TimeSpan::TimeLine</tt>)</span>
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
—
|
346
|
+
<div class='inline'>
|
347
|
+
<p>added to the object</p>
|
348
|
+
</div>
|
349
|
+
|
350
|
+
</li>
|
351
|
+
|
352
|
+
</ul>
|
353
|
+
|
354
|
+
<h3>Returns:</h3>
|
355
|
+
<ul class="return">
|
356
|
+
|
357
|
+
<li>
|
358
|
+
|
359
|
+
|
360
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
—
|
365
|
+
<div class='inline'>
|
366
|
+
<p>adjusted list of timelines if no exception raised.</p>
|
367
|
+
</div>
|
368
|
+
|
369
|
+
</li>
|
370
|
+
|
371
|
+
</ul>
|
372
|
+
<h3>Raises:</h3>
|
373
|
+
<ul class="raise">
|
374
|
+
|
375
|
+
<li>
|
376
|
+
|
377
|
+
|
378
|
+
<span class='type'>(<tt>ArgumentError</tt>)</span>
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
</li>
|
383
|
+
|
384
|
+
</ul>
|
385
|
+
|
386
|
+
</div><table class="source_code">
|
387
|
+
<tr>
|
388
|
+
<td>
|
389
|
+
<pre class="lines">
|
390
|
+
|
391
|
+
|
392
|
+
19
|
393
|
+
20
|
394
|
+
21
|
395
|
+
22</pre>
|
396
|
+
</td>
|
397
|
+
<td>
|
398
|
+
<pre class="code"><span class="info file"># File 'lib/temporal_object.rb', line 19</span>
|
399
|
+
|
400
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_add_timeline'>add_timeline</span><span class='lparen'>(</span><span class='id identifier rubyid_timeline'>timeline</span><span class='rparen'>)</span>
|
401
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Can only add a TimeSpan::TimeLine to a TemporalObject's statuses</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_timeline'>timeline</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span> <span class='const'>TimeSpan</span><span class='op'>::</span><span class='const'>TimeLine</span>
|
402
|
+
<span class='ivar'>@temporal_statuses</span> <span class='op'><<</span> <span class='id identifier rubyid_timeline'>timeline</span>
|
403
|
+
<span class='kw'>end</span></pre>
|
404
|
+
</td>
|
405
|
+
</tr>
|
406
|
+
</table>
|
407
|
+
</div>
|
408
|
+
|
409
|
+
<div class="method_details ">
|
410
|
+
<p class="signature " id="initialize-instance_method">
|
411
|
+
|
412
|
+
- (<tt><span class='object_link'><a href="" title="TemporalObject (module)">TemporalObject</a></span></tt>) <strong>initialize</strong>
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
</p><div class="docstring">
|
417
|
+
<div class="discussion">
|
418
|
+
|
419
|
+
<p>A new instance of TemporalObject</p>
|
420
|
+
|
421
|
+
|
422
|
+
</div>
|
423
|
+
</div>
|
424
|
+
<div class="tags">
|
425
|
+
|
426
|
+
|
427
|
+
</div><table class="source_code">
|
428
|
+
<tr>
|
429
|
+
<td>
|
430
|
+
<pre class="lines">
|
431
|
+
|
432
|
+
|
433
|
+
11
|
434
|
+
12
|
435
|
+
13
|
436
|
+
14</pre>
|
437
|
+
</td>
|
438
|
+
<td>
|
439
|
+
<pre class="code"><span class="info file"># File 'lib/temporal_object.rb', line 11</span>
|
440
|
+
|
441
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
442
|
+
<span class='kw'>super</span>
|
443
|
+
<span class='ivar'>@temporal_statuses</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span> <span class='comment'># Array of TimeSpan::TimeLine
|
444
|
+
</span><span class='kw'>end</span></pre>
|
445
|
+
</td>
|
446
|
+
</tr>
|
447
|
+
</table>
|
448
|
+
</div>
|
449
|
+
|
450
|
+
<div class="method_details ">
|
451
|
+
<p class="signature " id="remove_timeline-instance_method">
|
452
|
+
|
453
|
+
- (<tt>TimeSpan::TimeLine</tt><sup>?</sup>) <strong>remove_timeline</strong>(timeline)
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
</p><div class="docstring">
|
458
|
+
<div class="discussion">
|
459
|
+
|
460
|
+
<p>delete the cited timeline</p>
|
461
|
+
|
462
|
+
|
463
|
+
</div>
|
464
|
+
</div>
|
465
|
+
<div class="tags">
|
466
|
+
<h3>Parameters:</h3>
|
467
|
+
<ul class="param">
|
468
|
+
|
469
|
+
<li>
|
470
|
+
|
471
|
+
<span class='name'>timeline</span>
|
472
|
+
|
473
|
+
|
474
|
+
<span class='type'>(<tt>TimeSpan::TimeLine</tt>)</span>
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
—
|
479
|
+
<div class='inline'>
|
480
|
+
<p>timeline to delete</p>
|
481
|
+
</div>
|
482
|
+
|
483
|
+
</li>
|
484
|
+
|
485
|
+
</ul>
|
486
|
+
|
487
|
+
<h3>Returns:</h3>
|
488
|
+
<ul class="return">
|
489
|
+
|
490
|
+
<li>
|
491
|
+
|
492
|
+
|
493
|
+
<span class='type'>(<tt>TimeSpan::TimeLine</tt>, <tt>nil</tt>)</span>
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
—
|
498
|
+
<div class='inline'>
|
499
|
+
<p>TimeLIne deleted if successful or nil if not</p>
|
500
|
+
</div>
|
501
|
+
|
502
|
+
</li>
|
503
|
+
|
504
|
+
</ul>
|
505
|
+
<h3>Raises:</h3>
|
506
|
+
<ul class="raise">
|
507
|
+
|
508
|
+
<li>
|
509
|
+
|
510
|
+
|
511
|
+
<span class='type'></span>
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
|
516
|
+
<div class='inline'>
|
517
|
+
<p>ArgumentError if called with a non-TimeLine object</p>
|
518
|
+
</div>
|
519
|
+
|
520
|
+
</li>
|
521
|
+
|
522
|
+
</ul>
|
523
|
+
|
524
|
+
</div><table class="source_code">
|
525
|
+
<tr>
|
526
|
+
<td>
|
527
|
+
<pre class="lines">
|
528
|
+
|
529
|
+
|
530
|
+
34
|
531
|
+
35
|
532
|
+
36
|
533
|
+
37</pre>
|
534
|
+
</td>
|
535
|
+
<td>
|
536
|
+
<pre class="code"><span class="info file"># File 'lib/temporal_object.rb', line 34</span>
|
537
|
+
|
538
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_remove_timeline'>remove_timeline</span><span class='lparen'>(</span><span class='id identifier rubyid_timeline'>timeline</span><span class='rparen'>)</span>
|
539
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Can only remove a TimeLine with this call.</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_timeline'>timeline</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span> <span class='const'>TimeSpan</span><span class='op'>::</span><span class='const'>TimeLine</span>
|
540
|
+
<span class='ivar'>@temporal_statuses</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_timeline'>timeline</span><span class='rparen'>)</span>
|
541
|
+
<span class='kw'>end</span></pre>
|
542
|
+
</td>
|
543
|
+
</tr>
|
544
|
+
</table>
|
545
|
+
</div>
|
546
|
+
|
547
|
+
<div class="method_details ">
|
548
|
+
<p class="signature " id="remove_timelines-instance_method">
|
549
|
+
|
550
|
+
- (<tt>Array</tt>) <strong>remove_timelines</strong>
|
551
|
+
|
552
|
+
|
553
|
+
|
554
|
+
</p><div class="docstring">
|
555
|
+
<div class="discussion">
|
556
|
+
|
557
|
+
<p>remove all TimeLine s from the TemporalObject</p>
|
558
|
+
|
559
|
+
|
560
|
+
</div>
|
561
|
+
</div>
|
562
|
+
<div class="tags">
|
563
|
+
|
564
|
+
<h3>Returns:</h3>
|
565
|
+
<ul class="return">
|
566
|
+
|
567
|
+
<li>
|
568
|
+
|
569
|
+
|
570
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
571
|
+
|
572
|
+
|
573
|
+
|
574
|
+
—
|
575
|
+
<div class='inline'>
|
576
|
+
<p>the associated timelines</p>
|
577
|
+
</div>
|
578
|
+
|
579
|
+
</li>
|
580
|
+
|
581
|
+
</ul>
|
582
|
+
|
583
|
+
</div><table class="source_code">
|
584
|
+
<tr>
|
585
|
+
<td>
|
586
|
+
<pre class="lines">
|
587
|
+
|
588
|
+
|
589
|
+
26
|
590
|
+
27
|
591
|
+
28</pre>
|
592
|
+
</td>
|
593
|
+
<td>
|
594
|
+
<pre class="code"><span class="info file"># File 'lib/temporal_object.rb', line 26</span>
|
595
|
+
|
596
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_remove_timelines'>remove_timelines</span>
|
597
|
+
<span class='ivar'>@temporal_statuses</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
598
|
+
<span class='kw'>end</span></pre>
|
599
|
+
</td>
|
600
|
+
</tr>
|
601
|
+
</table>
|
602
|
+
</div>
|
603
|
+
|
604
|
+
</div>
|
137
605
|
|
138
606
|
</div>
|
139
607
|
|
140
608
|
<div id="footer">
|
141
|
-
Generated on
|
609
|
+
Generated on Fri Mar 16 16:34:52 2012 by
|
142
610
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
143
611
|
0.7.5 (ruby-1.9.3).
|
144
612
|
</div>
|
data/doc/_index.html
CHANGED
@@ -85,13 +85,6 @@
|
|
85
85
|
|
86
86
|
</li>
|
87
87
|
|
88
|
-
<li>
|
89
|
-
<span class='object_link'><a href="TemporalObject/TemporalObject.html" title="TemporalObject::TemporalObject (class)">TemporalObject</a></span>
|
90
|
-
|
91
|
-
<small>(TemporalObject)</small>
|
92
|
-
|
93
|
-
</li>
|
94
|
-
|
95
88
|
</ul>
|
96
89
|
</ul>
|
97
90
|
|
@@ -104,7 +97,7 @@
|
|
104
97
|
</div>
|
105
98
|
|
106
99
|
<div id="footer">
|
107
|
-
Generated on
|
100
|
+
Generated on Fri Mar 16 16:34:52 2012 by
|
108
101
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
109
102
|
0.7.5 (ruby-1.9.3).
|
110
103
|
</div>
|
data/doc/class_list.html
CHANGED
@@ -39,7 +39,7 @@
|
|
39
39
|
|
40
40
|
<ul id="full_list" class="class">
|
41
41
|
<li><span class='object_link'><a href="top-level-namespace.html" title=" (root)">Top Level Namespace</a></span></li>
|
42
|
-
<li><
|
42
|
+
<li><span class='object_link'><a href="TemporalObject.html" title="TemporalObject (module)">TemporalObject</a></span><small class='search_info'>Top Level Namespace</small></li>
|
43
43
|
|
44
44
|
</ul>
|
45
45
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -56,15 +56,30 @@
|
|
56
56
|
|
57
57
|
<div id="content"><div id='filecontents'><h1>Temporal Object</h1>
|
58
58
|
|
59
|
-
<p>This is
|
59
|
+
<p>This gem is implemented as a mixin, so that you can do the following:</p>
|
60
60
|
|
61
|
-
<
|
61
|
+
<pre class="code ruby"><code><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>temporal_object</span><span class='tstring_end'>'</span></span>
|
62
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>TemporalObject</span>
|
63
|
+
</code></pre>
|
62
64
|
|
63
|
-
<p>
|
65
|
+
<p>Will add instance methods to manipulate TimeLines (and thereby TimeSpans and RelativeTimes) to the including object.</p>
|
66
|
+
|
67
|
+
<p>Most of the temporal aspects for Temporal Object are delegated to TimeSpan. The Temporal Object just has any number of
|
68
|
+
TimeSpan statuses.</p>
|
69
|
+
|
70
|
+
<p>More information on TimeSpan:</p>
|
71
|
+
|
72
|
+
<ul>
|
73
|
+
<li><a href="http://rubydoc.info/gems/time_span/0.0.3/frames">rdoc</a></li>
|
74
|
+
<li><a href="https://github.com/coyote/time_span">github</a></li>
|
75
|
+
<li><a href="https://rubygems.org/gems/time_span">rubygems</a></li>
|
76
|
+
</ul>
|
77
|
+
|
78
|
+
<p>Note, that this implementation is quite changed from gem version 0.0.3, where TemporalObjects needed to be created, which pointed to your actual object. Code has been simplified thereby, and is much cleaner.</p>
|
64
79
|
</div></div>
|
65
80
|
|
66
81
|
<div id="footer">
|
67
|
-
Generated on
|
82
|
+
Generated on Fri Mar 16 16:34:52 2012 by
|
68
83
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
69
84
|
0.7.5 (ruby-1.9.3).
|
70
85
|
</div>
|
data/doc/index.html
CHANGED
@@ -56,15 +56,30 @@
|
|
56
56
|
|
57
57
|
<div id="content"><div id='filecontents'><h1>Temporal Object</h1>
|
58
58
|
|
59
|
-
<p>This is
|
59
|
+
<p>This gem is implemented as a mixin, so that you can do the following:</p>
|
60
60
|
|
61
|
-
<
|
61
|
+
<pre class="code ruby"><code><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>temporal_object</span><span class='tstring_end'>'</span></span>
|
62
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>TemporalObject</span>
|
63
|
+
</code></pre>
|
62
64
|
|
63
|
-
<p>
|
65
|
+
<p>Will add instance methods to manipulate TimeLines (and thereby TimeSpans and RelativeTimes) to the including object.</p>
|
66
|
+
|
67
|
+
<p>Most of the temporal aspects for Temporal Object are delegated to TimeSpan. The Temporal Object just has any number of
|
68
|
+
TimeSpan statuses.</p>
|
69
|
+
|
70
|
+
<p>More information on TimeSpan:</p>
|
71
|
+
|
72
|
+
<ul>
|
73
|
+
<li><a href="http://rubydoc.info/gems/time_span/0.0.3/frames">rdoc</a></li>
|
74
|
+
<li><a href="https://github.com/coyote/time_span">github</a></li>
|
75
|
+
<li><a href="https://rubygems.org/gems/time_span">rubygems</a></li>
|
76
|
+
</ul>
|
77
|
+
|
78
|
+
<p>Note, that this implementation is quite changed from gem version 0.0.3, where TemporalObjects needed to be created, which pointed to your actual object. Code has been simplified thereby, and is much cleaner.</p>
|
64
79
|
</div></div>
|
65
80
|
|
66
81
|
<div id="footer">
|
67
|
-
Generated on
|
82
|
+
Generated on Fri Mar 16 16:34:52 2012 by
|
68
83
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
69
84
|
0.7.5 (ruby-1.9.3).
|
70
85
|
</div>
|
data/doc/method_list.html
CHANGED
@@ -41,57 +41,41 @@
|
|
41
41
|
|
42
42
|
|
43
43
|
<li class="r1 ">
|
44
|
-
<span class='object_link'><a href="TemporalObject
|
44
|
+
<span class='object_link'><a href="TemporalObject.html#add_timeline-instance_method" title="TemporalObject#add_timeline (method)">#add_timeline</a></span>
|
45
45
|
|
46
|
-
<small>TemporalObject
|
46
|
+
<small>TemporalObject</small>
|
47
47
|
|
48
48
|
</li>
|
49
49
|
|
50
50
|
|
51
51
|
<li class="r2 ">
|
52
|
-
<span class='object_link'><a href="TemporalObject
|
52
|
+
<span class='object_link'><a href="TemporalObject.html#initialize-instance_method" title="TemporalObject#initialize (method)">#initialize</a></span>
|
53
53
|
|
54
|
-
<small>TemporalObject
|
54
|
+
<small>TemporalObject</small>
|
55
55
|
|
56
56
|
</li>
|
57
57
|
|
58
58
|
|
59
59
|
<li class="r1 ">
|
60
|
-
<span class='object_link'><a href="TemporalObject
|
60
|
+
<span class='object_link'><a href="TemporalObject.html#remove_timeline-instance_method" title="TemporalObject#remove_timeline (method)">#remove_timeline</a></span>
|
61
61
|
|
62
|
-
<small>TemporalObject
|
62
|
+
<small>TemporalObject</small>
|
63
63
|
|
64
64
|
</li>
|
65
65
|
|
66
66
|
|
67
67
|
<li class="r2 ">
|
68
|
-
<span class='object_link'><a href="TemporalObject
|
68
|
+
<span class='object_link'><a href="TemporalObject.html#remove_timelines-instance_method" title="TemporalObject#remove_timelines (method)">#remove_timelines</a></span>
|
69
69
|
|
70
|
-
<small>TemporalObject
|
70
|
+
<small>TemporalObject</small>
|
71
71
|
|
72
72
|
</li>
|
73
73
|
|
74
74
|
|
75
75
|
<li class="r1 ">
|
76
|
-
<span class='object_link'><a href="TemporalObject
|
76
|
+
<span class='object_link'><a href="TemporalObject.html#temporal_statuses-instance_method" title="TemporalObject#temporal_statuses (method)">#temporal_statuses</a></span>
|
77
77
|
|
78
|
-
<small>TemporalObject
|
79
|
-
|
80
|
-
</li>
|
81
|
-
|
82
|
-
|
83
|
-
<li class="r2 ">
|
84
|
-
<span class='object_link'><a href="TemporalObject/TemporalObject.html#remove_timelines-instance_method" title="TemporalObject::TemporalObject#remove_timelines (method)">#remove_timelines</a></span>
|
85
|
-
|
86
|
-
<small>TemporalObject::TemporalObject</small>
|
87
|
-
|
88
|
-
</li>
|
89
|
-
|
90
|
-
|
91
|
-
<li class="r1 ">
|
92
|
-
<span class='object_link'><a href="TemporalObject/TemporalObject.html#statuses-instance_method" title="TemporalObject::TemporalObject#statuses (method)">#statuses</a></span>
|
93
|
-
|
94
|
-
<small>TemporalObject::TemporalObject</small>
|
78
|
+
<small>TemporalObject</small>
|
95
79
|
|
96
80
|
</li>
|
97
81
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: temporal_object
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &78374510 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *78374510
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: time_span
|
27
|
-
requirement: &
|
27
|
+
requirement: &78374220 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *78374220
|
36
36
|
description: Martin Fowler\'s Temporal Object Pattern. Use time_span gem for the
|
37
37
|
times.
|
38
38
|
email:
|