method

argv

Importance_1
v2_1_10 - Show latest stable - 0 notes - 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"]
Show source
Register or log in to add new notes.