lib/mutant/mutation.rb in mutant-0.2.4 vs lib/mutant/mutation.rb in mutant-0.2.5

- old
+ new

@@ -107,7 +107,33 @@ # @api private # def initialize(subject, node) @subject, @node = subject, node end + + class Noop < self + + # Initialihe object + # + # @param [Subject] subject + # + # @return [undefined] + # + # @api private + # + def initialize(subject) + super(subject, subject.node) + end + + # Return identification + # + # @return [String] + # + # @api private + # + def identification + "noop:#{super}" + end + memoize :identification + end end end