On Tue, Nov 29, 2011 at 9:35 AM, Robert Klemme
<shortcutter / googlemail.com> wrote:

PS: Forgot to include class Source which I used.

class Source
  include Enumerable

  def each
    5.times do |i|
      printf "before %2d\n", i
      yield i
      printf "after  %2d\n", i
    end
  end
end



-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/