Sha256: b056afb79759ee34ecfb7761b77dc92c0ec511a1ed05b17a995806ea377620ac

Contents?: true

Size: 124 Bytes

Versions: 5

Compression:

Stored size: 124 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bblib-2.0.5 lib/bblib/system/command.rb
bblib-2.0.4 lib/bblib/system/command.rb
bblib-2.0.3 lib/bblib/system/command.rb
bblib-2.0.1 lib/bblib/system/command.rb
bblib-2.0.0 lib/bblib/system/command.rb