method

argv

v2_6_3 - Show latest stable - Class: ARGF
argv()
public

Returns the ARGV array, which contains the arguments passed to your script, one per element.

For example:

$ ruby argf.rb -v glark.txt

ARGF.argv   #=> ["-v", "glark.txt"]