From: George Moschovitis Date: 2005-01-28T20:20:52+09:00 Subject: [Q]: How can I find the filename where a class is defined? Hello everyone, I would like to find the filename where a given class is defined. One simple solution is the following: class MyClass SOURCE_FILENAME = __FILE__ .... end then the filename is: MyClass::SOURCE_FILENAME This is inelegant though, is there a better solution? Thanks in advance, George