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:
parent
cc6bbb5782
commit
dadddae30c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue