Sha256: a66e503706173480be3a1d3ce71346b51994c99129b4107efcfc1d30ff3ab175

Contents?: true

Size: 473 Bytes

Versions: 5

Compression:

Stored size: 473 Bytes

Contents

module Mutant
  class Mutator
    class Node
      module Regexp
        # Mutator for pipe in `/foo|bar/` regexp
        class AlternationMeta < Node
          handle(:regexp_alternation_meta)

        private

          # Dispatch mutations
          #
          # @return [undefined]
          def dispatch
            children.each_index(&method(:delete_child))
          end
        end # AlternationMeta
      end # Regexp
    end # Node
  end # Mutator
end # Mutant

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mutant-0.8.16 lib/mutant/mutator/node/regexp/alternation_meta.rb
mutant-0.8.15 lib/mutant/mutator/node/regexp/alternation_meta.rb
mutant-0.8.14 lib/mutant/mutator/node/regexp/alternation_meta.rb
mutant-0.8.13 lib/mutant/mutator/node/regexp/alternation_meta.rb
mutant-0.8.12 lib/mutant/mutator/node/regexp/alternation_meta.rb