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:
parent
3c5c992848
commit
57c1921e1e
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue