Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/soul_points/helpers.rb
Instance Method Summary collapse
Instance Method Details
#shellescape ⇒ Object
106 107 108 |
# File 'lib/soul_points/helpers.rb', line 106 def shellescape empty? ? "''" : gsub(/([^A-Za-z0-9_\-.,:\/@\n])/n, '\\\\\\1').gsub(/\n/, "'\n'") end |