作者在 2013-01-11 16:46:43 发布以下内容
$ pry
[1] pry(main)> a
NameError: undefined local variable or method `a' for main:Object
from (pry):1:in `__pry__'
[2] pry(main)> if 1 == 2
[2] pry(main)* a = 'aaa'
[2] pry(main)* end
=> nil
[3] pry(main)> a
=> nil
ruby的语法有些怪异,倒是挺方便,把else
a = nil
给省了