From: "Iñaki Baz Castillo" Date: 2012-05-09T23:32:52+09:00 Subject: Re: How to make a given klass to include a module 2012/5/9 Robert Klemme : > Maybe also add an additional test: > > irb(main):001:0> class A;end > => nil > irb(main):002:0> module M; def hello; "hello" end end > => nil > irb(main):003:0> M===A || A.send(:include, M) > => A > irb(main):004:0> A.new.hello > => "hello" Hi, I don't get the point of that. M===A always returns false regardless A includes M: module MMM ; end class AAA include MMM end MMM===AAA => false -- Iñaki Baz Castillo