Class: Ruleby::Core::AndPattern

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) ⇒ 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