Class: Tree::MatchExpression::BinaryExpr

Inherits:
AbstractMatcher show all
Defined in:
lib/modular_tree/matcher.rb

Direct Known Subclasses

AndExpr, OrExpr

Instance Method Summary collapse

Methods inherited from AbstractMatcher

#!, #&, #match, #|

Constructor Details

#initialize(left, right) ⇒ BinaryExpr

Returns a new instance of BinaryExpr.



44
45
46
47
48
# File 'lib/modular_tree/matcher.rb', line 44

def initialize(left, right)
  constrain left, Matcher
  constrain right, Matcher
  @left, @right = left, right
end