Class: Arrow::Slicer::SelectCondition
- Defined in:
- lib/arrow/slicer.rb
Instance Method Summary collapse
- #!@ ⇒ Object
- #evaluate ⇒ Object
-
#initialize(column, block) ⇒ SelectCondition
constructor
A new instance of SelectCondition.
Methods inherited from Condition
Constructor Details
#initialize(column, block) ⇒ SelectCondition
Returns a new instance of SelectCondition.
352 353 354 355 |
# File 'lib/arrow/slicer.rb', line 352 def initialize(column, block) @column = column @block = block end |
Instance Method Details
#!@ ⇒ Object
357 358 359 |
# File 'lib/arrow/slicer.rb', line 357 def !@ RejectCondition.new(@column, @block) end |
#evaluate ⇒ Object
361 362 363 |
# File 'lib/arrow/slicer.rb', line 361 def evaluate BooleanArray.new(@column.collect(&@block)) end |