On Thu, Jan 10, 2013 at 10:35 PM, Henry Maddocks <hmaddocks / me.com> 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/