class Mutest::Mutator::Node::Literal::Hash
Mutator
for hash literals
Private Instance Methods
dispatch()
click to toggle source
Emit mutations
@return [undefined]
# File lib/mutest/mutator/node/literal/hash.rb, line 14 def dispatch emit_singletons emit_type mutate_body end
mutate_body()
click to toggle source
Mutate body
@return [undefined]
# File lib/mutest/mutator/node/literal/hash.rb, line 23 def mutate_body children.each_index do |index| mutate_child(index) dup_children = children.dup dup_children.delete_at(index) emit_type(*dup_children) end end