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.
90 91 92 93 |
# File 'lib/core/patterns.rb', line 90 def initialize(left_pattern, right_pattern) super(left_pattern, right_pattern) @head = :and end |