1
0
Fork 0
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:
Robert Gleeson 2014-01-20 13:51:52 +01:00
parent 072da52a7c
commit ef53b2f2c5

View file

@ -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?