class Mutest::Matcher::Method::Instance::Evaluator

Instance method specific evaluator

Constants

NAME_INDEX
SUBJECT_CLASS

Private Instance Methods

match?(node) click to toggle source

Check if node is matched

@param [Parser::AST::Node] node

@return [Boolean]

# File lib/mutest/matcher/method/instance.rb, line 36
def match?(node)
  n_def?(node) &&
    node.location.line.equal?(source_line) &&
    node.children.fetch(NAME_INDEX).equal?(method_name)
end