class method
Process.argv0
() -> ::String
Process.argv0 → frozen_string
ruby.c
View on GitHub ↗
static VALUE
proc_argv0(VALUE process)
{
return rb_orig_progname;
}
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.