From: Robert Klemme Date: 2013-01-11T07:05:44+09:00 Subject: Re: Extending class On Thu, Jan 10, 2013 at 10:35 PM, Henry Maddocks wrote: > > On 10/01/2013, at 8:29 PM, Robert Klemme wrote: > >> >> Well, it does because you can extend *anything*: > > Pretty sure the OP wants to do this > > 1.9.3p327 :001 > class M; def honk; puts "---"; end end > => nil > 1.9.3p327 :002 > o = Object.new > => # > 1.9.3p327 :003 > o.extend M > TypeError: wrong argument type Class (expected Module) I'm pretty sure that he does not want that. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/