Class: Arrow::Slicer::SelectCondition

Inherits:
Condition
  • Object
show all
Defined in:
lib/arrow/slicer.rb

Instance Method Summary collapse

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

#evaluateObject



361
362
363
# File 'lib/arrow/slicer.rb', line 361

def evaluate
  BooleanArray.new(@column.collect(&@block))
end