Can someone  please explain it ,why I get this:
ruby -e'i=3;def foo;p defined?(i);end;foo'  #==>nil
ruby -e'i=3;1.times{p defined?(i)}             #==>"local-variable"

Thanks
Pros