Add context identification
This commit is contained in:
parent
26ad183fa4
commit
2fc836d97f
2 changed files with 18 additions and 0 deletions
|
@ -21,6 +21,14 @@ module Mutant
|
|||
#
|
||||
attr_reader :source_path
|
||||
|
||||
# Return identification
|
||||
#
|
||||
# @return [String]
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
abstract_method :identification
|
||||
|
||||
private
|
||||
|
||||
# Initialize context
|
||||
|
|
|
@ -16,6 +16,16 @@ module Mutant
|
|||
end
|
||||
end
|
||||
|
||||
# Return identification
|
||||
#
|
||||
# @return [String]
|
||||
#
|
||||
# @ai private
|
||||
#
|
||||
def identification
|
||||
scope.name
|
||||
end
|
||||
|
||||
# Wrap node into ast node
|
||||
#
|
||||
# @param [Class, Module] scope
|
||||
|
|
Loading…
Add table
Reference in a new issue