Class: Arrow::Slicer::LessEqualCondition
- Defined in:
- lib/arrow/slicer.rb
Instance Method Summary collapse
- #!@ ⇒ Object
- #evaluate ⇒ Object
-
#initialize(column, value) ⇒ LessEqualCondition
constructor
A new instance of LessEqualCondition.
Methods inherited from Condition
Constructor Details
#initialize(column, value) ⇒ LessEqualCondition
Returns a new instance of LessEqualCondition.
299 300 301 302 |
# File 'lib/arrow/slicer.rb', line 299 def initialize(column, value) @column = column @value = value end |
Instance Method Details
#!@ ⇒ Object
304 305 306 |
# File 'lib/arrow/slicer.rb', line 304 def !@ GreaterCondition.new(@column, @value) end |
#evaluate ⇒ Object
308 309 310 311 312 313 314 315 316 317 |
# File 'lib/arrow/slicer.rb', line 308 def evaluate raw_array = @column.collect do |value| if value.nil? nil else @value >= value end end BooleanArray.new(raw_array) end |