From: Hugh Evans Date: 2009-04-05T12:01:48+09:00 Subject: Re: retrieve ruby script file name Yuguri Azuma wrote: > Hello Group, > > Is there any way to retrieve the file name of the script that you are > executing? > For example if you have a ruby script named kitty.rb : > > $./kitty.rb > script name is 'kitty.rb' > > Thank you, puts File.basename(__FILE__) -- Posted via http://www.ruby-forum.com/.