Answers for "ruby try catch variable and assign nil value"

0

ruby try catch variable and assign nil value

test = a_function_that_will_fail rescue "I crashed!"
test
# => "I crashed"
Posted by: Guest on June-25-2020

Browse Popular Code Answers by Language