Sha256: 09356ea0db0b6f182ee592c86af111cd4e45b8e557a741d25e110c447ee7c056

Contents?: true

Size: 586 Bytes

Versions: 41

Compression:

Stored size: 586 Bytes

Contents

# frozen_string_literal: true

module Mutant
  class Mutator
    class Node
      class BlockPass < self

        handle(:block_pass)

        children :argument

      private

        def dispatch
          emit_argument_mutations
          emit_symbol_to_proc_mutations
        end

        def emit_symbol_to_proc_mutations
          return unless n_sym?(argument)

          Send::SELECTOR_REPLACEMENTS.fetch(*argument, EMPTY_ARRAY).each do |method|
            emit_argument(s(:sym, method))
          end
        end
      end # Block
    end # Node
  end # Mutator
end # Mutant

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
mutant-0.11.3 lib/mutant/mutator/node/block_pass.rb
mutant-0.11.2 lib/mutant/mutator/node/block_pass.rb
mutant-0.11.1 lib/mutant/mutator/node/block_pass.rb
mutant-0.11.0 lib/mutant/mutator/node/block_pass.rb
mutant-0.10.35 lib/mutant/mutator/node/block_pass.rb
mutant-0.10.34 lib/mutant/mutator/node/block_pass.rb
mutant-0.10.33 lib/mutant/mutator/node/block_pass.rb
mutant-0.10.32 lib/mutant/mutator/node/block_pass.rb
mutant-0.10.31 lib/mutant/mutator/node/block_pass.rb
mutant-0.10.30 lib/mutant/mutator/node/block_pass.rb
mutant-0.10.29 lib/mutant/mutator/node/block_pass.rb
mutant-0.10.28 lib/mutant/mutator/node/block_pass.rb
mutant-0.10.27 lib/mutant/mutator/node/block_pass.rb
mutant-0.10.26 lib/mutant/mutator/node/block_pass.rb
mutant-0.10.25 lib/mutant/mutator/node/block_pass.rb
mutant-0.10.24 lib/mutant/mutator/node/block_pass.rb
mutant-0.10.23 lib/mutant/mutator/node/block_pass.rb
mutant-0.10.22 lib/mutant/mutator/node/block_pass.rb
mutant-0.10.21 lib/mutant/mutator/node/block_pass.rb
mutant-0.10.20 lib/mutant/mutator/node/block_pass.rb