Hi George!

> I would like to find the filename where a given class is defined.

Since a class can be spread over multiple files, you have to define which one(s) 
you want to get.

 > class MyClass
 >   SOURCE_FILENAME = __FILE__
 >   ...
 > end
 >
 > This is inelegant though, is there a better solution?

I cannot think of something simpler / better / more elegant...

Regards,
Pit