Sha256: 74ac52f41fc86cb2d3ff76f1e74d2bec76f1f1b014fcdcd9dd7ee131533569db

Contents?: true

Size: 589 Bytes

Versions: 2

Compression:

Stored size: 589 Bytes

Contents

# 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mutant-0.3.0.rc1 lib/mutant/mutator/node/block.rb
mutant-0.3.0.beta22 lib/mutant/mutator/node/block.rb