From: "Iñaki Baz Castillo" Date: 2011-01-18T03:32:42+09:00 Subject: Re: initialize() in a module, is it correct? El día 17 de enero de 2011 19:08, Jesús Gabriel y Galán escribió: >> However I would like to know if there could be an issue by using it. > > I don't think so. initialize it's just an instance method, just like > any other, with the same lookup path: > > irb(main):001:0> module M > irb(main):002:1> def test; puts "test from M"; end > irb(main):003:1> end > => nil > irb(main):015:0> class A > irb(main):016:1> include M > irb(main):017:1> def test; puts "test from A"; super; end > irb(main):018:1> end > => nil > irb(main):019:0> A.new.test > test from A > test from M This is what I expected (and hoped) :) Thanks a lot. -- Iñaki Baz Castillo