Class: FloatRule
Instance Attribute Summary collapse
-
#max ⇒ Object
Returns the value of attribute max.
-
#min ⇒ Object
Returns the value of attribute min.
Instance Method Summary collapse
-
#initialize ⇒ FloatRule
constructor
A new instance of FloatRule.
- #load(value) ⇒ Object
- #train ⇒ Object
- #validate ⇒ Object
Constructor Details
#initialize ⇒ FloatRule
Returns a new instance of FloatRule.
6 7 8 9 |
# File 'lib/rules/FloatRule.rb', line 6 def initialize() @min = nil @max = nil end |
Instance Attribute Details
#max ⇒ Object
Returns the value of attribute max.
4 5 6 |
# File 'lib/rules/FloatRule.rb', line 4 def max @max end |
#min ⇒ Object
Returns the value of attribute min.
3 4 5 |
# File 'lib/rules/FloatRule.rb', line 3 def min @min end |
Instance Method Details
#load(value) ⇒ Object
11 12 13 |
# File 'lib/rules/FloatRule.rb', line 11 def load(value) @values << value end |
#train ⇒ Object
15 16 17 |
# File 'lib/rules/FloatRule.rb', line 15 def train() # TODO. end |
#validate ⇒ Object
19 20 21 22 |
# File 'lib/rules/FloatRule.rb', line 19 def validate() # TODO. true end |