From: Ralph Shnelvar Date: 2010-01-18T00:35:27+09:00 Subject: Re: Which source file? Marnen Laibow-Koser wrote: > Ralph Shnelvar wrote: >> Windows development environment. > > How is that relevant? I don't know! How files are handled might be different on different development platforms. >> >> Is there a convenient way to find out which source module > > What's a source module? A file with source code in it, Marnen. Ask a silly question ... The word "module" ... like "include" ... varies in meaning depending on context. > >> defined/defines the class Devise::Mapping ? > > Yes. Use grep. Or look in the rdoc. > > And remember that it might be defined in more than one place, since > modules and classes can be reopened. If, in a debugger, I enter the name of a block, the source file (er, module) and line number is displayed. I like that. It's very useful. I was hoping that there might have been a way (perhaps an array of names and line numbers of source files?), that Ruby/Rails would keep track of all the places that a class had been constructed from? -- Posted via http://www.ruby-forum.com/.