Class: Tree::MatchExpression::OrExpr

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

Instance Method Summary collapse

Methods inherited from BinaryExpr

#initialize

Methods inherited from AbstractMatcher

#!, #&, #match, #|

Constructor Details

This class inherits a constructor from Tree::MatchExpression::BinaryExpr

Instance Method Details

#match?(node) ⇒ Boolean

Returns:

  • (Boolean)


56
# File 'lib/modular_tree/matcher.rb', line 56

def match?(node) = @left.match?(node) || @right.match?(node) ? true : false