Method: Process#argv0
- Defined in:
- ruby.c
#argv0 ⇒ Object (private)
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.
2211 2212 2213 2214 2215 |
# File 'ruby.c', line 2211 static VALUE proc_argv0(VALUE process) { return rb_orig_progname; } |