3 ms·
Oh the error handler example is kinda cool, especially paired with inline rescues def my_method .. code .. rescue FileNotFoundError => FileNotF
by rco8786 6y ago
Oh the error handler example is kinda cool, especially paired with inline rescues
def my_method
.. code ..
rescue FileNotFoundError => FileNotFoundHandler
rescue StandardError => StandardErrorHandler
end
But yea, as is so often the case with ruby, you can really shoot yourself if you try hard enough :P