lazier 3.5.1 → 3.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/.rubocop.yml +29 -0
- data/.travis-gemfile +1 -1
- data/.travis.yml +2 -2
- data/CHANGELOG.md +5 -0
- data/Gemfile +3 -3
- data/README.md +1 -1
- data/doc/Lazier.html +56 -68
- data/doc/Lazier/Boolean.html +4 -4
- data/doc/Lazier/Configuration.html +5 -5
- data/doc/Lazier/DateTime.html +29 -29
- data/doc/Lazier/DateTime/ClassMethods.html +136 -124
- data/doc/Lazier/Exceptions.html +4 -4
- data/doc/Lazier/Exceptions/Debug.html +4 -4
- data/doc/Lazier/Exceptions/MissingTranslation.html +4 -4
- data/doc/Lazier/Hash.html +144 -32
- data/doc/Lazier/I18n.html +109 -103
- data/doc/Lazier/Localizer.html +4 -4
- data/doc/Lazier/Math.html +4 -4
- data/doc/Lazier/Math/ClassMethods.html +4 -4
- data/doc/Lazier/Object.html +357 -243
- data/doc/Lazier/Pathname.html +4 -4
- data/doc/Lazier/Settings.html +58 -34
- data/doc/Lazier/String.html +6 -6
- data/doc/Lazier/TimeZone.html +86 -86
- data/doc/Lazier/TimeZone/ClassMethods.html +66 -68
- data/doc/Lazier/Version.html +5 -5
- data/doc/_index.html +5 -5
- data/doc/css/style.css +1 -0
- data/doc/file.README.html +4 -4
- data/doc/frames.html +1 -1
- data/doc/index.html +4 -4
- data/doc/method_list.html +103 -91
- data/doc/top-level-namespace.html +4 -4
- data/lazier.gemspec +2 -2
- data/lib/lazier.rb +59 -22
- data/lib/lazier/boolean.rb +1 -1
- data/lib/lazier/configuration.rb +21 -20
- data/lib/lazier/datetime.rb +127 -101
- data/lib/lazier/hash.rb +20 -12
- data/lib/lazier/i18n.rb +33 -32
- data/lib/lazier/math.rb +1 -1
- data/lib/lazier/object.rb +102 -56
- data/lib/lazier/pathname.rb +1 -1
- data/lib/lazier/settings.rb +4 -2
- data/lib/lazier/string.rb +3 -3
- data/lib/lazier/version.rb +1 -1
- data/spec/lazier/datetime_spec.rb +1 -1
- data/spec/lazier/hash_spec.rb +2 -2
- data/spec/lazier/object_spec.rb +16 -0
- data/spec/lazier/string_spec.rb +4 -10
- data/spec/lazier_spec.rb +9 -9
- data/spec/spec_helper.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5cbfe527cd0654a9bf0f8b58aa88a2d9c3b48ef
|
4
|
+
data.tar.gz: b5e03bd484dd04c10311a9b98f3294e1a8dbae35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f00f80be06aaf55726b13fc85eb6a878d4c1d35c64395d16141df19f8876a950bc2164fc62eda60a5e93ff9a121dbfb3e96708609775b944ce6e005486b90303
|
7
|
+
data.tar.gz: 3ce0e54b4c12141bbe99b2477e91d56414bb18dd41b5af7dc7b543fe4849f6d883a01cf75b805757e5483ca99cc1a18420e5f4c829cf6e818321a029fdcc2675
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
AsciiComments:
|
2
|
+
Enabled: false
|
3
|
+
|
4
|
+
Blocks:
|
5
|
+
Enabled: false
|
6
|
+
|
7
|
+
BracesAroundHashParameters:
|
8
|
+
Enabled: false
|
9
|
+
|
10
|
+
CyclomaticComplexity:
|
11
|
+
Max: 15
|
12
|
+
|
13
|
+
IndentationConsistency:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
LineLength:
|
17
|
+
Max: 160
|
18
|
+
|
19
|
+
ParameterLists:
|
20
|
+
Max: 6
|
21
|
+
|
22
|
+
SignalException:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
SpaceInsideHashLiteralBraces:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
StringLiterals:
|
29
|
+
Enabled: false
|
data/.travis-gemfile
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -10,12 +10,12 @@ gemspec
|
|
10
10
|
|
11
11
|
# Testing
|
12
12
|
gem "rspec", "~> 2.14.1"
|
13
|
-
gem "rake", "~> 10.
|
13
|
+
gem "rake", "~> 10.3.1"
|
14
14
|
|
15
15
|
# Documentation
|
16
16
|
gem "simplecov", ">= 0.8.2"
|
17
17
|
gem "coveralls", ">= 0.7.0", require: false
|
18
18
|
gem "pry", ">= 0"
|
19
19
|
gem "yard", ">= 0.8.7"
|
20
|
-
gem "kramdown", ">= 1.3.
|
21
|
-
gem "github-markup", ">= 1.
|
20
|
+
gem "kramdown", ">= 1.3.3"
|
21
|
+
gem "github-markup", ">= 1.2.1" if RUBY_ENGINE != "jruby"
|
data/README.md
CHANGED
@@ -37,4 +37,4 @@ See documentation for more informations.
|
|
37
37
|
|
38
38
|
Copyright (C) 2013 and above Shogun (shogun@cowtech.it).
|
39
39
|
|
40
|
-
Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
|
40
|
+
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.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!"
|
20
|
+
framesUrl = "frames.html#!Lazier.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -491,7 +491,8 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
491
491
|
|
492
492
|
|
493
493
|
—
|
494
|
-
<div class='inline'><p>If a <code>message</code> is provided, then the message itself plus the duration under parenthesis will be returned,
|
494
|
+
<div class='inline'><p>If a <code>message</code> is provided, then the message itself plus the duration under parenthesis will be returned,
|
495
|
+
otherwise the duration alone as a number.</p>
|
495
496
|
</div>
|
496
497
|
|
497
498
|
</li>
|
@@ -504,17 +505,17 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
504
505
|
<pre class="lines">
|
505
506
|
|
506
507
|
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
508
|
+
139
|
509
|
+
140
|
510
|
+
141
|
511
|
+
142</pre>
|
511
512
|
</td>
|
512
513
|
<td>
|
513
|
-
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line
|
514
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 139</span>
|
514
515
|
|
515
516
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_benchmark'>benchmark</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_precision'>precision</span> <span class='op'>=</span> <span class='int'>0</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
516
517
|
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='const'>Benchmark</span><span class='period'>.</span><span class='id identifier rubyid_ms'>ms</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
517
|
-
<span class='id identifier rubyid_message'>message</span> <span class='op'>?</span> <span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%s (%0.</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_precision'>precision</span><span class='embexpr_end'>}</span><span class='tstring_content'>f ms)</span><span class='tstring_end'>"</span></span
|
518
|
+
<span class='id identifier rubyid_message'>message</span> <span class='op'>?</span> <span class='id identifier rubyid_format'>format</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%s (%0.</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_precision'>precision</span><span class='embexpr_end'>}</span><span class='tstring_content'>f ms)</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='id identifier rubyid_rv'>rv</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_rv'>rv</span>
|
518
519
|
<span class='kw'>end</span></pre>
|
519
520
|
</td>
|
520
521
|
</tr>
|
@@ -551,7 +552,8 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
551
552
|
|
552
553
|
|
553
554
|
—
|
554
|
-
<div class='inline'><p>If a <code>String</code> or a <code>Symbol</code> or a <code>Class</code>, then it will be the class to instantiate.
|
555
|
+
<div class='inline'><p>If a <code>String</code> or a <code>Symbol</code> or a <code>Class</code>, then it will be the class to instantiate.
|
556
|
+
Otherwise the class of the object will returned.</p>
|
555
557
|
</div>
|
556
558
|
|
557
559
|
</li>
|
@@ -616,9 +618,6 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
616
618
|
<pre class="lines">
|
617
619
|
|
618
620
|
|
619
|
-
119
|
620
|
-
120
|
621
|
-
121
|
622
621
|
122
|
623
622
|
123
|
624
623
|
124
|
@@ -627,28 +626,15 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
627
626
|
127
|
628
627
|
128
|
629
628
|
129
|
630
|
-
130
|
631
|
-
131
|
632
|
-
132
|
633
|
-
133
|
634
|
-
134
|
635
|
-
135</pre>
|
629
|
+
130</pre>
|
636
630
|
</td>
|
637
631
|
<td>
|
638
|
-
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line
|
632
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 122</span>
|
639
633
|
|
640
634
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_find_class'>find_class</span><span class='lparen'>(</span><span class='id identifier rubyid_cls'>cls</span><span class='comma'>,</span> <span class='id identifier rubyid_scope'>scope</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>::%CLASS%</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_only_in_scope'>only_in_scope</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
641
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_cls'>cls</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>String</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_cls'>cls</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Symbol</span><span class='rparen'>)</span>
|
642
|
-
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='
|
643
|
-
<span class='id identifier
|
644
|
-
|
645
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_only_in_scope'>only_in_scope</span> <span class='kw'>then</span>
|
646
|
-
<span class='id identifier rubyid_cls'>cls</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^::</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='comment'># Mark only search only inside scope
|
647
|
-
</span> <span class='kw'>else</span>
|
648
|
-
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_search_class'>search_class</span><span class='lparen'>(</span><span class='id identifier rubyid_cls'>cls</span><span class='rparen'>)</span> <span class='comment'># Search outside scope
|
649
|
-
</span> <span class='kw'>end</span>
|
650
|
-
|
651
|
-
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_search_class'>search_class</span><span class='lparen'>(</span><span class='id identifier rubyid_scope'>scope</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>%CLASS%|[@%$?]</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='id identifier rubyid_cls'>cls</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_rv'>rv</span> <span class='op'>&&</span> <span class='id identifier rubyid_cls'>cls</span> <span class='op'>!~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^::</span><span class='regexp_end'>/</span></span> <span class='op'>&&</span> <span class='id identifier rubyid_scope'>scope</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='comment'># Search inside scope
|
635
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_cls'>cls</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>String</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_cls'>cls</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Symbol</span><span class='rparen'>)</span>
|
636
|
+
<span class='id identifier rubyid_rv'>rv</span><span class='comma'>,</span> <span class='id identifier rubyid_cls'>cls</span> <span class='op'>=</span> <span class='id identifier rubyid_perform_initial_class_search'>perform_initial_class_search</span><span class='lparen'>(</span><span class='id identifier rubyid_cls'>cls</span><span class='comma'>,</span> <span class='id identifier rubyid_only_in_scope'>only_in_scope</span><span class='rparen'>)</span>
|
637
|
+
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_search_class_inside_scope'>search_class_inside_scope</span><span class='lparen'>(</span><span class='id identifier rubyid_rv'>rv</span><span class='comma'>,</span> <span class='id identifier rubyid_cls'>cls</span><span class='comma'>,</span> <span class='id identifier rubyid_scope'>scope</span><span class='rparen'>)</span> <span class='comment'># Search inside scope
|
652
638
|
</span> <span class='id identifier rubyid_rv'>rv</span> <span class='op'>||</span> <span class='id identifier rubyid_raise'>raise</span><span class='lparen'>(</span><span class='const'>NameError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_cls'>cls</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
653
639
|
<span class='kw'>else</span>
|
654
640
|
<span class='id identifier rubyid_cls'>cls</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Class</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_cls'>cls</span> <span class='op'>:</span> <span class='id identifier rubyid_cls'>cls</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span>
|
@@ -729,19 +715,19 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
729
715
|
<pre class="lines">
|
730
716
|
|
731
717
|
|
732
|
-
49
|
733
718
|
50
|
734
719
|
51
|
735
720
|
52
|
736
721
|
53
|
737
722
|
54
|
738
|
-
55
|
723
|
+
55
|
724
|
+
56</pre>
|
739
725
|
</td>
|
740
726
|
<td>
|
741
|
-
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line
|
727
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 50</span>
|
742
728
|
|
743
729
|
<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>
|
744
|
-
<span class='id identifier rubyid_modules'>modules</span> <span class='op'>=</span> <span class='id identifier rubyid_what'>what</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='op'>?</span> <span class='id identifier rubyid_what'>what</span><span class='period'>.</span><span class='id identifier rubyid_flatten'>flatten</span><span class='period'>.</span><span class='id identifier rubyid_uniq'>uniq</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:to_s</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='
|
730
|
+
<span class='id identifier rubyid_modules'>modules</span> <span class='op'>=</span> <span class='id identifier rubyid_what'>what</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='op'>?</span> <span class='id identifier rubyid_what'>what</span><span class='period'>.</span><span class='id identifier rubyid_flatten'>flatten</span><span class='period'>.</span><span class='id identifier rubyid_uniq'>uniq</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:to_s</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='qwords_beg'>%w(</span><span class='tstring_content'>object</span><span class='words_sep'> </span><span class='tstring_content'>boolean</span><span class='words_sep'> </span><span class='tstring_content'>string</span><span class='words_sep'> </span><span class='tstring_content'>hash</span><span class='words_sep'> </span><span class='tstring_content'>datetime</span><span class='words_sep'> </span><span class='tstring_content'>math</span><span class='words_sep'> </span><span class='tstring_content'>pathname</span><span class='words_sep'>)</span>
|
745
731
|
<span class='id identifier rubyid_modules'>modules</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_w'>w</span><span class='op'>|</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='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
746
732
|
|
747
733
|
<span class='kw'>yield</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
@@ -777,7 +763,6 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
777
763
|
<pre class="lines">
|
778
764
|
|
779
765
|
|
780
|
-
63
|
781
766
|
64
|
782
767
|
65
|
783
768
|
66
|
@@ -787,10 +772,11 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
787
772
|
70
|
788
773
|
71
|
789
774
|
72
|
790
|
-
73
|
775
|
+
73
|
776
|
+
74</pre>
|
791
777
|
</td>
|
792
778
|
<td>
|
793
|
-
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line
|
779
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 64</span>
|
794
780
|
|
795
781
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_boolean'>load_boolean</span>
|
796
782
|
<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>
|
@@ -833,18 +819,18 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
833
819
|
<pre class="lines">
|
834
820
|
|
835
821
|
|
836
|
-
91
|
837
|
-
92
|
838
822
|
93
|
839
823
|
94
|
840
824
|
95
|
841
825
|
96
|
842
826
|
97
|
843
827
|
98
|
844
|
-
99
|
828
|
+
99
|
829
|
+
100
|
830
|
+
101</pre>
|
845
831
|
</td>
|
846
832
|
<td>
|
847
|
-
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line
|
833
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 93</span>
|
848
834
|
|
849
835
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_datetime'>load_datetime</span>
|
850
836
|
<span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_load_object'>load_object</span>
|
@@ -885,14 +871,16 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
885
871
|
<pre class="lines">
|
886
872
|
|
887
873
|
|
888
|
-
81
|
889
874
|
82
|
890
|
-
83
|
875
|
+
83
|
876
|
+
84
|
877
|
+
85</pre>
|
891
878
|
</td>
|
892
879
|
<td>
|
893
|
-
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line
|
880
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 82</span>
|
894
881
|
|
895
882
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_hash'>load_hash</span>
|
883
|
+
<span class='id identifier rubyid_clean_hash_compact'>clean_hash_compact</span>
|
896
884
|
<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='lbrace'>{</span> <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> <span class='rbrace'>}</span>
|
897
885
|
<span class='kw'>end</span></pre>
|
898
886
|
</td>
|
@@ -925,12 +913,12 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
925
913
|
<pre class="lines">
|
926
914
|
|
927
915
|
|
928
|
-
|
929
|
-
|
930
|
-
|
916
|
+
88
|
917
|
+
89
|
918
|
+
90</pre>
|
931
919
|
</td>
|
932
920
|
<td>
|
933
|
-
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line
|
921
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 88</span>
|
934
922
|
|
935
923
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_hash_method_access'>load_hash_method_access</span>
|
936
924
|
<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='lbrace'>{</span> <span class='id identifier rubyid_include'>include</span> <span class='const'>Hashie</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>MethodAccess</span> <span class='rbrace'>}</span>
|
@@ -965,13 +953,13 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
965
953
|
<pre class="lines">
|
966
954
|
|
967
955
|
|
968
|
-
102
|
969
|
-
103
|
970
956
|
104
|
971
|
-
105
|
957
|
+
105
|
958
|
+
106
|
959
|
+
107</pre>
|
972
960
|
</td>
|
973
961
|
<td>
|
974
|
-
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line
|
962
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 104</span>
|
975
963
|
|
976
964
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_math'>load_math</span>
|
977
965
|
<span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_load_object'>load_object</span>
|
@@ -1007,12 +995,12 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
1007
995
|
<pre class="lines">
|
1008
996
|
|
1009
997
|
|
1010
|
-
58
|
1011
998
|
59
|
1012
|
-
60
|
999
|
+
60
|
1000
|
+
61</pre>
|
1013
1001
|
</td>
|
1014
1002
|
<td>
|
1015
|
-
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line
|
1003
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 59</span>
|
1016
1004
|
|
1017
1005
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_object'>load_object</span>
|
1018
1006
|
<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='lbrace'>{</span> <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> <span class='rbrace'>}</span>
|
@@ -1047,13 +1035,13 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
1047
1035
|
<pre class="lines">
|
1048
1036
|
|
1049
1037
|
|
1050
|
-
108
|
1051
|
-
109
|
1052
1038
|
110
|
1053
|
-
111
|
1039
|
+
111
|
1040
|
+
112
|
1041
|
+
113</pre>
|
1054
1042
|
</td>
|
1055
1043
|
<td>
|
1056
|
-
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line
|
1044
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 110</span>
|
1057
1045
|
|
1058
1046
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_pathname'>load_pathname</span>
|
1059
1047
|
<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>
|
@@ -1089,12 +1077,12 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
1089
1077
|
<pre class="lines">
|
1090
1078
|
|
1091
1079
|
|
1092
|
-
76
|
1093
1080
|
77
|
1094
|
-
78
|
1081
|
+
78
|
1082
|
+
79</pre>
|
1095
1083
|
</td>
|
1096
1084
|
<td>
|
1097
|
-
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line
|
1085
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 77</span>
|
1098
1086
|
|
1099
1087
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_string'>load_string</span>
|
1100
1088
|
<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='lbrace'>{</span> <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> <span class='rbrace'>}</span>
|
@@ -1146,12 +1134,12 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
1146
1134
|
<pre class="lines">
|
1147
1135
|
|
1148
1136
|
|
1149
|
-
32
|
1150
1137
|
33
|
1151
|
-
34
|
1138
|
+
34
|
1139
|
+
35</pre>
|
1152
1140
|
</td>
|
1153
1141
|
<td>
|
1154
|
-
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line
|
1142
|
+
<pre class="code"><span class="info file"># File 'lib/lazier.rb', line 33</span>
|
1155
1143
|
|
1156
1144
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_settings'>settings</span>
|
1157
1145
|
<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>
|
@@ -1166,9 +1154,9 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
1166
1154
|
</div>
|
1167
1155
|
|
1168
1156
|
<div id="footer">
|
1169
|
-
Generated on Sun
|
1157
|
+
Generated on Sun Apr 27 17:16:41 2014 by
|
1170
1158
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1171
|
-
0.8.7.
|
1159
|
+
0.8.7.4 (ruby-2.1.0).
|
1172
1160
|
</div>
|
1173
1161
|
|
1174
1162
|
</body>
|
data/doc/Lazier/Boolean.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Lazier::Boolean
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!"
|
20
|
+
framesUrl = "../frames.html#!Lazier/Boolean.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -288,9 +288,9 @@
|
|
288
288
|
</div>
|
289
289
|
|
290
290
|
<div id="footer">
|
291
|
-
Generated on Sun
|
291
|
+
Generated on Sun Apr 27 17:16:42 2014 by
|
292
292
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
293
|
-
0.8.7.
|
293
|
+
0.8.7.4 (ruby-2.1.0).
|
294
294
|
</div>
|
295
295
|
|
296
296
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Lazier::Configuration
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!"
|
20
|
+
framesUrl = "../frames.html#!Lazier/Configuration.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -368,7 +368,7 @@ Options are as follows:</p>
|
|
368
368
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_property'>property</span><span class='lparen'>(</span><span class='id identifier rubyid_property_name'>property_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
369
369
|
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_property_name'>property_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
370
370
|
|
371
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:readonly</span><span class='rbracket'>]</span>
|
371
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:readonly</span><span class='rbracket'>]</span>
|
372
372
|
<span class='id identifier rubyid_class_eval'>class_eval</span> <span class='heredoc_beg'><<-ACCESSOR</span>
|
373
373
|
<span class='tstring_content'> def </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_property_name'>property_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>=(_)
|
374
374
|
raise ArgumentError.new(@lazier_i18n.configuration.readonly("</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_property_name'>property_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>", "</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>"))
|
@@ -386,9 +386,9 @@ Options are as follows:</p>
|
|
386
386
|
</div>
|
387
387
|
|
388
388
|
<div id="footer">
|
389
|
-
Generated on Sun
|
389
|
+
Generated on Sun Apr 27 17:16:43 2014 by
|
390
390
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
391
|
-
0.8.7.
|
391
|
+
0.8.7.4 (ruby-2.1.0).
|
392
392
|
</div>
|
393
393
|
|
394
394
|
</body>
|