Class: ReadXls::Evaluator::Boolean

Inherits:
Object
  • Object
show all
Defined in:
lib/read_xls/evaluator/boolean.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Boolean

Returns a new instance of Boolean.



6
7
8
# File 'lib/read_xls/evaluator/boolean.rb', line 6

def initialize(value)
  self.value = value
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/read_xls/evaluator/boolean.rb', line 4

def value
  @value
end

Instance Method Details

#evaluateObject



10
11
12
# File 'lib/read_xls/evaluator/boolean.rb', line 10

def evaluate
  value == 1
end