Let me just point out that you don't have to have the "end"s on separate lines:

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