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.



285
286
287
288
# File 'lib/arrow/slicer.rb', line 285

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

Instance Method Details

#!@Object



290
291
292
# File 'lib/arrow/slicer.rb', line 290

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

#evaluateObject



294
295
296
# File 'lib/arrow/slicer.rb', line 294

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