Class: Mutant::Mutation::Noop

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

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.

Initialihe object

Parameters:



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

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)


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

def identification
  "noop:#{super}"
end