From: Aaron Smith Date: 2007-08-27T15:55:30+09:00 Subject: Re: Override object initialization, add a filepath attribute Alex Gutteridge wrote: > On 27 Aug 2007, at 15:06, Aaron Smith wrote: > >> Great, this will work perfectly. thanks again >> -- >> Posted via http://www.ruby-forum.com/. > > ??? > > But it doesn't work! In my 'solution' the filepath attribute is > always set to 'filepath.rb' instead of the name of the file the > object is defined in. It's useless as far as I can see! Am I > completely missing what you wanted? > > Alex Gutteridge > > Bioinformatics Center > Kyoto University OH yeah, sorry, I just assumed that would work. I am wanting the file path where the class is defined, not just the top level ruby script that is running.. I'll give this a shot tomorrow and see if I can figure it out based on what you've written. -- Posted via http://www.ruby-forum.com/.