rubyist
rubyist copied to clipboard
missing exceptions editor conventions for rescue/ensure in method body
FWIW, I prefer to use an indent of one when the normal indent is two for a block
def foo
bar
rescue
baz
ensure
quux
end
There are some fuzzy reasons for this (such as "a rescue clause is not on the same level as normal code and can be added later") which are pretty arguable, so YMMV, but I think something should be present anyway