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/.