List Info

Thread: Why can't I get on Top?




Why can't I get on Top?
user name
2006-10-02 01:05:11
Trans wrote:
> Produces:
>
>   false

That's correct. In that case self is an *instance* of
Object...

module Test
  def test
    puts 'hi'
  end
end
class << self
  include Test
end
test

...but Module#included tells you the module or class of the
including
scope; it doesn't pass the instance itself.

Regards,
Jordan


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )