x = (hoge rescue "default")
puts x # => "default"
# puts hoge # NameError ここではhogeは定義はされていない
hoge = "some_value"
x = (hoge rescue "default")
puts x # => "some_value"
eCA9IChob2dlIHJlc2N1ZSAiZGVmYXVsdCIpCnB1dHMgeCAjID0+ICJkZWZhdWx0IgoKIyBwdXRzIGhvZ2UgIyBOYW1lRXJyb3Ig44GT44GT44Gn44GvaG9nZeOBr+Wumue+qeOBr+OBleOCjOOBpuOBhOOBquOBhAoKaG9nZSA9ICJzb21lX3ZhbHVlIgp4ID0gKGhvZ2UgcmVzY3VlICJkZWZhdWx0IikKcHV0cyB4ICMgPT4gInNvbWVfdmFsdWUiCg==