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.



255
256
257
258
# File 'lib/arrow/slicer.rb', line 255

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

Instance Method Details

#!@Object



260
261
262
# File 'lib/arrow/slicer.rb', line 260

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

#evaluateObject



264
265
266
# File 'lib/arrow/slicer.rb', line 264

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