free_mutant/lib/mutant/mutator/node/block.rb
Dan Kubb 7293386c26 Add magic encoding header to all ruby files
* rubocop still warns about this on ruby 1.9.3, so it was fixed so
  it produces less output on travis.
2013-07-28 16:03:06 -07:00

34 lines
589 B
Ruby

# encoding: utf-8
module Mutant
class Mutator
class Node
# Emitter for mutations on 19 blocks
class Block < self
handle(:block)
children :send, :arguments, :body
private
# Emit mutants
#
# @return [undefined]
#
# @api private
#
def dispatch
emit(send)
emit_arguments_mutations
if body
emit_body_mutations
end
emit_body(nil)
emit_body(RAISE)
end
end # Block
end # Node
end # Mutator
end # Mutant