Class: Tree::MatchExpression::NegationExpr
- Inherits:
-
AbstractMatcher
- Object
- AbstractMatcher
- Tree::MatchExpression::NegationExpr
- Defined in:
- lib/modular_tree/matcher.rb
Instance Method Summary collapse
-
#initialize(matcher) ⇒ NegationExpr
constructor
A new instance of NegationExpr.
- #match?(node) ⇒ Boolean
Methods inherited from AbstractMatcher
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
61 |
# File 'lib/modular_tree/matcher.rb', line 61 def match?(node) = !@matcher.match?(node) |