Sha256: f1a7994cfdb8a7543153f8f94671f739f0ec00895693349c5617466bcbbd59ab

Contents?: true

Size: 490 Bytes

Versions: 8

Compression:

Stored size: 490 Bytes

Contents

module Mutant
  class Mutator
    class Node

      # Mutator for super with parentheses
      class Super < self

        handle(:super)

      private

        # Emit mutations
        #
        # @return [undefined]
        def dispatch
          emit_singletons
          emit(N_EMPTY_SUPER)
          children.each_index do |index|
            mutate_child(index)
            delete_child(index)
          end
        end

      end # Super
    end # Node
  end # Mutator
end # Mutant

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutant-0.8.16 lib/mutant/mutator/node/super.rb
mutant-0.8.15 lib/mutant/mutator/node/super.rb
mutant-0.8.14 lib/mutant/mutator/node/super.rb
mutant-0.8.13 lib/mutant/mutator/node/super.rb
mutant-0.8.12 lib/mutant/mutator/node/super.rb
mutant-0.8.11 lib/mutant/mutator/node/super.rb
mutant-0.8.10 lib/mutant/mutator/node/super.rb
mutant-0.8.9 lib/mutant/mutator/node/super.rb