From: Luis Lavena Date: 2008-12-30T03:24:36+09:00 Subject: Re: Include constants from one scope into another ( A::* ) On Dec 29, 3:32 pm, Alexey Petrushin wrote: > Hello! Is there a way to include constants from one class into another? > Something like "include A::*"? > > SAMPLE: > >     class A >         class B; end >         class C; end >         class D; end >     end > >     class E >         # include A::* >         B; C; D; >     end > -- > Posted viahttp://www.ruby-forum.com/. module Foo class A; end class B; end class C; end end module Bar include Foo end Bar::A.new HTH, -- Luis Lavena