Sha256: 6a0cdd18e179b500eda7f52b7629cc8d85f090a89ae922f07c1b44fb057e62d4

Contents?: true

Size: 545 Bytes

Versions: 2

Compression:

Stored size: 545 Bytes

Contents

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(RAISE)
        end

      end # Block
    end # Node
  end # Mutator
end # Mutant

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mutant-0.3.0.beta9 lib/mutant/mutator/node/block.rb
mutant-0.3.0.beta8 lib/mutant/mutator/node/block.rb