pry/pry — Issue #400: should not raise an exception when unrecognized option is passed to Pry.start
Author: banister
Created: 2012-01-02 07:26:06+00:00
State: open
Labels: bug

problem lies in the last few lines in this method:

def refresh(options={})
defaults = {}
attributes = [
:input, :output, :commands, :print,
:exception_handler, :hooks, :custom_completions,
:prompt, :memory_size, :input_stack
]

attributes.each do |attribute|
defaults[attribute] = Pry.send attribute
end

defaults.merge!(options).each do |key, value|
send "#{key}=", value
end

true
end