Class: Arrow::Slicer::Condition

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

Instance Method Summary collapse

Instance Method Details

#&(condition) ⇒ Object



64
65
66
# File 'lib/arrow/slicer.rb', line 64

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

#^(condition) ⇒ Object



72
73
74
# File 'lib/arrow/slicer.rb', line 72

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

#evaluateObject

Raises:

  • (NotImplementedError)


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

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

#|(condition) ⇒ Object



68
69
70
# File 'lib/arrow/slicer.rb', line 68

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