Add context identification

This commit is contained in:
Markus Schirp 2013-01-13 22:27:03 +01:00
parent 26ad183fa4
commit 2fc836d97f
2 changed files with 18 additions and 0 deletions

View file

@ -21,6 +21,14 @@ module Mutant
#
attr_reader :source_path
# Return identification
#
# @return [String]
#
# @api private
#
abstract_method :identification
private
# Initialize context

View file

@ -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