Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/ass_launcher/support/shell.rb
Overview
Monkey patch for [String]
Instance Method Summary collapse
Instance Method Details
#escape ⇒ Object
15 16 17 |
# File 'lib/ass_launcher/support/shell.rb', line 15 def escape Shellwords.escape self end |
#to_cmd ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/ass_launcher/support/shell.rb', line 6 def to_cmd if AssLauncher::Support::Platforms.windows?\ || AssLauncher::Support::Platforms.cygwin? "\"#{self}\"" else escape end end |