Sha256: 35c423bee5d7f5041d958e8d52371a97051cbdbcb362e9288e811d56b2a27091

Contents?: true

Size: 488 Bytes

Versions: 4

Compression:

Stored size: 488 Bytes

Contents

module Mutant
  class Mutator
    class Node
      # Mutantor for default arguments
      class DefaultArguments < self
        handle(Rubinius::AST::DefaultArguments)

      private

        # Emit mutations
        #
        # @return [undefined]
        #
        # @api private
        #
        def dispatch
          emit_attribute_mutations(:arguments) do |argument|
            argument.names = argument.arguments.map(&:name)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mutant-0.2.12 lib/mutant/mutator/node/default_arguments.rb
mutant-0.2.11 lib/mutant/mutator/node/default_arguments.rb
mutant-0.2.9 lib/mutant/mutator/node/default_arguments.rb
mutant-0.2.8 lib/mutant/mutator/node/default_arguments.rb