Class: FloatRule

Inherits:
Rule
  • Object
show all
Defined in:
lib/rules/FloatRule.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFloatRule

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

#maxObject

Returns the value of attribute max.



4
5
6
# File 'lib/rules/FloatRule.rb', line 4

def max
  @max
end

#minObject

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

#trainObject



15
16
17
# File 'lib/rules/FloatRule.rb', line 15

def train()
  # TODO.
end

#validateObject



19
20
21
22
# File 'lib/rules/FloatRule.rb', line 19

def validate()
  # TODO.
  true
end