Hi,


Given a class:

class Foo

  class << self

    def foo

      puts 'foo'

    end

  end

end


How do I write a module, so that when included in Foo it will wrap the 
method foo so that Foo.foo will print:

bar

foo


?


Thank you

Ittay


  


-- 
--
Ittay Dror <ittay.dror / gmail.com>