lazier 2.3.1 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/Lazier.html +34 -305
- data/doc/Lazier/Boolean.html +1 -1
- data/doc/Lazier/DateTime.html +1 -1
- data/doc/Lazier/DateTime/ClassMethods.html +1 -1
- data/doc/Lazier/Exceptions.html +1 -1
- data/doc/Lazier/Exceptions/Dump.html +1 -1
- data/doc/Lazier/Hash.html +1 -1
- data/doc/Lazier/I18n.html +404 -0
- data/doc/Lazier/Math.html +1 -1
- data/doc/Lazier/Math/ClassMethods.html +1 -1
- data/doc/Lazier/Object.html +1 -1
- data/doc/Lazier/Pathname.html +1 -1
- data/doc/Lazier/Settings.html +242 -77
- data/doc/Lazier/String.html +1 -1
- data/doc/Lazier/TimeZone.html +1 -1
- data/doc/Lazier/TimeZone/ClassMethods.html +1 -1
- data/doc/Lazier/Version.html +1 -1
- data/doc/_index.html +23 -8
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +73 -57
- data/doc/top-level-namespace.html +1 -1
- data/lib/lazier.rb +1 -27
- data/lib/lazier/i18n.rb +42 -0
- data/lib/lazier/settings.rb +25 -6
- data/lib/lazier/version.rb +2 -2
- data/spec/lazier/datetime_spec.rb +4 -4
- data/spec/lazier/i18n_spec.rb +63 -0
- data/spec/lazier/settings_spec.rb +2 -0
- data/spec/lazier_spec.rb +0 -34
- metadata +5 -1
data/doc/Lazier/Math.html
CHANGED
@@ -121,7 +121,7 @@
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on Tue Jan 29
|
124
|
+
Generated on Tue Jan 29 20:37:32 2013 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
126
|
0.8.3 (ruby-1.9.3).
|
127
127
|
</div>
|
@@ -321,7 +321,7 @@
|
|
321
321
|
</div>
|
322
322
|
|
323
323
|
<div id="footer">
|
324
|
-
Generated on Tue Jan 29
|
324
|
+
Generated on Tue Jan 29 20:37:32 2013 by
|
325
325
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
326
326
|
0.8.3 (ruby-1.9.3).
|
327
327
|
</div>
|
data/doc/Lazier/Object.html
CHANGED
@@ -1586,7 +1586,7 @@
|
|
1586
1586
|
</div>
|
1587
1587
|
|
1588
1588
|
<div id="footer">
|
1589
|
-
Generated on Tue Jan 29
|
1589
|
+
Generated on Tue Jan 29 20:37:33 2013 by
|
1590
1590
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1591
1591
|
0.8.3 (ruby-1.9.3).
|
1592
1592
|
</div>
|
data/doc/Lazier/Pathname.html
CHANGED
@@ -216,7 +216,7 @@
|
|
216
216
|
</div>
|
217
217
|
|
218
218
|
<div id="footer">
|
219
|
-
Generated on Tue Jan 29
|
219
|
+
Generated on Tue Jan 29 20:37:33 2013 by
|
220
220
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
221
221
|
0.8.3 (ruby-1.9.3).
|
222
222
|
</div>
|
data/doc/Lazier/Settings.html
CHANGED
@@ -90,11 +90,15 @@
|
|
90
90
|
|
91
91
|
|
92
92
|
|
93
|
+
<dt class="r2">Includes:</dt>
|
94
|
+
<dd class="r2"><span class='object_link'><a href="I18n.html" title="Lazier::I18n (module)">I18n</a></span></dd>
|
95
|
+
|
96
|
+
|
93
97
|
|
94
98
|
|
95
99
|
|
96
|
-
<dt class="
|
97
|
-
<dd class="
|
100
|
+
<dt class="r1 last">Defined in:</dt>
|
101
|
+
<dd class="r1 last">lib/lazier/settings.rb</dd>
|
98
102
|
|
99
103
|
</dl>
|
100
104
|
<div class="clear"></div>
|
@@ -217,6 +221,32 @@
|
|
217
221
|
<span class="summary_desc"><div class='inline'><p>Settings for numbers formatting.</p>
|
218
222
|
</div></span>
|
219
223
|
|
224
|
+
</li>
|
225
|
+
|
226
|
+
|
227
|
+
<li class="public ">
|
228
|
+
<span class="summary_signature">
|
229
|
+
|
230
|
+
<a href="#i18n-instance_method" title="#i18n (instance method)">- (R18n::Translation) <strong>i18n</strong> </a>
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
</span>
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
<span class="summary_desc"><div class='inline'><p>The translation object.</p>
|
248
|
+
</div></span>
|
249
|
+
|
220
250
|
</li>
|
221
251
|
|
222
252
|
|
@@ -287,6 +317,29 @@
|
|
287
317
|
<span class="summary_desc"><div class='inline'><p>Initializes a new settings object.</p>
|
288
318
|
</div></span>
|
289
319
|
|
320
|
+
</li>
|
321
|
+
|
322
|
+
|
323
|
+
<li class="public ">
|
324
|
+
<span class="summary_signature">
|
325
|
+
|
326
|
+
<a href="#setup-instance_method" title="#setup (instance method)">- (Object) <strong>setup</strong> </a>
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
</span>
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
<span class="summary_desc"><div class='inline'><p>Setups the current instance.</p>
|
341
|
+
</div></span>
|
342
|
+
|
290
343
|
</li>
|
291
344
|
|
292
345
|
|
@@ -385,6 +438,17 @@
|
|
385
438
|
</ul>
|
386
439
|
|
387
440
|
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="I18n.html" title="Lazier::I18n (module)">I18n</a></span></h3>
|
451
|
+
<p class="inherited"><span class='object_link'><a href="I18n.html#i18n_setup-instance_method" title="Lazier::I18n#i18n_setup (method)">#i18n_setup</a></span></p>
|
388
452
|
<div id="constructor_details" class="method_details_list">
|
389
453
|
<h2>Constructor Details</h2>
|
390
454
|
|
@@ -413,21 +477,17 @@
|
|
413
477
|
<pre class="lines">
|
414
478
|
|
415
479
|
|
416
|
-
30
|
417
|
-
31
|
418
|
-
32
|
419
|
-
33
|
420
480
|
34
|
421
|
-
35
|
481
|
+
35
|
482
|
+
36
|
483
|
+
37</pre>
|
422
484
|
</td>
|
423
485
|
<td>
|
424
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line
|
486
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line 34</span>
|
425
487
|
|
426
488
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
427
|
-
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier
|
428
|
-
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier
|
429
|
-
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup_date_formats'>setup_date_formats</span>
|
430
|
-
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup_date_names'>setup_date_names</span>
|
489
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_i18n_setup'>i18n_setup</span><span class='lparen'>(</span><span class='symbol'>:lazier</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
|
490
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup'>setup</span>
|
431
491
|
<span class='kw'>end</span></pre>
|
432
492
|
</td>
|
433
493
|
</tr>
|
@@ -483,12 +543,12 @@
|
|
483
543
|
<pre class="lines">
|
484
544
|
|
485
545
|
|
486
|
-
|
487
|
-
|
488
|
-
|
546
|
+
16
|
547
|
+
17
|
548
|
+
18</pre>
|
489
549
|
</td>
|
490
550
|
<td>
|
491
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line
|
551
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line 16</span>
|
492
552
|
|
493
553
|
<span class='kw'>def</span> <span class='id identifier rubyid_boolean_names'>boolean_names</span>
|
494
554
|
<span class='ivar'>@boolean_names</span>
|
@@ -542,12 +602,12 @@
|
|
542
602
|
<pre class="lines">
|
543
603
|
|
544
604
|
|
545
|
-
|
546
|
-
|
547
|
-
|
605
|
+
16
|
606
|
+
17
|
607
|
+
18</pre>
|
548
608
|
</td>
|
549
609
|
<td>
|
550
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line
|
610
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line 16</span>
|
551
611
|
|
552
612
|
<span class='kw'>def</span> <span class='id identifier rubyid_date_formats'>date_formats</span>
|
553
613
|
<span class='ivar'>@date_formats</span>
|
@@ -601,12 +661,12 @@
|
|
601
661
|
<pre class="lines">
|
602
662
|
|
603
663
|
|
604
|
-
|
605
|
-
|
606
|
-
|
664
|
+
16
|
665
|
+
17
|
666
|
+
18</pre>
|
607
667
|
</td>
|
608
668
|
<td>
|
609
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line
|
669
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line 16</span>
|
610
670
|
|
611
671
|
<span class='kw'>def</span> <span class='id identifier rubyid_date_names'>date_names</span>
|
612
672
|
<span class='ivar'>@date_names</span>
|
@@ -660,12 +720,12 @@
|
|
660
720
|
<pre class="lines">
|
661
721
|
|
662
722
|
|
663
|
-
|
664
|
-
|
665
|
-
|
723
|
+
16
|
724
|
+
17
|
725
|
+
18</pre>
|
666
726
|
</td>
|
667
727
|
<td>
|
668
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line
|
728
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line 16</span>
|
669
729
|
|
670
730
|
<span class='kw'>def</span> <span class='id identifier rubyid_format_number'>format_number</span>
|
671
731
|
<span class='ivar'>@format_number</span>
|
@@ -675,6 +735,65 @@
|
|
675
735
|
</table>
|
676
736
|
</div>
|
677
737
|
|
738
|
+
|
739
|
+
<span id="i18n=-instance_method"></span>
|
740
|
+
<div class="method_details ">
|
741
|
+
<h3 class="signature " id="i18n-instance_method">
|
742
|
+
|
743
|
+
- (<tt>R18n::Translation</tt>) <strong>i18n</strong>
|
744
|
+
|
745
|
+
|
746
|
+
|
747
|
+
|
748
|
+
|
749
|
+
</h3><div class="docstring">
|
750
|
+
<div class="discussion">
|
751
|
+
<p>The translation object.</p>
|
752
|
+
|
753
|
+
|
754
|
+
</div>
|
755
|
+
</div>
|
756
|
+
<div class="tags">
|
757
|
+
|
758
|
+
<p class="tag_title">Returns:</p>
|
759
|
+
<ul class="return">
|
760
|
+
|
761
|
+
<li>
|
762
|
+
|
763
|
+
|
764
|
+
<span class='type'>(<tt>R18n::Translation</tt>)</span>
|
765
|
+
|
766
|
+
|
767
|
+
|
768
|
+
—
|
769
|
+
<div class='inline'><p>the current value of i18n</p>
|
770
|
+
</div>
|
771
|
+
|
772
|
+
</li>
|
773
|
+
|
774
|
+
</ul>
|
775
|
+
|
776
|
+
</div><table class="source_code">
|
777
|
+
<tr>
|
778
|
+
<td>
|
779
|
+
<pre class="lines">
|
780
|
+
|
781
|
+
|
782
|
+
16
|
783
|
+
17
|
784
|
+
18</pre>
|
785
|
+
</td>
|
786
|
+
<td>
|
787
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line 16</span>
|
788
|
+
|
789
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_i18n'>i18n</span>
|
790
|
+
<span class='ivar'>@i18n</span>
|
791
|
+
<span class='kw'>end</span></pre>
|
792
|
+
</td>
|
793
|
+
</tr>
|
794
|
+
</table>
|
795
|
+
</div>
|
796
|
+
|
678
797
|
</div>
|
679
798
|
|
680
799
|
|
@@ -745,13 +864,13 @@
|
|
745
864
|
<pre class="lines">
|
746
865
|
|
747
866
|
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
867
|
+
28
|
868
|
+
29
|
869
|
+
30
|
870
|
+
31</pre>
|
752
871
|
</td>
|
753
872
|
<td>
|
754
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line
|
873
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line 28</span>
|
755
874
|
|
756
875
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span><span class='lparen'>(</span><span class='id identifier rubyid_force'>force</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
757
876
|
<span class='ivar'>@instance</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='id identifier rubyid_force'>force</span>
|
@@ -769,7 +888,53 @@
|
|
769
888
|
|
770
889
|
|
771
890
|
<div class="method_details first">
|
772
|
-
<h3 class="signature first" id="
|
891
|
+
<h3 class="signature first" id="setup-instance_method">
|
892
|
+
|
893
|
+
- (<tt><span class='object_link'><a href="Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>setup</strong>
|
894
|
+
|
895
|
+
|
896
|
+
|
897
|
+
|
898
|
+
|
899
|
+
</h3><div class="docstring">
|
900
|
+
<div class="discussion">
|
901
|
+
<p>Setups the current instance.</p>
|
902
|
+
|
903
|
+
|
904
|
+
</div>
|
905
|
+
</div>
|
906
|
+
<div class="tags">
|
907
|
+
|
908
|
+
|
909
|
+
</div><table class="source_code">
|
910
|
+
<tr>
|
911
|
+
<td>
|
912
|
+
<pre class="lines">
|
913
|
+
|
914
|
+
|
915
|
+
40
|
916
|
+
41
|
917
|
+
42
|
918
|
+
43
|
919
|
+
44
|
920
|
+
45</pre>
|
921
|
+
</td>
|
922
|
+
<td>
|
923
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line 40</span>
|
924
|
+
|
925
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_setup'>setup</span>
|
926
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup_format_number'>setup_format_number</span>
|
927
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup_boolean_names'>setup_boolean_names</span>
|
928
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup_date_formats'>setup_date_formats</span>
|
929
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup_date_names'>setup_date_names</span>
|
930
|
+
<span class='kw'>end</span></pre>
|
931
|
+
</td>
|
932
|
+
</tr>
|
933
|
+
</table>
|
934
|
+
</div>
|
935
|
+
|
936
|
+
<div class="method_details ">
|
937
|
+
<h3 class="signature " id="setup_boolean_names-instance_method">
|
773
938
|
|
774
939
|
- (<tt><span class='object_link'><a href="Hash.html" title="Lazier::Hash (module)">Hash</a></span></tt>) <strong>setup_boolean_names</strong>(true_name = nil, false_name = nil)
|
775
940
|
|
@@ -855,18 +1020,18 @@
|
|
855
1020
|
<pre class="lines">
|
856
1021
|
|
857
1022
|
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
1023
|
+
74
|
1024
|
+
75
|
1025
|
+
76
|
1026
|
+
77
|
1027
|
+
78</pre>
|
863
1028
|
</td>
|
864
1029
|
<td>
|
865
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line
|
1030
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line 74</span>
|
866
1031
|
|
867
1032
|
<span class='kw'>def</span> <span class='id identifier rubyid_setup_boolean_names'>setup_boolean_names</span><span class='lparen'>(</span><span class='id identifier rubyid_true_name'>true_name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_false_name'>false_name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
868
|
-
<span class='id identifier rubyid_true_name'>true_name</span> <span class='op'>||=</span> <span class='
|
869
|
-
<span class='id identifier rubyid_false_name'>false_name</span> <span class='op'>||=</span> <span class='
|
1033
|
+
<span class='id identifier rubyid_true_name'>true_name</span> <span class='op'>||=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_boolean'>boolean</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
1034
|
+
<span class='id identifier rubyid_false_name'>false_name</span> <span class='op'>||=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_boolean'>boolean</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span>
|
870
1035
|
<span class='ivar'>@boolean_names</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='kw'>true</span> <span class='op'>=></span> <span class='id identifier rubyid_true_name'>true_name</span><span class='comma'>,</span> <span class='kw'>false</span> <span class='op'>=></span> <span class='id identifier rubyid_false_name'>false_name</span><span class='rbrace'>}</span>
|
871
1036
|
<span class='kw'>end</span></pre>
|
872
1037
|
</td>
|
@@ -961,25 +1126,25 @@
|
|
961
1126
|
<pre class="lines">
|
962
1127
|
|
963
1128
|
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
1129
|
+
86
|
1130
|
+
87
|
1131
|
+
88
|
1132
|
+
89
|
1133
|
+
90
|
1134
|
+
91
|
1135
|
+
92
|
1136
|
+
93
|
1137
|
+
94
|
1138
|
+
95
|
1139
|
+
96
|
1140
|
+
97
|
1141
|
+
98
|
1142
|
+
99
|
1143
|
+
100
|
1144
|
+
101</pre>
|
980
1145
|
</td>
|
981
1146
|
<td>
|
982
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line
|
1147
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line 86</span>
|
983
1148
|
|
984
1149
|
<span class='kw'>def</span> <span class='id identifier rubyid_setup_date_formats'>setup_date_formats</span><span class='lparen'>(</span><span class='id identifier rubyid_formats'>formats</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_replace'>replace</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
985
1150
|
<span class='id identifier rubyid_formats'>formats</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='label'>ct_date:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%Y-%m-%d</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>ct_time:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%H:%M:%S</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>ct_date_time:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%F %T</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>ct_iso_8601:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%FT%T%z</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span> <span class='kw'>if</span> <span class='id identifier rubyid_formats'>formats</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
|
@@ -1127,23 +1292,23 @@
|
|
1127
1292
|
<pre class="lines">
|
1128
1293
|
|
1129
1294
|
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1295
|
+
113
|
1296
|
+
114
|
1297
|
+
115
|
1298
|
+
116
|
1299
|
+
117
|
1300
|
+
118
|
1301
|
+
119
|
1302
|
+
120</pre>
|
1138
1303
|
</td>
|
1139
1304
|
<td>
|
1140
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line
|
1305
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line 113</span>
|
1141
1306
|
|
1142
1307
|
<span class='kw'>def</span> <span class='id identifier rubyid_setup_date_names'>setup_date_names</span><span class='lparen'>(</span><span class='id identifier rubyid_long_months'>long_months</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_short_months'>short_months</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_long_days'>long_days</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_short_days'>short_days</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1143
|
-
<span class='id identifier rubyid_long_months'>long_months</span> <span class='op'>=</span> <span class='
|
1144
|
-
<span class='id identifier rubyid_short_months'>short_months</span> <span class='op'>=</span> <span class='
|
1145
|
-
<span class='id identifier rubyid_long_days'>long_days</span> <span class='op'>=</span> <span class='
|
1146
|
-
<span class='id identifier rubyid_short_days'>short_days</span> <span class='op'>=</span> <span class='
|
1308
|
+
<span class='id identifier rubyid_long_months'>long_months</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_long_months'>long_months</span> <span class='kw'>if</span> <span class='id identifier rubyid_long_months'>long_months</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
|
1309
|
+
<span class='id identifier rubyid_short_months'>short_months</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_short_months'>short_months</span> <span class='kw'>if</span> <span class='id identifier rubyid_short_months'>short_months</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
|
1310
|
+
<span class='id identifier rubyid_long_days'>long_days</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_long_days'>long_days</span> <span class='kw'>if</span> <span class='id identifier rubyid_long_days'>long_days</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
|
1311
|
+
<span class='id identifier rubyid_short_days'>short_days</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_short_days'>short_days</span> <span class='kw'>if</span> <span class='id identifier rubyid_short_days'>short_days</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
|
1147
1312
|
|
1148
1313
|
<span class='ivar'>@date_names</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='label'>long_months:</span> <span class='id identifier rubyid_long_months'>long_months</span><span class='comma'>,</span> <span class='label'>short_months:</span> <span class='id identifier rubyid_short_months'>short_months</span><span class='comma'>,</span> <span class='label'>long_days:</span> <span class='id identifier rubyid_long_days'>long_days</span><span class='comma'>,</span> <span class='label'>short_days:</span> <span class='id identifier rubyid_short_days'>short_days</span> <span class='rbrace'>}</span>
|
1149
1314
|
<span class='kw'>end</span></pre>
|
@@ -1273,12 +1438,12 @@
|
|
1273
1438
|
<pre class="lines">
|
1274
1439
|
|
1275
1440
|
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1441
|
+
64
|
1442
|
+
65
|
1443
|
+
66</pre>
|
1279
1444
|
</td>
|
1280
1445
|
<td>
|
1281
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line
|
1446
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/settings.rb', line 64</span>
|
1282
1447
|
|
1283
1448
|
<span class='kw'>def</span> <span class='id identifier rubyid_setup_format_number'>setup_format_number</span><span class='lparen'>(</span><span class='id identifier rubyid_prec'>prec</span> <span class='op'>=</span> <span class='int'>2</span><span class='comma'>,</span> <span class='id identifier rubyid_decimal_separator'>decimal_separator</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_add_string'>add_string</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_k_separator'>k_separator</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>,</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1284
1449
|
<span class='ivar'>@format_number</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='label'>prec:</span> <span class='id identifier rubyid_prec'>prec</span><span class='comma'>,</span> <span class='label'>decimal_separator:</span> <span class='id identifier rubyid_decimal_separator'>decimal_separator</span><span class='comma'>,</span> <span class='label'>add_string:</span> <span class='id identifier rubyid_add_string'>add_string</span><span class='comma'>,</span> <span class='label'>k_separator:</span> <span class='id identifier rubyid_k_separator'>k_separator</span><span class='rbrace'>}</span>
|
@@ -1293,7 +1458,7 @@
|
|
1293
1458
|
</div>
|
1294
1459
|
|
1295
1460
|
<div id="footer">
|
1296
|
-
Generated on Tue Jan 29
|
1461
|
+
Generated on Tue Jan 29 20:37:33 2013 by
|
1297
1462
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1298
1463
|
0.8.3 (ruby-1.9.3).
|
1299
1464
|
</div>
|