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.
417 418 419 420 |
# File 'lib/arrow/slicer.rb', line 417 def initialize(column, block) @column = column @block = block end |
Instance Method Details
#!@ ⇒ Object
422 423 424 |
# File 'lib/arrow/slicer.rb', line 422 def !@ RejectCondition.new(@column, @block) end |
#evaluate ⇒ Object
426 427 428 |
# File 'lib/arrow/slicer.rb', line 426 def evaluate BooleanArray.new(@column.collect(&@block)) end |