Class: Arrow::Slicer::Condition

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

Instance Method Summary collapse

Instance Method Details

#&(condition) ⇒ Object



52
53
54
# File 'lib/arrow/slicer.rb', line 52

def &(condition)
  AndCondition.new(self, condition)
end

#^(condition) ⇒ Object



60
61
62
# File 'lib/arrow/slicer.rb', line 60

def ^(condition)
  XorCondition.new(self, condition)
end

#evaluateObject

Raises:

  • (NotImplementedError)


47
48
49
50
# File 'lib/arrow/slicer.rb', line 47

def evaluate
  message = "Slicer::Condition must define \#evaluate: #{inspect}"
  raise NotImplementedError.new(message)
end

#|(condition) ⇒ Object



56
57
58
# File 'lib/arrow/slicer.rb', line 56

def |(condition)
  OrCondition.new(self, condition)
end