Sha256: cdbabc47d5e8bcbd1ad8880db67d8f36d7b83f33d01a10d318a8fc6dbdc98829

Contents?: true

Size: 858 Bytes

Versions: 6

Compression:

Stored size: 858 Bytes

Contents

#--
# Author::    Tyler Rick
# Copyright:: Copyright (c) 2007 QualitySmith, Inc.
# License::   Ruby License
# Submit to Facets?:: Yes.
#++

$LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
require 'rubygems'
require 'facets/symbol/to_proc'
require 'facets/kernel/require_local'
require_local '../string/shell_escape.rb'

require 'pp'
class Array
  def shell_escape
    self.map(&:shell_escape).map(&:to_s)
  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

6 entries across 6 versions & 1 rubygems

Version Path
quality_extensions-1.1.6 lib/quality_extensions/array/shell_escape.rb
quality_extensions-1.1.2 lib/quality_extensions/array/shell_escape.rb
quality_extensions-1.1.0 lib/quality_extensions/array/shell_escape.rb
quality_extensions-1.1.1 lib/quality_extensions/array/shell_escape.rb
quality_extensions-1.1.3 lib/quality_extensions/array/shell_escape.rb
quality_extensions-1.1.4 lib/quality_extensions/array/shell_escape.rb