A
Alexey Verkhovsky
I find it hard to understand why this code prints nil instead of
saying "unknown method or local variable foo":
if false
foo = 'quack'
else
p foo
end
end
hmm
Thoughts?
saying "unknown method or local variable foo":
def hmmcat hmm.rb
if false
foo = 'quack'
else
p foo
end
end
hmm
nilruby hmm.rb
Thoughts?