📜  ruby 尝试捕获变量并分配 nil 值 - Ruby 代码示例
📅  最后修改于: 2022-03-11 15:04:49.844000             🧑  作者: Mango
代码示例1
test = a_function_that_will_fail rescue "I crashed!"
test
# => "I crashed"