David Garamond
10/20/2004 7:38:00 AM
Since I don't like code in nested modules to be indented so deeply, I
tend to do this:
module Foo; module Bar; module Baz; end end end
module Foo::Bar::Baz
... # only 1 level indented
end
I was wondering how people that prefer
module Foo
module Bar
module Baz
...
end
end
end
write their code, especially with auto-indenting editor, like emacs +
ruby-mode. Do you just let the editor indent it deeply or do you resist
the indentation and reverse what the editor does for you? Or, do you
tend to avoid nested modules because of this?
--
dave