
* rubocop still warns about this on ruby 1.9.3, so it was fixed so it produces less output on travis.
29 lines
564 B
Ruby
29 lines
564 B
Ruby
# encoding: utf-8
|
|
|
|
module Mutant
|
|
class Mutator
|
|
class Node
|
|
# Abstract mutator for literal AST nodes
|
|
class Literal < self
|
|
include AbstractType
|
|
|
|
private
|
|
|
|
# Emit a new node with wrapping class for each entry in values
|
|
#
|
|
# @param [Array] values
|
|
#
|
|
# @return [undefined]
|
|
#
|
|
# @api private
|
|
#
|
|
def emit_values(values)
|
|
values.each do |value|
|
|
emit_self(value)
|
|
end
|
|
end
|
|
|
|
end # Literal
|
|
end # Node
|
|
end # Mutator
|
|
end # Mutant
|