Module: Shell
- Defined in:
- lib/galaxy/shell.rb
Class Method Summary collapse
Class Method Details
.quote(string) ⇒ Object
2 3 4 5 |
# File 'lib/galaxy/shell.rb', line 2 def self.quote(string) string = string.gsub("'", %q('\\\'')) "'#{string}'" end |