Class: Mutant::Subject::Method
- Inherits:
-
Mutant::Subject
- Object
- Mutant::Subject
- Mutant::Subject::Method
- Defined in:
- lib/mutant/subject/method.rb,
lib/mutant/subject/method/instance.rb,
lib/mutant/subject/method/singleton.rb
Overview
Abstract base class for method subjects
Defined Under Namespace
Instance Method Summary collapse
-
#expression ⇒ String
private
Return match expression.
-
#name ⇒ Symbol
private
Return method name.
-
#public? ⇒ Boolean
private
Test if method is public.
Methods inherited from Mutant::Subject
#identification, #match_expressions, #mutations, #prepare, #root, #source, #source_line, #source_path, #tests
Instance Method Details
#expression ⇒ 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 match expression
30 31 32 |
# File 'lib/mutant/subject/method.rb', line 30 def expression Expression.parse("#{context.identification}#{self.class::SYMBOL}#{name}") end |
#name ⇒ Symbol
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 method name
20 21 22 |
# File 'lib/mutant/subject/method.rb', line 20 def name node.children[self.class::NAME_INDEX] end |
#public? ⇒ Boolean
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
12 |
# File 'lib/mutant/subject/method.rb', line 12 abstract_method :public? |