Sha256: 111f27fbd641e794ac646f796006c1c754bd7e0bb76a14ff9ddafa0a3b530f9c

Contents?: true

Size: 567 Bytes

Versions: 6

Compression:

Stored size: 567 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
          else
            emit_body(NEW_OBJECT)
          end
        end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mutant-0.3.0.beta7 lib/mutant/mutator/node/block.rb
mutant-0.3.0.beta6 lib/mutant/mutator/node/block.rb
mutant-0.3.0.beta5 lib/mutant/mutator/node/block.rb
mutant-0.3.0.beta4 lib/mutant/mutator/node/block.rb
mutant-0.3.0.beta3 lib/mutant/mutator/node/block.rb
mutant-0.3.0.beta2 lib/mutant/mutator/node/block.rb