Sha256: 8d12cf6e5493e38073c32abe135bc08bd8421d311f9d553966159a0eaf6bdf33

Contents?: true

Size: 435 Bytes

Versions: 56

Compression:

Stored size: 435 Bytes

Contents

# encoding: utf-8
require 'shellwords'

# Shellwords
module Shellwords
  class << self
    # Clean string based shell pattern
    #
    # @param [String] string
    #   The string which should be clean up
    #
    # @return [String]
    #   Every character which needs to be escape in a shell has been removed
    def shellclean(string)
      shellescape(string).gsub(/\\./, '')
    end
    alias_method :clean, :shellclean
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
fedux_org-stdlib-0.10.6 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.10.5 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.10.4 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.10.3 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.10.2 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.10.1 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.10.0 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.9.8 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.9.7 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.9.6 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.9.5 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.9.4 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.9.2 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.9.1 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.9.0 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.8.11 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.8.10 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.8.9 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.8.8 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
fedux_org-stdlib-0.8.7 lib/fedux_org_stdlib/core_ext/shellwords/clean.rb