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