阅读背景:

使用条件进行变量赋值的良好代码实践

来源:互联网 

I had this code:

我有这个代码:

if @locale
    HighVoltage.content_path = "#{@template_to_use}/pages/#{@locale}/"
else
    HighVoltage.content_path = 'pages/'
end
if @locale
    Hig



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

分享到: