Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Does this class exist"?

Status
Not open for further replies.

Grays42

Programmer
Feb 9, 2008
1
US
I need a way to globally determine whether a class exists (i.e. whether the corresponding file has been loaded). For example, let's say over in file A, class "ABC" is defined with some class methods. file B needs to use the methods of class ABC, but since the files are in different directories, I don't want to use a require statement. How can I check whether the class ABC even exists without a begin/rescue statement?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top