Module: Mario::Hats::Windows
- Included in:
- Platform::Windows7, Platform::WindowsNT
- Defined in:
- lib/mario/hats/windows.rb
Instance Method Summary collapse
-
#shell_escape_path(str) ⇒ String
Escapes a file paths for use in system calls and execute statements.
Instance Method Details
#shell_escape_path(str) ⇒ String
Escapes a file paths for use in system calls and execute statements
7 8 9 10 |
# File 'lib/mario/hats/windows.rb', line 7 def shell_escape_path(str) #Wrap windows paths with white space in quotes str =~ /\s/ ? "\"#{str}\"" : str end |