Tag: 阻止

在Ruby中,可以显式创建局部变量

例如 x = 123 p = Proc.new { x = ‘I do not want change the value of the outer x, I want to create a local x’ } 在Ruby中是否有与Perl中的“my”关键字相同的东西?