Method: String#shellescape

Defined in:
lib/shellwords.rb

#shellescapeObject

call-seq:

str.shellescape => string

Escapes str so that it can be safely used in a Bourne shell command line.

See Shellwords.shellescape for details.

[View source]

238
239
240
# File 'lib/shellwords.rb', line 238

def shellescape
  Shellwords.escape(self)
end