Class: Arrow::Slicer::GreaterEqualCondition
- Defined in:
- lib/arrow/slicer.rb
Instance Method Summary collapse
- #!@ ⇒ Object
- #evaluate ⇒ Object
-
#initialize(column, value) ⇒ GreaterEqualCondition
constructor
A new instance of GreaterEqualCondition.
Methods inherited from Condition
Constructor Details
#initialize(column, value) ⇒ GreaterEqualCondition
Returns a new instance of GreaterEqualCondition.
343 344 345 346 |
# File 'lib/arrow/slicer.rb', line 343 def initialize(column, value) @column = column @value = value end |
Instance Method Details
#!@ ⇒ Object
348 349 350 |
# File 'lib/arrow/slicer.rb', line 348 def !@ LessCondition.new(@column, @value) end |
#evaluate ⇒ Object
352 353 354 355 356 357 358 359 360 361 |
# File 'lib/arrow/slicer.rb', line 352 def evaluate raw_array = @column.collect do |value| if value.nil? nil else @value <= value end end BooleanArray.new(raw_array) end |