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