missing exceptions editor conventions for rescue/ensure in method body #6

Open
riffraff opened this Issue Sep 8, 2011 · 0 comments

Comments

Projects
None yet
1 participant

riffraff commented Sep 8, 2011

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment