J
Jos Backus
Consider
def foo
a = "a"
b = 1
p Kernel.local_variables
end
Why doesn't this print anything? I would expect it to print
["a", "b"]
but instead it prints nothing.
--
Jos Backus _/ _/_/_/ Sunnyvale, CA
_/ _/ _/
_/ _/_/_/
_/ _/ _/ _/
jos at catnook.com _/_/ _/_/_/ require 'std/disclaimer'
def foo
a = "a"
b = 1
p Kernel.local_variables
end
Why doesn't this print anything? I would expect it to print
["a", "b"]
but instead it prints nothing.
--
Jos Backus _/ _/_/_/ Sunnyvale, CA
_/ _/ _/
_/ _/_/_/
_/ _/ _/ _/
jos at catnook.com _/_/ _/_/_/ require 'std/disclaimer'