On Sun, 9 Dec 2001, David Alan Black wrote: > I don't think #extend will give you access to constants defined > in a module: > Interesting. It will add the constants and they can be accessed view the methods, but you cannot access the constants directly. Anyone know why? module M C = 2 def c puts C end end class A; end a=A.new a.extend M a.c # => 2 ========================================================= Jim Freeze jim / freeze.org --------------------------------------------------------- Today is a fine day for Ruby programming. http://www.freeze.org =========================================================