From: Marcelo Barbudas Date: 2009-05-04T03:20:18+09:00 Subject: Re: modules and classes question Hi, > I'm not sure what your issue is, so let's start with this: > > module Library > > class Main > def Main.initialize_stuff > puts "initializing" > end > end > > class Resource > def Resource.meth > puts "executing meth" > end > end > > end > > Thanks for the answer. Resource has to call a function from Main, or return an error if Main isn't initialized. I made Resource a subclass of Main because I wanted it to be the main connection class. -- M.