Hi,

At Fri, 1 Feb 2002 06:23:56 +0900,
Paul Brannan <paul / atdesk.com> wrote:
>   class Bar
>     def initialize(t)
>       extend(t)
>       p A
>     end
>   end
> 
>   Bar.new(Config2)
> 
> I get an exception.  Is Config2 not one of Bar's ancestors?

As Alan wrote, extend and include are different.

You need to use singleton class to access a costant in an
extended module.

    p class << self; A end
    p class << self; self end::A	# 1.6 or later

-- 
Nobu Nakada