Class: Ruleby::Core::OrPattern

Inherits:
CompositePattern show all
Defined in:
lib/core/patterns.rb

Instance Attribute Summary

Attributes inherited from CompositePattern

#left_pattern, #right_pattern

Instance Method Summary collapse

Methods inherited from CompositePattern

#atoms

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