doc/OmgValidator/Validators/DecimalValidator.html in omg_validator-0.0.6.2 vs doc/OmgValidator/Validators/DecimalValidator.html in omg_validator-0.0.7
- old
+ new
@@ -4,11 +4,11 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
Class: OmgValidator::Validators::DecimalValidator
- — Documentation by YARD 0.7.4
+ — Documentation by YARD 0.7.5
</title>
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
@@ -100,24 +100,27 @@
Checks whether input is a valid floating point number
</p>
<p>
validates :total_value, decimal: true
</p>
+<p>
+matches: 10.00, -23.12, 9.99, 1.9002302 does not match: 123, 99, -23, 1,000
+</p>
</div>
</div>
<div class="tags">
</div>
-
-
+
+
<h2>
Instance Method Summary
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
</h2>
@@ -166,20 +169,20 @@
<tr>
<td>
<pre class="lines">
-7
-8
-9
10
11
12
-13</pre>
+13
+14
+15
+16</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/omg_validator/validators/decimal_validator.rb', line 7</span>
+ <pre class="code"><span class="info file"># File 'lib/omg_validator/validators/decimal_validator.rb', line 10</span>
<span class='kw'>def</span> <span class='id identifier rubyid_validate_each'>validate_each</span><span class='lparen'>(</span><span class='id identifier rubyid_record'>record</span><span class='comma'>,</span> <span class='id identifier rubyid_attribute'>attribute</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
<span class='id identifier rubyid_reg'>reg</span> <span class='op'>=</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^[\-+]?[0-9]+\.[0-9]+$</span><span class='regexp_end'>/</span></span>
<span class='kw'>unless</span> <span class='id identifier rubyid_reg'>reg</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
@@ -194,12 +197,12 @@
</div>
</div>
<div id="footer">
- Generated on Fri Mar 30 11:50:31 2012 by
+ Generated on Thu Apr 5 00:05:42 2012 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
- 0.7.4 (ruby-1.9.2).
+ 0.7.5 (ruby-1.9.2).
</div>
</body>
</html>
\ No newline at end of file