Module: Rosette::Core::PathMatcherFactory::NodeOperatorFactory
- Included in:
- Node
- Defined in:
- lib/rosette/core/path_matcher_factory.rb
Overview
Facilitates creating operator nodes that can perform binary operations, like “and”, “or”, and “not”.
Instance Method Summary collapse
-
#and(right) ⇒ AndNode
Creates an AndNode for combining two nodes together with a logical “and”.
-
#not ⇒ NotNode
Creates a NotNode for negating
self. -
#or(right) ⇒ OrNode
Creates an OrNode for combining two nodes together with a logical “or”.
Instance Method Details
#and(right) ⇒ AndNode
Creates an AndNode for combining two nodes together with a logical “and”.
36 37 38 |
# File 'lib/rosette/core/path_matcher_factory.rb', line 36 def and(right) AndNode.new(self, right) end |
#not ⇒ NotNode
Creates a Rosette::Core::PathMatcherFactory::NotNode for negating self.
43 44 45 |
# File 'lib/rosette/core/path_matcher_factory.rb', line 43 def not NotNode.new(self) end |