Hal E. Fulton
9/30/2006 3:53:00 AM
Timothy Hunter wrote:
> Joe Van Dyk wrote:
>
>> Hi,
>>
>> If I launch a Ruby process with:
>> ruby something.rb lots of "stuff here" and I want all 'of it'
>>
>> How can I get a string from inside the ruby process with:
>> lots of "stuff here" and I want all 'of it'
>> in it?
>>
> ARGV is an array of the tokens on the command line that follow the name
> of the script. If you want them all in one string you can use the join
> method to join them together.
>
> puts ARGV.join(' ')
>
Of course, if you (the OP) want the quotes, you'll have to escape
them or the shell will strip them.
Hal