call to_hash on 'options' in Pry.start().

This commit is contained in:
Robert Gleeson 2014-01-28 15:20:26 +01:00
parent 1bd41dec24
commit 764652b113
2 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,6 @@ class Pry
hash.each do |k, v|
instance.add_hook(k, nil, v)
end
instance
end

View File

@ -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."