On Tue, Jul 19, 2011 at 13:59, Benoit Daloze <eregontp / gmail.com> wrote:

> I don't think eeend is beautiful at all. Even if you had to write "end
> end" (on the same line) I'd prefer it.

Sort of like the way you already /can/ write nd end

Also, the nesting in the example can be aleviated if you would write the code as

    class MyModule::MyClass
      def my_method
        10.times do
          p :small if rand < 0.5
        end
      end
    end

And, if you simply can°«t live with the closing °»end°…s on separate lines:

    class MyModule::MyClass
      def my_method
        10.times do
          p :small if rand < 0.5
        end end end

or

    class MyModule::MyClass
      def my_method
        10.times do
          p :small if rand < 0.5
    end end end

depending on what you prefer.