From: Daniel Berger Date: 2002-07-25T04:05:32+09:00 Subject: Dynamically determining a class or module's file name Hi all, This may seem an odd question but, is there a way to dynamically determine the filename that a class and/or module is written in? In other words, if I have a file called "myclass.rb", and within that file I have the class called "SomeClass", is there a Module or Class method that let's me determine the name of the file? # e.g. imaginary method class SomeClass puts sourcefile -> myclass.rb end Regards, Dan