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