mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
tidy up code in Pry::Config.
This commit is contained in:
parent
072da52a7c
commit
ef53b2f2c5
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ class Pry::Config
|
|||
def method_missing(name, *args, &block)
|
||||
key = name.to_s
|
||||
if key[-1] == ASSIGNMENT
|
||||
short_key = key.to_s[0..-2]
|
||||
short_key = key[0..-2]
|
||||
self[short_key] = args[0]
|
||||
elsif @lookup.has_key?(key)
|
||||
self[key]
|
||||
|
@ -55,7 +55,7 @@ class Pry::Config
|
|||
end
|
||||
|
||||
def to_h
|
||||
to_hash
|
||||
@lookup
|
||||
end
|
||||
|
||||
def quiet?
|
||||
|
|
Loading…
Reference in a new issue