method

argv

Importance_1
Ruby latest stable (v2_5_5) - 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.