free_mutant/lib/mutant/mutator/block.rb

24 lines
367 B
Ruby
Raw Normal View History

module Mutant
class Mutator
2012-07-30 22:39:03 +02:00
# Mutator on AST blocks
class Block < Mutator
handle Rubinius::AST::Block
private
# Emit mutants
2012-07-30 22:39:03 +02:00
#
# @return [undefined]
#
# @api private
#
def dispatch
array = node.array
emit_elements(array)
emit_element_presence(array)
end
end
end
end