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

Fix 'shadowing outer local variable' warning

This commit is contained in:
Matijs van Zuijlen 2015-01-22 19:37:38 +01:00
parent cc6bbb5782
commit dadddae30c

View file

@ -138,7 +138,7 @@ private
def __push(key,value)
define_singleton_method(key) { self[key] }
define_singleton_method("#{key}=") { |value| @lookup[key] = value }
define_singleton_method("#{key}=") { |val| @lookup[key] = val }
@lookup[key] = value
end