Sha256: 082dfbc3793a7f941ffc759dcbd68a061567387092c320ca32adba10acc833e7

Contents?: true

Size: 537 Bytes

Versions: 3

Compression:

Stored size: 537 Bytes

Contents

module Mutant
  class Mutator
    class Node
      class Literal < self
        # Mutator for array literals
        class Array < self

          handle(Rubinius::AST::ArrayLiteral)

        private

          # Emit mutations
          #
          # @return [undefined]
          #
          # @api private
          #
          def dispatch
            emit_attribute_mutations(:body)
            emit_self([])
            emit_nil
            emit_self(node.body.dup << new_nil)
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mutant-0.2.2 lib/mutant/mutator/node/literal/array.rb
mutant-0.2.1 lib/mutant/mutator/node/literal/array.rb
mutant-0.2.0 lib/mutant/mutator/node/literal/array.rb