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

Pass key&value to #each since we use both.

This commit is contained in:
Rob Gleeson 2011-05-19 19:31:15 +01:00
parent 169ee11b04
commit 3c194717c0

View file

@ -37,8 +37,8 @@ class Pry
defaults[attribute] = Pry.send attribute
end
defaults.merge!(options).each_key do |key|
send "#{key}=", defaults[key]
defaults.merge!(options).each do |method, argument|
send "#{method}=", argument
end
@command_processor = CommandProcessor.new(self)