Class: Mutant::Matcher::Method::Evaluator Private

Inherits:
Object
  • Object
show all
Includes:
AbstractType, Adamantium, AST::NodePredicates
Defined in:
lib/mutant/matcher/method.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Abstract method match evaluator

Present to avoid passing the env argument around in case the logic would be implemented directly on the Matcher::Method instance

Instance Method Summary collapse

Instance Method Details

#callEnumerable<Subject>

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.

Matched subjects

Returns:



44
45
46
47
48
# File 'lib/mutant/matcher/method.rb', line 44

def call
  return EMPTY_ARRAY if skip?

  [subject].compact
end