module Mutant class Mutator class Literal < self # Mutator for array literals class Array < self handle(Rubinius::AST::ArrayLiteral) private # Emit mutations # # @return [undefined] # # @api private # def dispatch body = node.body emit_nil emit_self([]) emit_self(body.dup << new_nil) emit_element_presence(body) emit_elements(body) end end end end end