call to_hash on 'options' in Pry.start().
This commit is contained in:
parent
1bd41dec24
commit
764652b113
|
@ -23,7 +23,6 @@ class Pry
|
|||
hash.each do |k, v|
|
||||
instance.add_hook(k, nil, v)
|
||||
end
|
||||
|
||||
instance
|
||||
end
|
||||
|
||||
|
|
|
@ -111,6 +111,7 @@ class Pry
|
|||
# Pry.start(Object.new, :input => MyInput.new)
|
||||
def self.start(target=nil, options={})
|
||||
return if ENV['DISABLE_PRY']
|
||||
options = options.to_hash
|
||||
|
||||
if in_critical_section?
|
||||
output.puts "ERROR: Pry started inside Pry."
|
||||
|
|
Loading…
Reference in New Issue