I'm still in my first 24 hours of seriously using classes, so am still 
pretty ignorant. I've read a lot, but that only goes so far.

I have a main program which loads some libraries, then calls my main 
method, which call a class -

%w(rubygems ruby-debug readline strscan logger fileutils).each{ |lib| 
require lib }
main

Inside the class is this line -

opt = Readline::readline( ":: " )

which generates this error -
uninitialized constant SetLogLevel::Readline (NameError)

Two questions:
1. Is my class really so unaware of the calling program's namespace (I 
rather think yes).
2. If so, what is the best way to make sure the class has access to the 
libraries already loaded in the calling program?

Thanks for any help!

T.

-- 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< tc / tomcloyd.com >> (email)
<< TomCloyd.com >> (website) 
<< sleightmind.wordpress.com >> (mental health weblog)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~