Class: Arrow::Slicer::NotColumnCondition

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

Instance Method Summary collapse

Methods inherited from Condition

#&, #^, #|

Constructor Details

#initialize(column) ⇒ NotColumnCondition

Returns a new instance of NotColumnCondition.



202
203
204
# File 'lib/arrow/slicer.rb', line 202

def initialize(column)
  @column = column
end

Instance Method Details

#!@Object



211
212
213
# File 'lib/arrow/slicer.rb', line 211

def !@
  ColumnCondition.new(@column)
end

#evaluateObject



206
207
208
209
# File 'lib/arrow/slicer.rb', line 206

def evaluate
  data = Helper.ensure_boolean(@column)
  Function.find("invert").execute([data]).value
end