Class: Tree::MatchExpression::NegationExpr

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

Instance Method Summary collapse

Methods inherited from AbstractMatcher

#!, #&, #match, #|

Constructor Details

#initialize(matcher) ⇒ NegationExpr

Returns a new instance of NegationExpr.



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

def initialize(matcher) = @matcher = matcher

Instance Method Details

#match?(node) ⇒ Boolean

Returns:

  • (Boolean)


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

def match?(node) = !@matcher.match?(node)