阅读背景:

IRB - Ruby 1.9.x哈希语法:{if:true}不等于{:if => true}

来源:互联网 

Long story short, I was writing a method that included an options argument, that will do certain stuff if the value for the key :if, evaluated to true. When I trying the hash in IRB using the new syntax I got a syntax error in IRB, the prompt stays open:Long story short, I was writing a method that i




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

分享到: