lazier 4.1.0 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis-gemfile +2 -2
- data/CHANGELOG.md +4 -0
- data/Gemfile +6 -6
- data/README.md +1 -1
- data/doc/Lazier.html +185 -70
- data/doc/Lazier/Boolean.html +5 -5
- data/doc/Lazier/Configuration.html +78 -16
- data/doc/Lazier/DateTime.html +13 -12
- data/doc/Lazier/DateTime/ClassMethods.html +6 -6
- data/doc/Lazier/Exceptions.html +3 -3
- data/doc/Lazier/Exceptions/Debug.html +3 -3
- data/doc/Lazier/Exceptions/MissingTranslation.html +9 -9
- data/doc/Lazier/Exceptions/TranslationExceptionHandler.html +73 -9
- data/doc/Lazier/Hash.html +7 -7
- data/doc/Lazier/I18n.html +41 -41
- data/doc/Lazier/Math.html +4 -4
- data/doc/Lazier/Math/ClassMethods.html +7 -7
- data/doc/Lazier/Object.html +29 -26
- data/doc/Lazier/Pathname.html +11 -12
- data/doc/Lazier/Settings.html +63 -63
- data/doc/Lazier/String.html +122 -21
- data/doc/Lazier/TimeZone.html +128 -32
- data/doc/Lazier/TimeZone/ClassMethods.html +5 -5
- data/doc/Lazier/Version.html +4 -4
- data/doc/_index.html +4 -4
- data/doc/class_list.html +5 -1
- data/doc/file.README.html +4 -4
- data/doc/file_list.html +5 -1
- data/doc/frames.html +1 -1
- data/doc/index.html +4 -4
- data/doc/js/full_list.js +4 -1
- data/doc/method_list.html +91 -81
- data/doc/top-level-namespace.html +3 -3
- data/lib/lazier.rb +18 -17
- data/lib/lazier/boolean.rb +1 -1
- data/lib/lazier/configuration.rb +6 -6
- data/lib/lazier/datetime.rb +11 -11
- data/lib/lazier/exceptions.rb +7 -2
- data/lib/lazier/hash.rb +4 -4
- data/lib/lazier/i18n.rb +7 -7
- data/lib/lazier/math.rb +3 -3
- data/lib/lazier/object.rb +17 -15
- data/lib/lazier/pathname.rb +3 -5
- data/lib/lazier/settings.rb +10 -10
- data/lib/lazier/string.rb +10 -1
- data/lib/lazier/timezone.rb +23 -25
- data/lib/lazier/version.rb +1 -1
- data/spec/lazier/string_spec.rb +14 -0
- data/spec/spec_helper.rb +1 -8
- metadata +2 -2
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.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -130,7 +130,7 @@
|
|
130
130
|
|
131
131
|
|
132
132
|
|
133
|
-
<span class="summary_desc"><div class='inline'><p>Converts the boolean to
|
133
|
+
<span class="summary_desc"><div class='inline'><p>Converts the boolean to a integer.</p>
|
134
134
|
</div></span>
|
135
135
|
|
136
136
|
</li>
|
@@ -180,7 +180,7 @@
|
|
180
180
|
|
181
181
|
</h3><div class="docstring">
|
182
182
|
<div class="discussion">
|
183
|
-
<p>Converts the boolean to
|
183
|
+
<p>Converts the boolean to a integer.</p>
|
184
184
|
|
185
185
|
|
186
186
|
</div>
|
@@ -288,9 +288,9 @@
|
|
288
288
|
</div>
|
289
289
|
|
290
290
|
<div id="footer">
|
291
|
-
Generated on
|
291
|
+
Generated on Sun Nov 2 11:08:44 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.6 (ruby-2.1.3).
|
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.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -143,7 +143,7 @@
|
|
143
143
|
|
144
144
|
|
145
145
|
|
146
|
-
<span class="summary_desc"><div class='inline'
|
146
|
+
<span class="summary_desc"><div class='inline'>
|
147
147
|
</div></span>
|
148
148
|
|
149
149
|
</li>
|
@@ -227,22 +227,44 @@
|
|
227
227
|
|
228
228
|
</li>
|
229
229
|
|
230
|
+
<li>
|
231
|
+
|
232
|
+
<span class='name'>block</span>
|
233
|
+
|
234
|
+
|
235
|
+
<span class='type'>(<tt>Proc</tt>)</span>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
—
|
240
|
+
<div class='inline'><p>A block to use for default values.</p>
|
241
|
+
</div>
|
242
|
+
|
243
|
+
</li>
|
244
|
+
|
230
245
|
</ul>
|
231
246
|
|
232
247
|
|
248
|
+
<p class="tag_title">See Also:</p>
|
249
|
+
<ul class="see">
|
250
|
+
|
251
|
+
<li>Hash#initialize</li>
|
252
|
+
|
253
|
+
</ul>
|
254
|
+
|
233
255
|
</div><table class="source_code">
|
234
256
|
<tr>
|
235
257
|
<td>
|
236
258
|
<pre class="lines">
|
237
259
|
|
238
260
|
|
239
|
-
12
|
240
|
-
13
|
241
261
|
14
|
242
|
-
15
|
262
|
+
15
|
263
|
+
16
|
264
|
+
17</pre>
|
243
265
|
</td>
|
244
266
|
<td>
|
245
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/configuration.rb', line
|
267
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/configuration.rb', line 14</span>
|
246
268
|
|
247
269
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_attributes'>attributes</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
248
270
|
<span class='ivar'>@i18n</span> <span class='op'>=</span> <span class='const'>Lazier</span><span class='op'>::</span><span class='const'>I18n</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
|
@@ -271,14 +293,7 @@
|
|
271
293
|
|
272
294
|
</h3><div class="docstring">
|
273
295
|
<div class="discussion">
|
274
|
-
|
275
|
-
Options are as follows:</p>
|
276
|
-
|
277
|
-
<ul>
|
278
|
-
<li>:default - Specify a default value for this property.</li>
|
279
|
-
<li>:required - Specify the value as required for this property, to raise an error if a value is unset in a new or existing configuration.</li>
|
280
|
-
<li>:readonly - Specify if the property is readonly, which means that it can only defined during creation of the configuration.</li>
|
281
|
-
</ul>
|
296
|
+
|
282
297
|
|
283
298
|
|
284
299
|
</div>
|
@@ -321,6 +336,53 @@ Options are as follows:</p>
|
|
321
336
|
|
322
337
|
</ul>
|
323
338
|
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
<p class="tag_title">Options Hash (<tt>options</tt>):</p>
|
345
|
+
<ul class="option">
|
346
|
+
|
347
|
+
<li>
|
348
|
+
<span class="name">:default</span>
|
349
|
+
<span class="type">(<tt><span class='object_link'><a href="Boolean.html" title="Lazier::Boolean (module)">Boolean</a></span></tt>)</span>
|
350
|
+
<span class="default">
|
351
|
+
|
352
|
+
</span>
|
353
|
+
|
354
|
+
— <div class='inline'><p>Specify a default value for this property.</p>
|
355
|
+
</div>
|
356
|
+
|
357
|
+
</li>
|
358
|
+
|
359
|
+
<li>
|
360
|
+
<span class="name">:required</span>
|
361
|
+
<span class="type">(<tt><span class='object_link'><a href="Boolean.html" title="Lazier::Boolean (module)">Boolean</a></span></tt>)</span>
|
362
|
+
<span class="default">
|
363
|
+
|
364
|
+
</span>
|
365
|
+
|
366
|
+
— <div class='inline'><p>Specify the value as required for this property, to raise an error if a value is unset in a new or existing configuration.</p>
|
367
|
+
</div>
|
368
|
+
|
369
|
+
</li>
|
370
|
+
|
371
|
+
<li>
|
372
|
+
<span class="name">:readonly</span>
|
373
|
+
<span class="type">(<tt><span class='object_link'><a href="Boolean.html" title="Lazier::Boolean (module)">Boolean</a></span></tt>)</span>
|
374
|
+
<span class="default">
|
375
|
+
|
376
|
+
</span>
|
377
|
+
|
378
|
+
— <div class='inline'><p>Specify if the property is readonly, which means that it can only defined during creation of the configuration.</p>
|
379
|
+
</div>
|
380
|
+
|
381
|
+
</li>
|
382
|
+
|
383
|
+
</ul>
|
384
|
+
|
385
|
+
|
324
386
|
|
325
387
|
</div><table class="source_code">
|
326
388
|
<tr>
|
@@ -360,9 +422,9 @@ Options are as follows:</p>
|
|
360
422
|
</div>
|
361
423
|
|
362
424
|
<div id="footer">
|
363
|
-
Generated on
|
425
|
+
Generated on Sun Nov 2 11:08:45 2014 by
|
364
426
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
365
|
-
0.8.7.
|
427
|
+
0.8.7.6 (ruby-2.1.3).
|
366
428
|
</div>
|
367
429
|
|
368
430
|
</body>
|
data/doc/Lazier/DateTime.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Lazier::DateTime
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -186,7 +186,7 @@
|
|
186
186
|
|
187
187
|
|
188
188
|
|
189
|
-
<span class="summary_desc"><div class='inline'><p>Returns the current month number with leading
|
189
|
+
<span class="summary_desc"><div class='inline'><p>Returns the current month number with a leading zero if needed.</p>
|
190
190
|
</div></span>
|
191
191
|
|
192
192
|
</li>
|
@@ -227,7 +227,7 @@
|
|
227
227
|
<span class='name'>format</span>
|
228
228
|
|
229
229
|
|
230
|
-
<span class='type'>(<tt><span class='object_link'><a href="String.html" title="Lazier::String (module)">String</a></span
|
230
|
+
<span class='type'>(<tt><span class='object_link'><a href="String.html" title="Lazier::String (module)">String</a></span>|NilClass</tt>)</span>
|
231
231
|
|
232
232
|
|
233
233
|
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
@@ -334,10 +334,11 @@
|
|
334
334
|
<div class="discussion">
|
335
335
|
<p>Returns the number of months passed between the beginning of the base year and the current date.</p>
|
336
336
|
|
337
|
-
<p
|
338
|
-
|
339
|
-
|
340
|
-
|
337
|
+
<p>Example:</p>
|
338
|
+
|
339
|
+
<pre class="code ruby"><code class="ruby"><span class='const'>DateTime</span><span class='period'>.</span><span class='id identifier rubyid_civil'>civil</span><span class='lparen'>(</span><span class='int'>2013</span><span class='comma'>,</span> <span class='int'>6</span><span class='comma'>,</span> <span class='int'>1</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_in_months'>in_months</span><span class='lparen'>(</span><span class='int'>2011</span><span class='rparen'>)</span>
|
340
|
+
<span class='comment'># => 18
|
341
|
+
</span></code></pre>
|
341
342
|
|
342
343
|
|
343
344
|
</div>
|
@@ -351,7 +352,7 @@ DateTime.civil(2013, 6, 1).in_months(2011)
|
|
351
352
|
<span class='name'>base</span>
|
352
353
|
|
353
354
|
|
354
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="Lazier::DateTime (module)">DateTime</a></span
|
355
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="Lazier::DateTime (module)">DateTime</a></span>|NilClass</tt>)</span>
|
355
356
|
|
356
357
|
|
357
358
|
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
@@ -415,7 +416,7 @@ DateTime.civil(2013, 6, 1).in_months(2011)
|
|
415
416
|
|
416
417
|
</h3><div class="docstring">
|
417
418
|
<div class="discussion">
|
418
|
-
<p>Returns the current month number with leading
|
419
|
+
<p>Returns the current month number with a leading zero if needed.</p>
|
419
420
|
|
420
421
|
|
421
422
|
</div>
|
@@ -433,7 +434,7 @@ DateTime.civil(2013, 6, 1).in_months(2011)
|
|
433
434
|
|
434
435
|
|
435
436
|
—
|
436
|
-
<div class='inline'><p>The current month number with leading
|
437
|
+
<div class='inline'><p>The current month number with leading zero if needed.</p>
|
437
438
|
</div>
|
438
439
|
|
439
440
|
</li>
|
@@ -466,9 +467,9 @@ DateTime.civil(2013, 6, 1).in_months(2011)
|
|
466
467
|
</div>
|
467
468
|
|
468
469
|
<div id="footer">
|
469
|
-
Generated on
|
470
|
+
Generated on Sun Nov 2 11:08:44 2014 by
|
470
471
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
471
|
-
0.8.7.
|
472
|
+
0.8.7.6 (ruby-2.1.3).
|
472
473
|
</div>
|
473
474
|
|
474
475
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Lazier::DateTime::ClassMethods
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -453,7 +453,7 @@
|
|
453
453
|
<span class='name'>year</span>
|
454
454
|
|
455
455
|
|
456
|
-
<span class='type'>(<tt>Fixnum</tt>)</span>
|
456
|
+
<span class='type'>(<tt>Fixnum|NilClass</tt>)</span>
|
457
457
|
|
458
458
|
|
459
459
|
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
@@ -791,7 +791,7 @@ Date.years(1, true, 2010, true)
|
|
791
791
|
<span class='name'>reference</span>
|
792
792
|
|
793
793
|
|
794
|
-
<span class='type'>(<tt>Fixnum</tt>)</span>
|
794
|
+
<span class='type'>(<tt>Fixnum|NilClass</tt>)</span>
|
795
795
|
|
796
796
|
|
797
797
|
|
@@ -811,7 +811,7 @@ Date.years(1, true, 2010, true)
|
|
811
811
|
|
812
812
|
|
813
813
|
—
|
814
|
-
<div class='inline'><p>
|
814
|
+
<div class='inline'><p>Whether to return years in hashes with <code>:value</code> and <code>label</code> keys.</p>
|
815
815
|
</div>
|
816
816
|
|
817
817
|
</li>
|
@@ -864,9 +864,9 @@ Date.years(1, true, 2010, true)
|
|
864
864
|
</div>
|
865
865
|
|
866
866
|
<div id="footer">
|
867
|
-
Generated on
|
867
|
+
Generated on Sun Nov 2 11:08:44 2014 by
|
868
868
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
869
|
-
0.8.7.
|
869
|
+
0.8.7.6 (ruby-2.1.3).
|
870
870
|
</div>
|
871
871
|
|
872
872
|
</body>
|
data/doc/Lazier/Exceptions.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Lazier::Exceptions
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -116,9 +116,9 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Sun Nov 2 11:08:45 2014 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
|
-
0.8.7.
|
121
|
+
0.8.7.6 (ruby-2.1.3).
|
122
122
|
</div>
|
123
123
|
|
124
124
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: Lazier::Exceptions::Debug
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -124,9 +124,9 @@
|
|
124
124
|
</div>
|
125
125
|
|
126
126
|
<div id="footer">
|
127
|
-
Generated on
|
127
|
+
Generated on Sun Nov 2 11:08:45 2014 by
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
129
|
-
0.8.7.
|
129
|
+
0.8.7.6 (ruby-2.1.3).
|
130
130
|
</div>
|
131
131
|
|
132
132
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: Lazier::Exceptions::MissingTranslation
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -198,7 +198,7 @@
|
|
198
198
|
<span class='name'>message</span>
|
199
199
|
|
200
200
|
|
201
|
-
<span class='type'>(<tt><span class='object_link'><a href="../String.html" title="Lazier::String (module)">String</a></span
|
201
|
+
<span class='type'>(<tt><span class='object_link'><a href="../String.html" title="Lazier::String (module)">String</a></span>|NilClass</tt>)</span>
|
202
202
|
|
203
203
|
|
204
204
|
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
@@ -219,13 +219,13 @@
|
|
219
219
|
<pre class="lines">
|
220
220
|
|
221
221
|
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
222
|
+
32
|
223
|
+
33
|
224
|
+
34
|
225
|
+
35</pre>
|
226
226
|
</td>
|
227
227
|
<td>
|
228
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/exceptions.rb', line
|
228
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/exceptions.rb', line 32</span>
|
229
229
|
|
230
230
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_locale'>locale</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
231
231
|
<span class='id identifier rubyid_locale'>locale</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='id identifier rubyid_locale'>locale</span> <span class='kw'>if</span> <span class='id identifier rubyid_message'>message</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
@@ -242,9 +242,9 @@
|
|
242
242
|
</div>
|
243
243
|
|
244
244
|
<div id="footer">
|
245
|
-
Generated on
|
245
|
+
Generated on Sun Nov 2 11:08:45 2014 by
|
246
246
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
247
|
-
0.8.7.
|
247
|
+
0.8.7.6 (ruby-2.1.3).
|
248
248
|
</div>
|
249
249
|
|
250
250
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Lazier::Exceptions::TranslationExceptionHandler
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -143,7 +143,7 @@
|
|
143
143
|
|
144
144
|
|
145
145
|
|
146
|
-
<span class="summary_desc"><div class='inline'><p
|
146
|
+
<span class="summary_desc"><div class='inline'><p>Implements the ExceptionHandler interface for I18n.</p>
|
147
147
|
</div></span>
|
148
148
|
|
149
149
|
</li>
|
@@ -170,13 +170,77 @@
|
|
170
170
|
|
171
171
|
</h3><div class="docstring">
|
172
172
|
<div class="discussion">
|
173
|
-
<p
|
173
|
+
<p>Implements the ExceptionHandler interface for I18n.</p>
|
174
174
|
|
175
175
|
|
176
176
|
</div>
|
177
177
|
</div>
|
178
178
|
<div class="tags">
|
179
|
+
<p class="tag_title">Parameters:</p>
|
180
|
+
<ul class="param">
|
179
181
|
|
182
|
+
<li>
|
183
|
+
|
184
|
+
<span class='name'>exception</span>
|
185
|
+
|
186
|
+
|
187
|
+
<span class='type'>(<tt>Exception</tt>)</span>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
—
|
192
|
+
<div class='inline'><p>The error to raise.</p>
|
193
|
+
</div>
|
194
|
+
|
195
|
+
</li>
|
196
|
+
|
197
|
+
<li>
|
198
|
+
|
199
|
+
<span class='name'>locale</span>
|
200
|
+
|
201
|
+
|
202
|
+
<span class='type'>(<tt><span class='object_link'><a href="../String.html" title="Lazier::String (module)">String</a></span>|Symbol</tt>)</span>
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
—
|
207
|
+
<div class='inline'><p>The locale that was requested.</p>
|
208
|
+
</div>
|
209
|
+
|
210
|
+
</li>
|
211
|
+
|
212
|
+
<li>
|
213
|
+
|
214
|
+
<span class='name'>key</span>
|
215
|
+
|
216
|
+
|
217
|
+
<span class='type'>(<tt><span class='object_link'><a href="../String.html" title="Lazier::String (module)">String</a></span>|Symbol</tt>)</span>
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
—
|
222
|
+
<div class='inline'><p>The key that was requested.</p>
|
223
|
+
</div>
|
224
|
+
|
225
|
+
</li>
|
226
|
+
|
227
|
+
<li>
|
228
|
+
|
229
|
+
<span class='name'>options</span>
|
230
|
+
|
231
|
+
|
232
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Hash.html" title="Lazier::Hash (module)">Hash</a></span></tt>)</span>
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
—
|
237
|
+
<div class='inline'><p>The options passed to the translation.</p>
|
238
|
+
</div>
|
239
|
+
|
240
|
+
</li>
|
241
|
+
|
242
|
+
</ul>
|
243
|
+
|
180
244
|
|
181
245
|
</div><table class="source_code">
|
182
246
|
<tr>
|
@@ -184,12 +248,12 @@
|
|
184
248
|
<pre class="lines">
|
185
249
|
|
186
250
|
|
187
|
-
|
188
|
-
|
189
|
-
|
251
|
+
21
|
252
|
+
22
|
253
|
+
23</pre>
|
190
254
|
</td>
|
191
255
|
<td>
|
192
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/exceptions.rb', line
|
256
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/exceptions.rb', line 21</span>
|
193
257
|
|
194
258
|
<span class='kw'>def</span> <span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_exception'>exception</span><span class='comma'>,</span> <span class='id identifier rubyid_locale'>locale</span><span class='comma'>,</span> <span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
195
259
|
<span class='id identifier rubyid_exception'>exception</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'>I18n</span><span class='op'>::</span><span class='const'>MissingTranslation</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_raise'>raise</span><span class='lparen'>(</span><span class='id identifier rubyid_exception'>exception</span><span class='period'>.</span><span class='id identifier rubyid_to_exception'>to_exception</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='kw'>super</span>
|
@@ -204,9 +268,9 @@
|
|
204
268
|
</div>
|
205
269
|
|
206
270
|
<div id="footer">
|
207
|
-
Generated on
|
271
|
+
Generated on Sun Nov 2 11:08:45 2014 by
|
208
272
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
209
|
-
0.8.7.
|
273
|
+
0.8.7.6 (ruby-2.1.3).
|
210
274
|
</div>
|
211
275
|
|
212
276
|
</body>
|