1
0
Fork 0
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:
Robert Gleeson 2014-01-20 08:40:05 +01:00
parent 358cb978ec
commit b8ace53104

View file

@ -38,7 +38,9 @@ class Pry::Config
end
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
def respond_to?(name, boolean=false)