Module: BBLib::Command

Defined in:
lib/bblib/system/command.rb

Class Method Summary collapse

Class Method Details

.quote(arg) ⇒ Object



3
4
5
# File 'lib/bblib/system/command.rb', line 3

def self.quote(arg)
  arg =~ /\s+/ ? "\"#{arg}\"" : arg.to_s
end