class Mutest::Mutator::Node::BlockPass

Private Instance Methods

dispatch() click to toggle source

Emit mutations

@return [undefined]

# File lib/mutest/mutator/node/block_pass.rb, line 14
def dispatch
  emit_arg_mutations
  emit_symbol_to_proc_mutations
end
emit_symbol_to_proc_mutations() click to toggle source
# File lib/mutest/mutator/node/block_pass.rb, line 19
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