From: nobu.nokada@... Date: 2002-02-01T10:50:30+09:00 Subject: Re: strange behavior Hi, At Fri, 1 Feb 2002 06:23:56 +0900, Paul Brannan 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