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.
318 319 320 321 |
# File 'lib/arrow/slicer.rb', line 318 def initialize(column, block) @column = column @block = block end |
Instance Method Details
#!@ ⇒ Object
323 324 325 |
# File 'lib/arrow/slicer.rb', line 323 def !@ RejectCondition.new(@column, @block) end |
#evaluate ⇒ Object
327 328 329 |
# File 'lib/arrow/slicer.rb', line 327 def evaluate BooleanArray.new(@column.collect(&@block)) end |