On Thu, Jan 10, 2013 at 10:35 PM, Henry Maddocks <[email protected]> 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 > => #<Object:0x007fb679293268> > 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/ -- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
