Class: Arrow::Slicer::GreaterCondition

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

Instance Method Summary collapse

Methods inherited from Condition

#&, #^, #|

Constructor Details

#initialize(column, value) ⇒ GreaterCondition

Returns a new instance of GreaterCondition.



251
252
253
254
# File 'lib/arrow/slicer.rb', line 251

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

Instance Method Details

#!@Object



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

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

#evaluateObject



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

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