lazier 3.2.7 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -969,7 +969,7 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
969
969
  </div>
970
970
 
971
971
  <div id="footer">
972
- Generated on Sat Jul 20 12:56:18 2013 by
972
+ Generated on Sat Jul 20 13:22:19 2013 by
973
973
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
974
974
  0.8.6.2 (ruby-1.9.3).
975
975
  </div>
@@ -288,7 +288,7 @@
288
288
  </div>
289
289
 
290
290
  <div id="footer">
291
- Generated on Sat Jul 20 12:56:19 2013 by
291
+ Generated on Sat Jul 20 13:22:20 2013 by
292
292
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
293
293
  0.8.6.2 (ruby-1.9.3).
294
294
  </div>
@@ -386,7 +386,7 @@ Options are as follows:</p>
386
386
  </div>
387
387
 
388
388
  <div id="footer">
389
- Generated on Sat Jul 20 12:56:20 2013 by
389
+ Generated on Sat Jul 20 13:22:21 2013 by
390
390
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
391
391
  0.8.6.2 (ruby-1.9.3).
392
392
  </div>
@@ -721,7 +721,7 @@ DateTime.civil(2013, 6, 1).in_months(2011)
721
721
  </div>
722
722
 
723
723
  <div id="footer">
724
- Generated on Sat Jul 20 12:56:19 2013 by
724
+ Generated on Sat Jul 20 13:22:20 2013 by
725
725
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
726
726
  0.8.6.2 (ruby-1.9.3).
727
727
  </div>
@@ -1542,7 +1542,7 @@ Date.years(1, true, 2010, true)
1542
1542
  </div>
1543
1543
 
1544
1544
  <div id="footer">
1545
- Generated on Sat Jul 20 12:56:19 2013 by
1545
+ Generated on Sat Jul 20 13:22:20 2013 by
1546
1546
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1547
1547
  0.8.6.2 (ruby-1.9.3).
1548
1548
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Sat Jul 20 12:56:20 2013 by
119
+ Generated on Sat Jul 20 13:22:21 2013 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.8.6.2 (ruby-1.9.3).
122
122
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Sat Jul 20 12:56:20 2013 by
127
+ Generated on Sat Jul 20 13:22:21 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.6.2 (ruby-1.9.3).
130
130
  </div>
@@ -238,7 +238,7 @@
238
238
  </div>
239
239
 
240
240
  <div id="footer">
241
- Generated on Sat Jul 20 12:56:20 2013 by
241
+ Generated on Sat Jul 20 13:22:21 2013 by
242
242
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
243
243
  0.8.6.2 (ruby-1.9.3).
244
244
  </div>
@@ -105,13 +105,114 @@
105
105
 
106
106
 
107
107
 
