1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

read and write via Pry::Config#{[],[]=} in Pry::Config#method_missing.

This commit is contained in:
Robert Gleeson 2014-01-20 12:39:56 +01:00
parent 3c5c992848
commit 57c1921e1e

View file

@ -27,9 +27,9 @@ class Pry::Config
key = name.to_s
if key[-1] == "="
short_key = key.to_s[0..-2]
@lookup[short_key] = args[0]
self[short_key] = args[0]
elsif @lookup.has_key?(key)
@lookup[key]
self[key]
elsif @default.respond_to?(name)
@default.public_send(name, *args, &block)
else
@ -62,6 +62,4 @@ class Pry::Config
def quiet?
quiet
end
private
end