Class: Ruleby::Core::AndPattern
- Inherits:
-
CompositePattern
- Object
- Pattern
- CompositePattern
- Ruleby::Core::AndPattern
- Defined in:
- lib/core/patterns.rb
Instance Attribute Summary
Attributes inherited from CompositePattern
Instance Method Summary collapse
-
#initialize(left_pattern, right_pattern) ⇒ AndPattern
constructor
A new instance of AndPattern.
Methods inherited from CompositePattern
Constructor Details
#initialize(left_pattern, right_pattern) ⇒ AndPattern
Returns a new instance of AndPattern.
87 88 89 90 |
# File 'lib/core/patterns.rb', line 87 def initialize(left_pattern, right_pattern) super(left_pattern, right_pattern) @head = :and end |