Hopefully this isn't the most complex question in the world...
How can you determine the source file that a Class is using?
For example, I'd like to find the source file on my hard drive that is supporting the class Feed in the below example.
Feedzirra::Feed.location_to_source_implementation
Does anyone know the syntax for this?
AFAIK there's no *simple* syntax for this.
If you need to know your environment better you can try a Gem.default_path and join, but it seems like it won't be enough.
If I had to go through all this pain (and I'd sure try to avoid it as much as possible) I would use SCRIPT_LINES___
SCRIPT_LINES__ = { }
require 'net/http'
p SCRIPT_LINES__