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
1 changed files with 2 additions and 2 deletions

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?