Class: Mutant::Matcher::Method::Instance
- Inherits:
-
Mutant::Matcher::Method
- Object
- Mutant::Matcher
- Mutant::Matcher::Method
- Mutant::Matcher::Method::Instance
- Defined in:
- lib/mutant/matcher/method/instance.rb
Overview
Matcher for instance methods
Constant Summary
Constants inherited from Mutant::Matcher::Method
Instance Attribute Summary
Attributes inherited from Mutant::Matcher::Method
Instance Method Summary collapse
-
#identification ⇒ String
private
Return identification.
-
#public? ⇒ true, false
private
Test if method is public.
Methods inherited from Mutant::Matcher::Method
Methods inherited from Mutant::Matcher
Instance Method Details
#identification ⇒ String
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 identification
14 15 16 |
# File 'lib/mutant/matcher/method/instance.rb', line 14 def identification "#{scope.name}##{method_name}" end |
#public? ⇒ true, false
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.
Test if method is public
28 29 30 |
# File 'lib/mutant/matcher/method/instance.rb', line 28 def public? scope.public_method_defined?(method_name) end |