108
+
109
+ <h2>
110
+ Instance Method Summary
111
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
112
+ </h2>
113
+
114
+ <ul class="summary">
115
+
116
+ <li class="public ">
117
+ <span class="summary_signature">
118
+
119
+ <a href="#ensure_access-instance_method" title="#ensure_access (instance method)">- (Object) <strong>ensure_access</strong>(access) </a>
120
+
121
+
122
+
123
+ </span>
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+ <span class="summary_desc"><div class='inline'><p>Makes sure that the keys of the hash are accessible in the desired way.</p>
134
+ </div></span>
135
+
136
+ </li>
137
+
138
+
139
+ </ul>
140
+
141
+
142
+
143
+
144
+
145
+ <div id="instance_method_details" class="method_details_list">
146
+ <h2>Instance Method Details</h2>
147
+
148
+
149
+ <div class="method_details first">
150
+ <h3 class="signature first" id="ensure_access-instance_method">
151
+
152
+ - (<tt><span class='object_link'><a href="Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>ensure_access</strong>(access)
153
+
154
+
155
+
156
+
157
+
158
+ </h3><div class="docstring">
159
+ <div class="discussion">
160
+ <p>Makes sure that the keys of the hash are accessible in the desired way.</p>
161
+
108
162
 
163
+ </div>
164
+ </div>
165
+ <div class="tags">
166
+ <p class="tag_title">Parameters:</p>
167
+ <ul class="param">
109
168
 
169
+ <li>
170
+
171
+ <span class='name'>access</span>
172
+
173
+
174
+ <span class='type'>(<tt>Symbol|NilClass</tt>)</span>
175
+
176
+
177
+
178
+ &mdash;
179
+ <div class='inline'><p>The requested access for the keys. Can be <code>:strings</code>, <code>:symbols</code> or <code>:indifferent</code>. If <code>nil</code> the keys are not modified.</p>
180
+ </div>
181
+
182
+ </li>
183
+
184
+ </ul>
185
+
186
+
187
+ </div><table class="source_code">
188
+ <tr>
189
+ <td>
190
+ <pre class="lines">
191
+
192
+
193
+ 15
194
+ 16
195
+ 17
196
+ 18</pre>
197
+ </td>
198
+ <td>
199
+ <pre class="code"><span class="info file"># File 'lib/lazier/hash.rb', line 15</span>
200
+
201
+ <span class='kw'>def</span> <span class='id identifier rubyid_ensure_access'>ensure_access</span><span class='lparen'>(</span><span class='id identifier rubyid_access'>access</span><span class='rparen'>)</span>
202
+ <span class='id identifier rubyid_method'>method</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='label'>strings:</span> <span class='symbol'>:stringify_keys</span><span class='comma'>,</span> <span class='label'>symbols:</span> <span class='symbol'>:symbolize_keys</span><span class='comma'>,</span> <span class='label'>indifferent:</span> <span class='symbol'>:with_indifferent_access</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_access'>access</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
203
+ <span class='id identifier rubyid_method'>method</span> <span class='op'>?</span> <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='kw'>self</span>
204
+ <span class='kw'>end</span></pre>
205
+ </td>
206
+ </tr>
207
+ </table>
208
+ </div>
209
+
210
+ </div>
110
211
 
111
212
  </div>
112
213
 
113
214
  <div id="footer">
114
- Generated on Sat Jul 20 12:56:18 2013 by
215
+ Generated on Sat Jul 20 13:22:19 2013 by
115
216
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
116
217
  0.8.6.2 (ruby-1.9.3).
117
218
  </div>
@@ -1056,7 +1056,7 @@
1056
1056
  </div>
1057
1057
 
1058
1058
  <div id="footer">
1059
- Generated on Sat Jul 20 12:56:18 2013 by
1059
+ Generated on Sat Jul 20 13:22:19 2013 by
1060
1060
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1061
1061
  0.8.6.2 (ruby-1.9.3).
1062
1062
  </div>
@@ -536,7 +536,7 @@
536
536
  </div>
537
537
 
538
538
  <div id="footer">
539
- Generated on Sat Jul 20 12:56:20 2013 by
539
+ Generated on Sat Jul 20 13:22:21 2013 by
540
540
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
541
541
  0.8.6.2 (ruby-1.9.3).
542
542
  </div>
@@ -121,7 +121,7 @@
121
121
  </div>
122
122
 
123
123
  <div id="footer">
124
- Generated on Sat Jul 20 12:56:18 2013 by
124
+ Generated on Sat Jul 20 13:22:19 2013 by
125
125
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
126
126
  0.8.6.2 (ruby-1.9.3).
127
127
  </div>
@@ -321,7 +321,7 @@
321
321
  </div>
322
322
 
323
323
  <div id="footer">
324
- Generated on Sat Jul 20 12:56:18 2013 by
324
+ Generated on Sat Jul 20 13:22:20 2013 by
325
325
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
326
326
  0.8.6.2 (ruby-1.9.3).
327
327
  </div>
@@ -233,7 +233,7 @@
233
233
  <li class="public ">
234
234
  <span class="summary_signature">
235
235
 
236
- <a href="#ensure_hash-instance_method" title="#ensure_hash (instance method)">- (Hash) <strong>ensure_hash</strong>(default_value = {}, sanitizer = nil) </a>
236
+ <a href="#ensure_hash-instance_method" title="#ensure_hash (instance method)">- (Hash) <strong>ensure_hash</strong>(access = nil, default_value = nil, sanitizer = nil) </a>
237
237
 
238
238
 
239
239
 
@@ -834,7 +834,7 @@
834
834
  <div class="method_details ">
835
835
  <h3 class="signature " id="ensure_hash-instance_method">
836
836
 
837
- - (<tt><span class='object_link'><a href="Hash.html" title="Lazier::Hash (module)">Hash</a></span></tt>) <strong>ensure_hash</strong>(default_value = {}, sanitizer = nil)
837
+ - (<tt><span class='object_link'><a href="Hash.html" title="Lazier::Hash (module)">Hash</a></span></tt>) <strong>ensure_hash</strong>(access = nil, default_value = nil, sanitizer = nil)
838
838
 
839
839
 
840
840
 
@@ -851,19 +851,36 @@
851
851
  <p class="tag_title">Parameters:</p>
852
852
  <ul class="param">
853
853
 
854
+ <li>
855
+
856
+ <span class='name'>access</span>
857
+
858
+
859
+ <span class='type'>(<tt>Symbol|NilClass</tt>)</span>
860
+
861
+
862
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
863
+
864
+
865
+ &mdash;
866
+ <div class='inline'><p>The requested access for the keys of the returned object. Can be <code>:strings</code>, <code>:symbols</code> or <code>indifferent</code>. If <code>nil</code> the keys are not modified.</p>
867
+ </div>
868
+
869
+ </li>
870
+
854
871
  <li>
855
872
 
856
873
  <span class='name'>default_value</span>
857
874
 
858
875
 
859
- <span class='type'>(<tt><span class='object_link'><a href="Hash.html" title="Lazier::Hash (module)">Hash</a></span>|<span class='object_link'><a href="" title="Lazier::Object (module)">Object</a></span>|NilClass</tt>)</span>
876
+ <span class='type'>(<tt><span class='object_link'><a href="Hash.html" title="Lazier::Hash (module)">Hash</a></span>|<span class='object_link'><a href="String.html" title="Lazier::String (module)">String</a></span>|Symbol|NilClass</tt>)</span>
860
877
 
861
878
 
862
- <em class="default">(defaults to: <tt>{}</tt>)</em>
879
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
863
880
 
864
881
 
865
882
  &mdash;
866
- <div class='inline'><p>The default value to use. If it is an <code>Hash</code>, it is returned as value otherwise it is used to build as a key to build an hash with the current object as only value (everything but strings and symbols are mapped to <code>key</code>).</p>
883
+ <div class='inline'><p>The default value to use. If it is an <code>Hash</code>, it is returned as value otherwise it is used to build as a key to build an hash with the current object as only value (everything but strings and symbols are mapped to <code>key</code>). Passing <code>nil</code> is equal to pass an empty Hash.</p>
867
884
  </div>
868
885
 
869
886
  </li>
@@ -911,7 +928,6 @@
911
928
  <pre class="lines">
912
929
 
913
930
 
914
- 96
915
931
  97
916
932
  98
917
933
  99
@@ -929,12 +945,17 @@
929
945
  111
930
946
  112
931
947
  113
932
- 114</pre>
948
+ 114
949
+ 115
950
+ 116
951
+ 117</pre>
933
952
  </td>
934
953
  <td>
935
- <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 96</span>
954
+ <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 97</span>
955
+
956
+ <span class='kw'>def</span> <span class='id identifier rubyid_ensure_hash'>ensure_hash</span><span class='lparen'>(</span><span class='id identifier rubyid_access'>access</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_default_value'>default_value</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_sanitizer'>sanitizer</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
957
+ <span class='id identifier rubyid_default_value'>default_value</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='kw'>if</span> <span class='id identifier rubyid_default_value'>default_value</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
936
958
 
937
- <span class='kw'>def</span> <span class='id identifier rubyid_ensure_hash'>ensure_hash</span><span class='lparen'>(</span><span class='id identifier rubyid_default_value'>default_value</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_sanitizer'>sanitizer</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
938
959
  <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='kw'>if</span> <span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Hash</span><span class='rparen'>)</span> <span class='kw'>then</span>
939
960
  <span class='kw'>self</span>
940
961
  <span class='kw'>elsif</span> <span class='id identifier rubyid_default_value'>default_value</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'>Hash</span><span class='rparen'>)</span> <span class='kw'>then</span>
@@ -945,13 +966,13 @@
945
966
  <span class='kw'>end</span>
946
967
 
947
968
  <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span> <span class='op'>||</span> <span class='id identifier rubyid_sanitizer'>sanitizer</span> <span class='kw'>then</span>
948
- <span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_inject'>inject</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_h'>h</span><span class='comma'>,</span> <span class='lparen'>(</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span><span class='op'>|</span>
969
+ <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_inject'>inject</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_h'>h</span><span class='comma'>,</span> <span class='lparen'>(</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span><span class='op'>|</span>
949
970
  <span class='id identifier rubyid_h'>h</span><span class='lbracket'>[</span><span class='id identifier rubyid_k'>k</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_block_given?'>block_given?</span> <span class='op'>?</span> <span class='kw'>yield</span><span class='lparen'>(</span><span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_sanitizer'>sanitizer</span><span class='rparen'>)</span>
950
971
  <span class='id identifier rubyid_h'>h</span>
951
972
  <span class='rbrace'>}</span>
952
- <span class='kw'>else</span>
953
- <span class='id identifier rubyid_rv'>rv</span>
954
973
  <span class='kw'>end</span>
974
+
975
+ <span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_ensure_access'>ensure_access</span><span class='lparen'>(</span><span class='id identifier rubyid_access'>access</span><span class='rparen'>)</span>
955
976
  <span class='kw'>end</span></pre>
956
977
  </td>
957
978
  </tr>
@@ -1133,19 +1154,19 @@
1133
1154
  <pre class="lines">
1134
1155
 
1135
1156
 
1136
- 193
1137
- 194
1138
- 195
1139
1157
  196
1140
1158
  197
1141
1159
  198
1142
1160
  199
1143
1161
  200
1144
1162
  201
1145
- 202</pre>
1163
+ 202
1164
+ 203
1165
+ 204
1166
+ 205</pre>
1146
1167
  </td>
1147
1168
  <td>
1148
- <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 193</span>
1169
+ <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 196</span>
1149
1170
 
1150
1171
  <span class='kw'>def</span> <span class='id identifier rubyid_for_debug'>for_debug</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span> <span class='op'>=</span> <span class='symbol'>:yaml</span><span class='comma'>,</span> <span class='id identifier rubyid_as_exception'>as_exception</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
1151
1172
  <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='kw'>case</span> <span class='id identifier rubyid_format'>format</span>
@@ -1249,13 +1270,13 @@
1249
1270
  <pre class="lines">
1250
1271
 
1251
1272
 
1252
- 173
1253
- 174
1254
- 175
1255
- 176</pre>
1273
+ 176
1274
+ 177
1275
+ 178
1276
+ 179</pre>
1256
1277
  </td>
1257
1278
  <td>
1258
- <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 173</span>
1279
+ <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 176</span>
1259
1280
 
1260
1281
  <span class='kw'>def</span> <span class='id identifier rubyid_format_boolean'>format_boolean</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>
1261
1282
  <span class='id identifier rubyid_settings'>settings</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_settings'>settings</span><span class='period'>.</span><span class='id identifier rubyid_boolean_names'>boolean_names</span>
@@ -1387,9 +1408,6 @@
1387
1408
  <pre class="lines">
1388
1409
 
1389
1410
 
1390
- 155
1391
- 156
1392
- 157
1393
1411
  158
1394
1412
  159
1395
1413
  160
@@ -1397,10 +1415,13 @@
1397
1415
  162
1398
1416
  163
1399
1417
  164
1400
- 165</pre>
1418
+ 165
1419
+ 166
1420
+ 167
1421
+ 168</pre>
1401
1422
  </td>
1402
1423
  <td>
1403
- <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 155</span>
1424
+ <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 158</span>
1404
1425
 
1405
1426
  <span class='kw'>def</span> <span class='id identifier rubyid_format_number'>format_number</span><span class='lparen'>(</span><span class='id identifier rubyid_precision'>precision</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_decimal_separator'>decimal_separator</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_add_string'>add_string</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_k_separator'>k_separator</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1406
1427
  <span class='kw'>if</span> <span class='id identifier rubyid_is_number?'>is_number?</span> <span class='kw'>then</span>
@@ -1515,12 +1536,12 @@
1515
1536
  <pre class="lines">
1516
1537
 
1517
1538
 
1518
- 184
1519
- 185
1520
- 186</pre>
1539
+ 187
1540
+ 188
1541
+ 189</pre>
1521
1542
  </td>
1522
1543
  <td>
1523
- <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 184</span>
1544
+ <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 187</span>
1524
1545
 
1525
1546
  <span class='kw'>def</span> <span class='id identifier rubyid_indexize'>indexize</span><span class='lparen'>(</span><span class='id identifier rubyid_length'>length</span> <span class='op'>=</span> <span class='int'>2</span><span class='comma'>,</span> <span class='id identifier rubyid_filler'>filler</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_formatter'>formatter</span> <span class='op'>=</span> <span class='symbol'>:rjust</span><span class='rparen'>)</span>
1526
1547
  <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_formatter'>formatter</span><span class='comma'>,</span> <span class='id identifier rubyid_length'>length</span><span class='comma'>,</span> <span class='id identifier rubyid_filler'>filler</span><span class='rparen'>)</span>
@@ -1825,12 +1846,12 @@
1825
1846
  <pre class="lines">
1826
1847
 
1827
1848
 
1828
- 143
1829
- 144
1830
- 145</pre>
1849
+ 146
1850
+ 147
1851
+ 148</pre>
1831
1852
  </td>
1832
1853
  <td>
1833
- <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 143</span>
1854
+ <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 146</span>
1834
1855
 
1835
1856
  <span class='kw'>def</span> <span class='id identifier rubyid_round_to_precision'>round_to_precision</span><span class='lparen'>(</span><span class='id identifier rubyid_precision'>precision</span> <span class='op'>=</span> <span class='int'>2</span><span class='rparen'>)</span>
1836
1857
  <span class='id identifier rubyid_is_number?'>is_number?</span> <span class='op'>?</span> <span class='id identifier rubyid_number_with_precision'>number_with_precision</span><span class='lparen'>(</span><span class='id identifier rubyid_to_float'>to_float</span><span class='comma'>,</span> <span class='label'>precision:</span> <span class='lbracket'>[</span><span class='id identifier rubyid_precision'>precision</span><span class='comma'>,</span> <span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_max'>max</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='kw'>nil</span>
@@ -1882,12 +1903,12 @@
1882
1903
  <pre class="lines">
1883
1904
 
1884
1905
 
1885
- 119
1886
- 120
1887
- 121</pre>
1906
+ 122
1907
+ 123
1908
+ 124</pre>
1888
1909
  </td>
1889
1910
  <td>
1890
- <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 119</span>
1911
+ <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 122</span>
1891
1912
 
1892
1913
  <span class='kw'>def</span> <span class='id identifier rubyid_to_boolean'>to_boolean</span>
1893
1914
  <span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>TrueClass</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='kw'>self</span> <span class='op'>==</span> <span class='float'>1.0</span> <span class='op'>||</span> <span class='kw'>self</span> <span class='op'>==</span> <span class='int'>1</span> <span class='op'>||</span> <span class='id identifier rubyid_ensure_string'>ensure_string</span> <span class='op'>=~</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Object</span><span class='op'>::</span><span class='const'>BOOLEAN_TRUE_MATCHER</span> <span class='op'>||</span> <span class='kw'>false</span>
@@ -1960,12 +1981,12 @@
1960
1981
  <pre class="lines">
1961
1982
 
1962
1983
 
1963
- 135
1964
- 136
1965
- 137</pre>
1984
+ 138
1985
+ 139
1986
+ 140</pre>
1966
1987
  </td>
1967
1988
  <td>
1968
- <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 135</span>
1989
+ <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 138</span>
1969
1990
 
1970
1991
  <span class='kw'>def</span> <span class='id identifier rubyid_to_float'>to_float</span><span class='lparen'>(</span><span class='id identifier rubyid_default_value'>default_value</span> <span class='op'>=</span> <span class='float'>0.0</span><span class='rparen'>)</span>
1971
1992
  <span class='id identifier rubyid_is_float?'>is_float?</span> <span class='op'>?</span> <span class='op'>::</span><span class='const'>Kernel</span><span class='period'>.</span><span class='const'>Float</span><span class='lparen'>(</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Numeric</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='kw'>self</span> <span class='op'>:</span> <span class='id identifier rubyid_normalize_number'>normalize_number</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_default_value'>default_value</span>
@@ -2038,12 +2059,12 @@
2038
2059
  <pre class="lines">
2039
2060
 
2040
2061
 
2041
- 127
2042
- 128
2043
- 129</pre>
2062
+ 130
2063
+ 131
2064
+ 132</pre>
2044
2065
  </td>
2045
2066
  <td>
2046
- <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 127</span>
2067
+ <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 130</span>
2047
2068
 
2048
2069
  <span class='kw'>def</span> <span class='id identifier rubyid_to_integer'>to_integer</span><span class='lparen'>(</span><span class='id identifier rubyid_default_value'>default_value</span> <span class='op'>=</span> <span class='int'>0</span><span class='rparen'>)</span>
2049
2070
  <span class='id identifier rubyid_to_float'>to_float</span><span class='lparen'>(</span><span class='id identifier rubyid_default_value'>default_value</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
@@ -2058,7 +2079,7 @@
2058
2079
  </div>
2059
2080
 
2060
2081
  <div id="footer">
2061
- Generated on Sat Jul 20 12:56:19 2013 by
2082
+ Generated on Sat Jul 20 13:22:20 2013 by
2062
2083
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2063
2084
  0.8.6.2 (ruby-1.9.3).
2064
2085
  </div>