Sha256: b7ed0174845d78db89c73560ad67a7749e1e2df46c819d0059165514c0e27ac6

Contents?: true

Size: 379 Bytes

Versions: 2

Compression:

Stored size: 379 Bytes

Contents

# frozen_string_literal: true

module Mutant
  class Mutator
    class Node

      # Mutator for loop control keywords
      class Break < Generic

        handle(:break)

      private

        def dispatch
          super
          emit_singletons
          children.each_index(&method(:delete_child))
        end

      end # Break
    end # Node
  end # Mutator
end # Mutant

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mutant-0.12.4 lib/mutant/mutator/node/break.rb
mutant-0.12.3 lib/mutant/mutator/node/break.rb