Class: String

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

Instance Method Summary collapse

Instance Method Details

#shellescapeObject



19
20
21
# File 'lib/heroku/helpers.rb', line 19

def shellescape
	empty? ? "''" : gsub(/([^A-Za-z0-9_\-.,:\/@\n])/n, '\\\\\\1').gsub(/\n/, "'\n'")
end