Class: Mutant::Mutation::Noop

Inherits:
Mutant::Mutation show all
Defined in:
lib/mutant/mutation.rb

Overview

Noop mutation

Instance Attribute Summary

Attributes inherited from Mutant::Mutation

#node, #subject

Instance Method Summary collapse

Methods inherited from Mutant::Mutation

#code, #insert, #original_source, #root, #sha1, #source

Constructor Details

#initialize(subject) ⇒ undefined

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.

Initialize object

Parameters:



124
125
126
# File 'lib/mutant/mutation.rb', line 124

def initialize(subject)
  super(subject, subject.node)
end

Instance Method Details

#identificationString

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.

Return identification

Returns:

  • (String)


134
135
136
# File 'lib/mutant/mutation.rb', line 134

def identification
  "noop:#{super}"
end