free_mutant/lib/mutant/mutator/block.rb
Markus Schirp 75e6a229f8 Create namespace for literal mutations
* Do not follow rubinius names anymore.
  An explict declaration now declares a mutator handles
  specific AST node.

* Has a nice impact on metrics.
2012-07-31 19:45:46 +02:00

23 lines
367 B
Ruby

module Mutant
class Mutator
# Mutator on AST blocks
class Block < Mutator
handle Rubinius::AST::Block
private
# Emit mutants
#
# @return [undefined]
#
# @api private
#
def dispatch
array = node.array
emit_elements(array)
emit_element_presence(array)
end
end
end
end