From: James Hughes Date: 2006-01-21T08:02:52+09:00 Subject: Re: Inserting On 1/19/06, Paul Brannan wrote: > > You can also create a mixin and extend Foo::Bar with the mixin. If you > do this, instance methods in the mixin will be available as class > methods in Foo::Bar and derived classes. Ok, I'm doing something like the following: module FooBarHelper class << Foo::Bar # some instance methods, which reference class vars from Foo::Bar end end Then, in classes A and B I do "include FooBarHelper". When I run this I get "uninitialized class variable" errors for the Foo::Bar's class vars. So, to state my question again, how can I extend the functionality of the Foo::Bar library (short of hacking it's source directly), while still maintaining access to the class variables defined in Foo::Bar? Is this even possible? jh jh -- James Hughes Web application developer Centre for Health Services and Policy Research Vancouver, BC