mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
add Pry::Config#to_hash for 1.9 compatibility.
This commit is contained in:
parent
f4462a48cc
commit
c1af234bbd
1 changed files with 6 additions and 2 deletions
|
@ -38,7 +38,7 @@ class Pry::Config
|
|||
end
|
||||
|
||||
def merge!(other)
|
||||
@lookup.merge!(other.to_h)
|
||||
@lookup.merge!(other.to_hash)
|
||||
end
|
||||
|
||||
def respond_to?(name, boolean=false)
|
||||
|
@ -49,10 +49,14 @@ class Pry::Config
|
|||
@lookup = {}
|
||||
end
|
||||
|
||||
def to_h
|
||||
def to_hash
|
||||
@lookup
|
||||
end
|
||||
|
||||
def to_h
|
||||
to_hash
|
||||
end
|
||||
|
||||
def quiet?
|
||||
quiet
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue