lazier 1.0.7 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -1
- data/README.md +5 -2
- data/doc/Lazier.html +472 -174
- data/doc/Lazier/Boolean.html +9 -11
- data/doc/Lazier/DateTime.html +59 -113
- data/doc/Lazier/DateTime/ClassMethods.html +87 -121
- data/doc/Lazier/Exceptions.html +3 -3
- data/doc/Lazier/Exceptions/Dump.html +3 -3
- data/doc/Lazier/Hash.html +17 -19
- data/doc/Lazier/Math.html +3 -3
- data/doc/Lazier/Math/ClassMethods.html +14 -48
- data/doc/Lazier/Object.html +127 -139
- data/doc/Lazier/Pathname.html +11 -12
- data/doc/Lazier/Settings.html +189 -169
- data/doc/Lazier/String.html +23 -27
- data/doc/Lazier/TimeZone.html +202 -249
- data/doc/Lazier/TimeZone/ClassMethods.html +110 -137
- data/doc/Lazier/Version.html +7 -11
- data/doc/_index.html +4 -4
- data/doc/file.README.html +12 -9
- data/doc/frames.html +1 -1
- data/doc/index.html +12 -9
- data/doc/method_list.html +72 -24
- data/doc/top-level-namespace.html +3 -3
- data/lazier.gemspec +8 -8
- data/lib/lazier.rb +55 -59
- data/lib/lazier/datetime.rb +74 -88
- data/lib/lazier/math.rb +2 -18
- data/lib/lazier/object.rb +14 -13
- data/lib/lazier/settings.rb +8 -25
- data/lib/lazier/version.rb +2 -2
- data/spec/lazier/datetime_spec.rb +12 -20
- data/spec/lazier/hash_spec.rb +1 -1
- data/spec/lazier/object_spec.rb +3 -3
- data/spec/lazier/settings_spec.rb +3 -3
- data/spec/lazier_spec.rb +1 -19
- metadata +145 -160
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -6,7 +6,9 @@
|
|
6
6
|
|
7
7
|
Several Ruby object enhancements.
|
8
8
|
|
9
|
-
http://
|
9
|
+
http://sw.cow.tc/lazier
|
10
|
+
|
11
|
+
http://rdoc.info/gems/lazier
|
10
12
|
|
11
13
|
## Usage
|
12
14
|
|
@@ -30,5 +32,6 @@ See documentation for more informations.
|
|
30
32
|
|
31
33
|
## Copyright
|
32
34
|
|
33
|
-
Copyright (C) 2013 and above Shogun
|
35
|
+
Copyright (C) 2013 and above Shogun (shogun_panda@me.com).
|
36
|
+
|
34
37
|
Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
|
data/doc/Lazier.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Lazier
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.3
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -127,7 +127,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
127
127
|
<li class="public ">
|
128
128
|
<span class="summary_signature">
|
129
129
|
|
130
|
-
<a href="#
|
130
|
+
<a href="#load%21-class_method" title="load! (class method)">+ (Settings) <strong>load!</strong>(*what) </a>
|
131
131
|
|
132
132
|
|
133
133
|
|
@@ -141,7 +141,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
141
141
|
|
142
142
|
|
143
143
|
|
144
|
-
<span class="summary_desc"><div class='inline'><p>
|
144
|
+
<span class="summary_desc"><div class='inline'><p>Loads the extensions.</p>
|
145
145
|
</div></span>
|
146
146
|
|
147
147
|
</li>
|
@@ -150,7 +150,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
150
150
|
<li class="public ">
|
151
151
|
<span class="summary_signature">
|
152
152
|
|
153
|
-
<a href="#
|
153
|
+
<a href="#load_boolean-class_method" title="load_boolean (class method)">+ (Object) <strong>load_boolean</strong> </a>
|
154
154
|
|
155
155
|
|
156
156
|
|
@@ -164,7 +164,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
164
164
|
|
165
165
|
|
166
166
|
|
167
|
-
<span class="summary_desc"><div class='inline'><p>Loads
|
167
|
+
<span class="summary_desc"><div class='inline'><p>Loads Boolean extensions.</p>
|
168
168
|
</div></span>
|
169
169
|
|
170
170
|
</li>
|
@@ -173,7 +173,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
173
173
|
<li class="public ">
|
174
174
|
<span class="summary_signature">
|
175
175
|
|
176
|
-
<a href="#
|
176
|
+
<a href="#load_datetime-class_method" title="load_datetime (class method)">+ (Object) <strong>load_datetime</strong> </a>
|
177
177
|
|
178
178
|
|
179
179
|
|
@@ -187,81 +187,161 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
187
187
|
|
188
188
|
|
189
189
|
|
190
|
-
<span class="summary_desc"><div class='inline'><p>
|
190
|
+
<span class="summary_desc"><div class='inline'><p>Loads DateTime extensions.</p>
|
191
191
|
</div></span>
|
192
192
|
|
193
193
|
</li>
|
194
194
|
|
195
195
|
|
196
|
-
|
197
|
-
|
196
|
+
<li class="public ">
|
197
|
+
<span class="summary_signature">
|
198
|
+
|
199
|
+
<a href="#load_hash-class_method" title="load_hash (class method)">+ (Object) <strong>load_hash</strong> </a>
|
200
|
+
|
198
201
|
|
202
|
+
|
203
|
+
</span>
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
199
211
|
|
212
|
+
|
213
|
+
<span class="summary_desc"><div class='inline'><p>Loads Hash extensions.</p>
|
214
|
+
</div></span>
|
215
|
+
|
216
|
+
</li>
|
200
217
|
|
201
|
-
|
202
|
-
|
218
|
+
|
219
|
+
<li class="public ">
|
220
|
+
<span class="summary_signature">
|
221
|
+
|
222
|
+
<a href="#load_math-class_method" title="load_math (class method)">+ (Object) <strong>load_math</strong> </a>
|
223
|
+
|
203
224
|
|
204
225
|
|
205
|
-
|
206
|
-
|
226
|
+
</span>
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
207
231
|
|
208
|
-
+ (<tt><span class='object_link'><a href="Lazier/Boolean.html" title="Lazier::Boolean (module)">Boolean</a></span></tt>) <strong>is_ruby_18?</strong>
|
209
232
|
|
210
|
-
|
211
233
|
|
212
234
|
|
213
235
|
|
214
|
-
|
215
|
-
|
216
|
-
|
236
|
+
<span class="summary_desc"><div class='inline'><p>Loads Math extensions.</p>
|
237
|
+
</div></span>
|
238
|
+
|
239
|
+
</li>
|
217
240
|
|
241
|
+
|
242
|
+
<li class="public ">
|
243
|
+
<span class="summary_signature">
|
244
|
+
|
245
|
+
<a href="#load_object-class_method" title="load_object (class method)">+ (Object) <strong>load_object</strong> </a>
|
246
|
+
|
218
247
|
|
219
|
-
|
220
|
-
</
|
221
|
-
<div class="tags">
|
248
|
+
|
249
|
+
</span>
|
222
250
|
|
223
|
-
<p class="tag_title">Returns:</p>
|
224
|
-
<ul class="return">
|
225
251
|
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
<span class="summary_desc"><div class='inline'><p>Loads Object extensions.</p>
|
260
|
+
</div></span>
|
261
|
+
|
262
|
+
</li>
|
263
|
+
|
230
264
|
|
265
|
+
<li class="public ">
|
266
|
+
<span class="summary_signature">
|
267
|
+
|
268
|
+
<a href="#load_pathname-class_method" title="load_pathname (class method)">+ (Object) <strong>load_pathname</strong> </a>
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
</span>
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
<span class="summary_desc"><div class='inline'><p>Loads Pathname extensions.</p>
|
283
|
+
</div></span>
|
284
|
+
|
285
|
+
</li>
|
286
|
+
|
231
287
|
|
288
|
+
<li class="public ">
|
289
|
+
<span class="summary_signature">
|
290
|
+
|
291
|
+
<a href="#load_string-class_method" title="load_string (class method)">+ (Object) <strong>load_string</strong> </a>
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
</span>
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
<span class="summary_desc"><div class='inline'><p>Loads String extensions.</p>
|
306
|
+
</div></span>
|
307
|
+
|
308
|
+
</li>
|
309
|
+
|
232
310
|
|
233
|
-
|
234
|
-
|
235
|
-
|
311
|
+
<li class="public ">
|
312
|
+
<span class="summary_signature">
|
313
|
+
|
314
|
+
<a href="#settings-class_method" title="settings (class method)">+ (Settings) <strong>settings</strong> </a>
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
</span>
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
<span class="summary_desc"><div class='inline'><p>Returns the settings for the extensions.</p>
|
329
|
+
</div></span>
|
330
|
+
|
331
|
+
</li>
|
332
|
+
|
236
333
|
|
237
|
-
</
|
334
|
+
</ul>
|
238
335
|
|
239
|
-
</ul>
|
240
336
|
|
241
|
-
</div><table class="source_code">
|
242
|
-
<tr>
|
243
|
-
<td>
|
244
|
-
<pre class="lines">
|
245
337
|
|
246
338
|
|
247
|
-
|
248
|
-
|
249
|
-
32</pre>
|
250
|
-
</td>
|
251
|
-
<td>
|
252
|
-
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 30</span>
|
339
|
+
<div id="class_method_details" class="method_details_list">
|
340
|
+
<h2>Class Method Details</h2>
|
253
341
|
|
254
|
-
<span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_is_ruby_18? fid id'>is_ruby_18?</span>
|
255
|
-
<span class='rubyid_RUBY_VERSION constant id'>RUBY_VERSION</span> <span class='match op'>=~</span> <span class='regexp val'>/^1\.8/</span>
|
256
|
-
<span class='rubyid_end end kw'>end</span>
|
257
|
-
</pre>
|
258
|
-
</td>
|
259
|
-
</tr>
|
260
|
-
</table>
|
261
|
-
</div>
|
262
342
|
|
263
|
-
<div class="method_details ">
|
264
|
-
<h3 class="signature " id="load!-class_method">
|
343
|
+
<div class="method_details first">
|
344
|
+
<h3 class="signature first" id="load!-class_method">
|
265
345
|
|
266
346
|
+ (<tt><span class='object_link'><a href="Lazier/Settings.html" title="Lazier::Settings (class)">Settings</a></span></tt>) <strong>load!</strong>(*what)
|
267
347
|
|
@@ -328,13 +408,54 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
328
408
|
<pre class="lines">
|
329
409
|
|
330
410
|
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
411
|
+
43
|
412
|
+
44
|
413
|
+
45
|
414
|
+
46
|
415
|
+
47
|
416
|
+
48
|
417
|
+
49</pre>
|
418
|
+
</td>
|
419
|
+
<td>
|
420
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 43</span>
|
421
|
+
|
422
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load!'>load!</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_what'>what</span><span class='rparen'>)</span>
|
423
|
+
<span class='id identifier rubyid_what'>what</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>object</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>boolean</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>string</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>hash</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>datetime</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>math</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>pathname</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_what'>what</span><span class='period'>.</span><span class='id identifier rubyid_count'>count</span> <span class='op'>==</span> <span class='int'>0</span>
|
424
|
+
<span class='id identifier rubyid_what'>what</span><span class='period'>.</span><span class='id identifier rubyid_collect!'>collect!</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_w'>w</span><span class='op'>|</span> <span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>load_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_w'>w</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
425
|
+
|
426
|
+
<span class='kw'>yield</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
427
|
+
<span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Settings</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
|
428
|
+
<span class='kw'>end</span></pre>
|
429
|
+
</td>
|
430
|
+
</tr>
|
431
|
+
</table>
|
432
|
+
</div>
|
433
|
+
|
434
|
+
<div class="method_details ">
|
435
|
+
<h3 class="signature " id="load_boolean-class_method">
|
436
|
+
|
437
|
+
+ (<tt><span class='object_link'><a href="Lazier/Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>load_boolean</strong>
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
</h3><div class="docstring">
|
444
|
+
<div class="discussion">
|
445
|
+
<p>Loads Boolean extensions.</p>
|
446
|
+
|
447
|
+
|
448
|
+
</div>
|
449
|
+
</div>
|
450
|
+
<div class="tags">
|
451
|
+
|
452
|
+
|
453
|
+
</div><table class="source_code">
|
454
|
+
<tr>
|
455
|
+
<td>
|
456
|
+
<pre class="lines">
|
457
|
+
|
458
|
+
|
338
459
|
59
|
339
460
|
60
|
340
461
|
61
|
@@ -345,23 +466,52 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
345
466
|
66
|
346
467
|
67
|
347
468
|
68
|
348
|
-
69
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
469
|
+
69</pre>
|
470
|
+
</td>
|
471
|
+
<td>
|
472
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 59</span>
|
473
|
+
|
474
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_boolean'>load_boolean</span>
|
475
|
+
<span class='op'>::</span><span class='const'>TrueClass</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
|
476
|
+
<span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Object</span>
|
477
|
+
<span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Boolean</span>
|
478
|
+
<span class='kw'>end</span>
|
479
|
+
|
480
|
+
<span class='op'>::</span><span class='const'>FalseClass</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
|
481
|
+
<span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Object</span>
|
482
|
+
<span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Boolean</span>
|
483
|
+
<span class='kw'>end</span>
|
484
|
+
<span class='kw'>end</span></pre>
|
485
|
+
</td>
|
486
|
+
</tr>
|
487
|
+
</table>
|
488
|
+
</div>
|
489
|
+
|
490
|
+
<div class="method_details ">
|
491
|
+
<h3 class="signature " id="load_datetime-class_method">
|
492
|
+
|
493
|
+
+ (<tt><span class='object_link'><a href="Lazier/Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>load_datetime</strong>
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
</h3><div class="docstring">
|
500
|
+
<div class="discussion">
|
501
|
+
<p>Loads DateTime extensions.</p>
|
502
|
+
|
503
|
+
|
504
|
+
</div>
|
505
|
+
</div>
|
506
|
+
<div class="tags">
|
507
|
+
|
508
|
+
|
509
|
+
</div><table class="source_code">
|
510
|
+
<tr>
|
511
|
+
<td>
|
512
|
+
<pre class="lines">
|
513
|
+
|
514
|
+
|
365
515
|
86
|
366
516
|
87
|
367
517
|
88
|
@@ -380,109 +530,258 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
380
530
|
101
|
381
531
|
102
|
382
532
|
103
|
383
|
-
104
|
384
|
-
|
385
|
-
|
533
|
+
104</pre>
|
534
|
+
</td>
|
535
|
+
<td>
|
536
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 86</span>
|
537
|
+
|
538
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_datetime'>load_datetime</span>
|
539
|
+
<span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_load_object'>load_object</span>
|
540
|
+
|
541
|
+
<span class='op'>::</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
|
542
|
+
<span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>DateTime</span>
|
543
|
+
<span class='kw'>end</span>
|
544
|
+
|
545
|
+
<span class='op'>::</span><span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
|
546
|
+
<span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>DateTime</span>
|
547
|
+
<span class='kw'>end</span>
|
548
|
+
|
549
|
+
<span class='op'>::</span><span class='const'>DateTime</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
|
550
|
+
<span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>DateTime</span>
|
551
|
+
<span class='kw'>end</span>
|
552
|
+
|
553
|
+
<span class='op'>::</span><span class='const'>ActiveSupport</span><span class='op'>::</span><span class='const'>TimeZone</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
|
554
|
+
<span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>TimeZone</span>
|
555
|
+
<span class='kw'>end</span>
|
556
|
+
<span class='kw'>end</span></pre>
|
557
|
+
</td>
|
558
|
+
</tr>
|
559
|
+
</table>
|
560
|
+
</div>
|
561
|
+
|
562
|
+
<div class="method_details ">
|
563
|
+
<h3 class="signature " id="load_hash-class_method">
|
564
|
+
|
565
|
+
+ (<tt><span class='object_link'><a href="Lazier/Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>load_hash</strong>
|
566
|
+
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
</h3><div class="docstring">
|
572
|
+
<div class="discussion">
|
573
|
+
<p>Loads Hash extensions.</p>
|
574
|
+
|
575
|
+
|
576
|
+
</div>
|
577
|
+
</div>
|
578
|
+
<div class="tags">
|
579
|
+
|
580
|
+
|
581
|
+
</div><table class="source_code">
|
582
|
+
<tr>
|
583
|
+
<td>
|
584
|
+
<pre class="lines">
|
585
|
+
|
586
|
+
|
587
|
+
79
|
588
|
+
80
|
589
|
+
81
|
590
|
+
82
|
591
|
+
83</pre>
|
592
|
+
</td>
|
593
|
+
<td>
|
594
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 79</span>
|
595
|
+
|
596
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_hash'>load_hash</span>
|
597
|
+
<span class='op'>::</span><span class='const'>Hash</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
|
598
|
+
<span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Hash</span>
|
599
|
+
<span class='kw'>end</span>
|
600
|
+
<span class='kw'>end</span></pre>
|
601
|
+
</td>
|
602
|
+
</tr>
|
603
|
+
</table>
|
604
|
+
</div>
|
605
|
+
|
606
|
+
<div class="method_details ">
|
607
|
+
<h3 class="signature " id="load_math-class_method">
|
608
|
+
|
609
|
+
+ (<tt><span class='object_link'><a href="Lazier/Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>load_math</strong>
|
610
|
+
|
611
|
+
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
</h3><div class="docstring">
|
616
|
+
<div class="discussion">
|
617
|
+
<p>Loads Math extensions.</p>
|
618
|
+
|
619
|
+
|
620
|
+
</div>
|
621
|
+
</div>
|
622
|
+
<div class="tags">
|
623
|
+
|
624
|
+
|
625
|
+
</div><table class="source_code">
|
626
|
+
<tr>
|
627
|
+
<td>
|
628
|
+
<pre class="lines">
|
629
|
+
|
630
|
+
|
386
631
|
107
|
387
632
|
108
|
388
633
|
109
|
389
634
|
110
|
390
635
|
111
|
391
636
|
112
|
392
|
-
113
|
393
|
-
|
394
|
-
|
637
|
+
113</pre>
|
638
|
+
</td>
|
639
|
+
<td>
|
640
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 107</span>
|
641
|
+
|
642
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_math'>load_math</span>
|
643
|
+
<span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_load_object'>load_object</span>
|
644
|
+
|
645
|
+
<span class='op'>::</span><span class='const'>Math</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
|
646
|
+
<span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Math</span>
|
647
|
+
<span class='kw'>end</span>
|
648
|
+
<span class='kw'>end</span></pre>
|
649
|
+
</td>
|
650
|
+
</tr>
|
651
|
+
</table>
|
652
|
+
</div>
|
653
|
+
|
654
|
+
<div class="method_details ">
|
655
|
+
<h3 class="signature " id="load_object-class_method">
|
656
|
+
|
657
|
+
+ (<tt><span class='object_link'><a href="Lazier/Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>load_object</strong>
|
658
|
+
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
</h3><div class="docstring">
|
664
|
+
<div class="discussion">
|
665
|
+
<p>Loads Object extensions.</p>
|
666
|
+
|
667
|
+
|
668
|
+
</div>
|
669
|
+
</div>
|
670
|
+
<div class="tags">
|
671
|
+
|
672
|
+
|
673
|
+
</div><table class="source_code">
|
674
|
+
<tr>
|
675
|
+
<td>
|
676
|
+
<pre class="lines">
|
677
|
+
|
678
|
+
|
679
|
+
52
|
680
|
+
53
|
681
|
+
54
|
682
|
+
55
|
683
|
+
56</pre>
|
684
|
+
</td>
|
685
|
+
<td>
|
686
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 52</span>
|
687
|
+
|
688
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_object'>load_object</span>
|
689
|
+
<span class='op'>::</span><span class='const'>Object</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
|
690
|
+
<span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Object</span>
|
691
|
+
<span class='kw'>end</span>
|
692
|
+
<span class='kw'>end</span></pre>
|
693
|
+
</td>
|
694
|
+
</tr>
|
695
|
+
</table>
|
696
|
+
</div>
|
697
|
+
|
698
|
+
<div class="method_details ">
|
699
|
+
<h3 class="signature " id="load_pathname-class_method">
|
700
|
+
|
701
|
+
+ (<tt><span class='object_link'><a href="Lazier/Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>load_pathname</strong>
|
702
|
+
|
703
|
+
|
704
|
+
|
705
|
+
|
706
|
+
|
707
|
+
</h3><div class="docstring">
|
708
|
+
<div class="discussion">
|
709
|
+
<p>Loads Pathname extensions.</p>
|
710
|
+
|
711
|
+
|
712
|
+
</div>
|
713
|
+
</div>
|
714
|
+
<div class="tags">
|
715
|
+
|
716
|
+
|
717
|
+
</div><table class="source_code">
|
718
|
+
<tr>
|
719
|
+
<td>
|
720
|
+
<pre class="lines">
|
721
|
+
|
722
|
+
|
395
723
|
116
|
396
724
|
117
|
397
725
|
118
|
398
726
|
119
|
399
727
|
120
|
400
728
|
121
|
401
|
-
122
|
402
|
-
123
|
403
|
-
124
|
404
|
-
125
|
405
|
-
126</pre>
|
729
|
+
122</pre>
|
406
730
|
</td>
|
407
731
|
<td>
|
408
|
-
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line
|
732
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 116</span>
|
733
|
+
|
734
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_pathname'>load_pathname</span>
|
735
|
+
<span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>pathname</span><span class='tstring_end'>"</span></span>
|
736
|
+
|
737
|
+
<span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
|
738
|
+
<span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Pathname</span>
|
739
|
+
<span class='kw'>end</span>
|
740
|
+
<span class='kw'>end</span></pre>
|
741
|
+
</td>
|
742
|
+
</tr>
|
743
|
+
</table>
|
744
|
+
</div>
|
745
|
+
|
746
|
+
<div class="method_details ">
|
747
|
+
<h3 class="signature " id="load_string-class_method">
|
748
|
+
|
749
|
+
+ (<tt><span class='object_link'><a href="Lazier/Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>load_string</strong>
|
750
|
+
|
751
|
+
|
752
|
+
|
753
|
+
|
754
|
+
|
755
|
+
</h3><div class="docstring">
|
756
|
+
<div class="discussion">
|
757
|
+
<p>Loads String extensions.</p>
|
758
|
+
|
759
|
+
|
760
|
+
</div>
|
761
|
+
</div>
|
762
|
+
<div class="tags">
|
763
|
+
|
764
|
+
|
765
|
+
</div><table class="source_code">
|
766
|
+
<tr>
|
767
|
+
<td>
|
768
|
+
<pre class="lines">
|
769
|
+
|
770
|
+
|
771
|
+
72
|
772
|
+
73
|
773
|
+
74
|
774
|
+
75
|
775
|
+
76</pre>
|
776
|
+
</td>
|
777
|
+
<td>
|
778
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 72</span>
|
409
779
|
|
410
|
-
<span class='
|
411
|
-
<span class='
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
<span class='rubyid_what identifier id'>what</span> <span class='lshft op'><<</span> <span class='string val'>"object"</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>"datetime"</span><span class='rparen token'>)</span>
|
416
|
-
<span class='rubyid_what identifier id'>what</span> <span class='lshft op'><<</span> <span class='string val'>"object"</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>"math"</span><span class='rparen token'>)</span>
|
417
|
-
<span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_compact identifier id'>compact</span><span class='dot token'>.</span><span class='rubyid_uniq! fid id'>uniq!</span>
|
418
|
-
|
419
|
-
<span class='rubyid_if if kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>"object"</span><span class='rparen token'>)</span> <span class='rubyid_then then kw'>then</span>
|
420
|
-
<span class='colon3 op'>::</span><span class='rubyid_Object constant id'>Object</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
|
421
|
-
<span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Object constant id'>Object</span>
|
422
|
-
<span class='rubyid_end end kw'>end</span>
|
423
|
-
<span class='rubyid_end end kw'>end</span>
|
424
|
-
|
425
|
-
<span class='rubyid_if if kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>"boolean"</span><span class='rparen token'>)</span> <span class='rubyid_then then kw'>then</span>
|
426
|
-
<span class='colon3 op'>::</span><span class='rubyid_TrueClass constant id'>TrueClass</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
|
427
|
-
<span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Object constant id'>Object</span>
|
428
|
-
<span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Boolean constant id'>Boolean</span>
|
429
|
-
<span class='rubyid_end end kw'>end</span>
|
430
|
-
|
431
|
-
<span class='colon3 op'>::</span><span class='rubyid_FalseClass constant id'>FalseClass</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
|
432
|
-
<span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Object constant id'>Object</span>
|
433
|
-
<span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Boolean constant id'>Boolean</span>
|
434
|
-
<span class='rubyid_end end kw'>end</span>
|
435
|
-
<span class='rubyid_end end kw'>end</span>
|
436
|
-
|
437
|
-
<span class='rubyid_if if kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>"string"</span><span class='rparen token'>)</span> <span class='rubyid_then then kw'>then</span>
|
438
|
-
<span class='colon3 op'>::</span><span class='rubyid_String constant id'>String</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
|
439
|
-
<span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_String constant id'>String</span>
|
440
|
-
<span class='rubyid_end end kw'>end</span>
|
441
|
-
<span class='rubyid_end end kw'>end</span>
|
442
|
-
|
443
|
-
<span class='rubyid_if if kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>"hash"</span><span class='rparen token'>)</span> <span class='rubyid_then then kw'>then</span>
|
444
|
-
<span class='colon3 op'>::</span><span class='rubyid_Hash constant id'>Hash</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
|
445
|
-
<span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Hash constant id'>Hash</span>
|
446
|
-
<span class='rubyid_end end kw'>end</span>
|
447
|
-
<span class='rubyid_end end kw'>end</span>
|
448
|
-
|
449
|
-
<span class='rubyid_if if kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>"datetime"</span><span class='rparen token'>)</span> <span class='rubyid_then then kw'>then</span>
|
450
|
-
<span class='colon3 op'>::</span><span class='rubyid_Time constant id'>Time</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
|
451
|
-
<span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_DateTime constant id'>DateTime</span>
|
452
|
-
<span class='rubyid_end end kw'>end</span>
|
453
|
-
|
454
|
-
<span class='colon3 op'>::</span><span class='rubyid_Date constant id'>Date</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
|
455
|
-
<span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_DateTime constant id'>DateTime</span>
|
456
|
-
<span class='rubyid_end end kw'>end</span>
|
457
|
-
|
458
|
-
<span class='colon3 op'>::</span><span class='rubyid_DateTime constant id'>DateTime</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
|
459
|
-
<span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_DateTime constant id'>DateTime</span>
|
460
|
-
<span class='rubyid_end end kw'>end</span>
|
461
|
-
|
462
|
-
<span class='colon3 op'>::</span><span class='rubyid_ActiveSupport constant id'>ActiveSupport</span><span class='colon2 op'>::</span><span class='rubyid_TimeZone constant id'>TimeZone</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
|
463
|
-
<span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_TimeZone constant id'>TimeZone</span>
|
464
|
-
<span class='rubyid_end end kw'>end</span>
|
465
|
-
<span class='rubyid_end end kw'>end</span>
|
466
|
-
|
467
|
-
<span class='rubyid_if if kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>"math"</span><span class='rparen token'>)</span> <span class='rubyid_then then kw'>then</span>
|
468
|
-
<span class='colon3 op'>::</span><span class='rubyid_Math constant id'>Math</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
|
469
|
-
<span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Math constant id'>Math</span>
|
470
|
-
<span class='rubyid_end end kw'>end</span>
|
471
|
-
<span class='rubyid_end end kw'>end</span>
|
472
|
-
|
473
|
-
<span class='rubyid_if if kw'>if</span> <span class='rubyid_what identifier id'>what</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='string val'>"pathname"</span><span class='rparen token'>)</span> <span class='rubyid_then then kw'>then</span>
|
474
|
-
<span class='rubyid_require identifier id'>require</span> <span class='string val'>"pathname"</span>
|
475
|
-
|
476
|
-
<span class='colon3 op'>::</span><span class='rubyid_Pathname constant id'>Pathname</span><span class='dot token'>.</span><span class='rubyid_class_eval identifier id'>class_eval</span> <span class='rubyid_do do kw'>do</span>
|
477
|
-
<span class='rubyid_include identifier id'>include</span> <span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Pathname constant id'>Pathname</span>
|
478
|
-
<span class='rubyid_end end kw'>end</span>
|
479
|
-
<span class='rubyid_end end kw'>end</span>
|
480
|
-
|
481
|
-
<span class='rubyid_yield yield kw'>yield</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_block_given? fid id'>block_given?</span>
|
482
|
-
|
483
|
-
<span class='colon3 op'>::</span><span class='rubyid_Lazier constant id'>Lazier</span><span class='colon2 op'>::</span><span class='rubyid_Settings constant id'>Settings</span><span class='dot token'>.</span><span class='rubyid_instance identifier id'>instance</span>
|
484
|
-
<span class='rubyid_end end kw'>end</span>
|
485
|
-
</pre>
|
780
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_string'>load_string</span>
|
781
|
+
<span class='op'>::</span><span class='const'>String</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
|
782
|
+
<span class='id identifier rubyid_include'>include</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>String</span>
|
783
|
+
<span class='kw'>end</span>
|
784
|
+
<span class='kw'>end</span></pre>
|
486
785
|
</td>
|
487
786
|
</tr>
|
488
787
|
</table>
|
@@ -530,17 +829,16 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
530
829
|
<pre class="lines">
|
531
830
|
|
532
831
|
|
533
|
-
|
534
|
-
|
535
|
-
|
832
|
+
28
|
833
|
+
29
|
834
|
+
30</pre>
|
536
835
|
</td>
|
537
836
|
<td>
|
538
|
-
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line
|
837
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 28</span>
|
539
838
|
|
540
|
-
<span class='
|
541
|
-
<span class='
|
542
|
-
<span class='
|
543
|
-
</pre>
|
839
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_settings'>settings</span>
|
840
|
+
<span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Settings</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
|
841
|
+
<span class='kw'>end</span></pre>
|
544
842
|
</td>
|
545
843
|
</tr>
|
546
844
|
</table>
|
@@ -551,9 +849,9 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
551
849
|
</div>
|
552
850
|
|
553
851
|
<div id="footer">
|
554
|
-
Generated on
|
852
|
+
Generated on Mon Jan 28 20:23:45 2013 by
|
555
853
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
556
|
-
0.8.
|
854
|
+
0.8.3 (ruby-1.9.3).
|
557
855
|
</div>
|
558
856
|
|
559
857
|
</body>
|