Class: Tree::MatchExpression::AndExpr

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)


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

def match?(node) = @left.match?(node) && @right.match?(node)