From: Austin Ziegler Date: 2002-11-07T11:55:04+09:00 Subject: Re: understanding modules/classes On Thu, 7 Nov 2002 10:27:02 +0900, Eric Schwartz wrote: > Okay, that's not a problem. But I can't figure out how to export > classes from my module into the global namespace. In Perl, I'd > just add the functions to @EXPORT, and be done with it. Can this > be done in Ruby as well, or am I just thinking about it the wrong > way? Should I be creating my CGI executable in that same module as > well? Or am I just over-organizing here? Easily enough to do: module Foo class Bar def Bar.baz puts "Foo::Bar::baz" end end end Foo::Bar.baz include Foo Bar.baz -austin -- Austin Ziegler, austin@halostatue.ca on 2002.11.06 at 21.52.58