mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Pry::Config#merge! turns Symbol keys to String's.
This commit is contained in:
parent
358cb978ec
commit
b8ace53104
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,9 @@ class Pry::Config
|
||||||
end
|
end
|
||||||
|
|
||||||
def merge!(other)
|
def merge!(other)
|
||||||
@lookup.merge!(other.to_hash)
|
other = other.to_hash
|
||||||
|
keys, values = other.keys.map(&:to_s), other.values
|
||||||
|
@lookup.merge! Hash[keys.zip(values)]
|
||||||
end
|
end
|
||||||
|
|
||||||
def respond_to?(name, boolean=false)
|
def respond_to?(name, boolean=false)
|
||||||
|
|
Loading…
Reference in a new issue