Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/shellwords.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) shelljoin

call-seq:

array.shelljoin => string

Builds a command line string from an argument list array joining all elements escaped for Bourne shell and separated by a space.

See Shellwords.shelljoin for details.



212
213
214
# File 'lib/shellwords.rb', line 212

def shelljoin
  Shellwords.join(self)
end