Class: Arrow::Slicer::LessCondition

Inherits:
Condition
  • Object
show all
Defined in:
lib/arrow/slicer.rb

Instance Method Summary collapse

Methods inherited from Condition

#&, #^, #|

Constructor Details

#initialize(column, value) ⇒ LessCondition

Returns a new instance of LessCondition.



221
222
223
224
# File 'lib/arrow/slicer.rb', line 221

def initialize(column, value)
  @column = column
  @value = value
end

Instance Method Details

#!@Object



226
227
228
# File 'lib/arrow/slicer.rb', line 226

def !@
  GreaterEqualCondition.new(@column, @value)
end

#evaluateObject



230
231
232
# File 'lib/arrow/slicer.rb', line 230

def evaluate
  Function.find("less").execute([@column.data, @value]).value
end