Sha256: aed099d75cf6a629f93907859ea475f72f91addecff8f5315c0ef0742150a11c

Contents?: true

Size: 600 Bytes

Versions: 3

Compression:

Stored size: 600 Bytes

Contents

module Mutest
  class Mutator
    class Node
      class BlockPass < self
        handle(:block_pass)

        children :arg

        private

        # Emit mutations
        #
        # @return [undefined]
        def dispatch
          emit_arg_mutations
          emit_symbol_to_proc_mutations
        end

        def emit_symbol_to_proc_mutations
          return unless n_sym?(arg)

          Send::SELECTOR_REPLACEMENTS.fetch(*arg, EMPTY_ARRAY).each do |method|
            emit_arg(s(:sym, method))
          end
        end
      end # BlockPass
    end # Node
  end # Mutator
end # Mutest

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mutest-0.0.9 lib/mutest/mutator/node/block_pass.rb
mutest-0.0.8 lib/mutest/mutator/node/block_pass.rb
mutest-0.0.7 lib/mutest/mutator/node/block_pass.rb