lib/mutant/subject.rb in mutant-0.2.5 vs lib/mutant/subject.rb in mutant-0.2.6

- old
+ new

@@ -55,18 +55,36 @@ def noop Mutation::Noop.new(self) end memoize :noop + # Return source path + # + # @return [String] + # + # @api private + # + def source_path + context.source_path + end + + # Return source line + # + # @return [Fixnum] + # + # @api private + # + def source_line + node.line + end + # Return subject identicication # # @return [String] # # @api private # def identification - source_path = context.source_path - source_line = node.line "#{matcher.identification}:#{source_path}:#{source_line}" end memoize :identification # Return source representation of ast