阅读背景:

Ruby:实例变量与局部变量

来源:互联网 

I'm learning Ruby right now, and I'm confused as to why I can refer to an instance variable without the @ sigil, which would make it a local variable too. Surely the following code shouldn't work as it does:I'm learning Ruby right now, and I'm confused a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: