method

argv0

v2_5_5 - Show latest stable - Class: Process
argv0()
public

Returns the name of the script being executed. The value is not affected by assigning a new value to $0.

This method first appeared in Ruby 2.1 to serve as a global variable free means to get the script name.