Sha256: 0bc6f3725b4a75203f2a6e1ff66a1a91aceb5a1924054c2dbaf5f7884a4a5f39
Contents?: true
Size: 820 Bytes
Versions: 11
Compression:
Stored size: 820 Bytes
Contents
#-- # Author:: Tyler Rick # Copyright:: Copyright (c) 2007 QualitySmith, Inc. # License:: Ruby License # Submit to Facets?:: Yes. Symbol#to_proc -> Facets #++ require 'rubygems' require 'extensions/symbol' unless Symbol.method_defined?(:to_proc) require 'facets/core/kernel/require_local' require_local '../string/shell_escape.rb' class Array def shell_escape self.map(&:shell_escape) end end # _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # =begin test require 'test/unit' class TheTest < Test::Unit::TestCase def test_1 assert_equal ['a'], ['a'].shell_escape end def test_2 assert_equal ["arg1", "'multiple words for single argument'"], ['arg1', 'multiple words for single argument'].shell_escape end end =end
Version data entries
11 entries across 11 versions & 1 rubygems