mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
call to_hash on 'options' in Pry.start().
This commit is contained in:
parent
1bd41dec24
commit
764652b113
2 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,6 @@ class Pry
|
||||||
hash.each do |k, v|
|
hash.each do |k, v|
|
||||||
instance.add_hook(k, nil, v)
|
instance.add_hook(k, nil, v)
|
||||||
end
|
end
|
||||||
|
|
||||||
instance
|
instance
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -111,6 +111,7 @@ class Pry
|
||||||
# Pry.start(Object.new, :input => MyInput.new)
|
# Pry.start(Object.new, :input => MyInput.new)
|
||||||
def self.start(target=nil, options={})
|
def self.start(target=nil, options={})
|
||||||
return if ENV['DISABLE_PRY']
|
return if ENV['DISABLE_PRY']
|
||||||
|
options = options.to_hash
|
||||||
|
|
||||||
if in_critical_section?
|
if in_critical_section?
|
||||||
output.puts "ERROR: Pry started inside Pry."
|
output.puts "ERROR: Pry started inside Pry."
|
||||||
|
|
Loading…
Reference in a new issue