Class: Mutant::Matcher::Method::Finder
- Inherits:
-
Object
- Object
- Mutant::Matcher::Method::Finder
- Defined in:
- lib/mutant/matcher/method/finder.rb
Overview
Visitor to find last match inside AST
Instance Attribute Summary collapse
-
#match ⇒ Parser::AST::Node
readonly
private
Return match.
Class Method Summary collapse
-
.run(root, &predicate) ⇒ Parser::AST::Node?
private
Run finder.
Instance Attribute Details
#match ⇒ Parser::AST::Node (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return match
33 34 35 |
# File 'lib/mutant/matcher/method/finder.rb', line 33 def match @match end |
Class Method Details
.run(root, &predicate) ⇒ Parser::AST::Node?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Run finder
21 22 23 |
# File 'lib/mutant/matcher/method/finder.rb', line 21 def self.run(root, &predicate) new(root, predicate).match end |