Sha256: d34797bde16f2b33c6b274a0969a6cb832587a2de8731df71c035a6285f107fa
Contents?: true
Size: 374 Bytes
Versions: 63
Compression:
Stored size: 374 Bytes
Contents
module Vagrant module Util module ShellQuote # This will auto-escape the text with the given quote mark type. # # @param [String] text Text to escape # @param [String] quote The quote character, such as " def self.escape(text, quote) text.gsub(/#{quote}/) do |m| "#{m}\\#{m}#{m}" end end end end end
Version data entries
63 entries across 56 versions & 8 rubygems