Class: Mutest::Subject::Method Private
- Inherits:
-
Mutest::Subject
- Object
- Mutest::Subject
- Mutest::Subject::Method
- Defined in:
- lib/mutest/subject/method.rb,
lib/mutest/subject/method/instance.rb,
lib/mutest/subject/method/singleton.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 base class for method subjects
Defined Under Namespace
Instance Method Summary collapse
-
#expression ⇒ String
private
Match expression.
-
#match_expressions ⇒ Array<Expression>
private
Match expressions.
-
#name ⇒ Expression
private
Method name.
Methods inherited from Mutest::Subject
#identification, #mutations, #prepare, #source, #source_line, #source_lines, #source_path
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.
Match expression
15 16 17 18 19 20 21 |
# File 'lib/mutest/subject/method.rb', line 15 def expression Expression::Method.new( method_name: name.to_s, scope_symbol: self.class::SYMBOL, scope_name: scope.name ) end |
#match_expressions ⇒ Array<Expression>
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.
Match expressions
27 28 29 |
# File 'lib/mutest/subject/method.rb', line 27 def match_expressions [expression].concat(context.match_expressions) end |
#name ⇒ Expression
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.
Method name
8 9 10 |
# File 'lib/mutest/subject/method.rb', line 8 def name node.children.fetch(self.class::NAME_INDEX) end |