分享 诡异的 Ruby 语法行为

xds2000 · August 13, 2012 · Last by kikyous replied at August 13, 2012 · 2402 hits

果然,在没定义 m 的时候执行m = 'test' if !defined? m之后,m 成了nil

这些是 bug?

You need to Sign in before reply, if you don't have an account, please Sign up first.