Module: Shellwords

Defined in:
lib/fedux_org_stdlib/core_ext/shellwords/clean.rb

Overview

Shellwords

Class Method Summary collapse

Class Method Details

.shellclean(string) ⇒ String Also known as: clean

Clean string based shell pattern

Parameters:

  • string (String)

    The string which should be clean up

Returns:

  • (String)

    Every character which needs to be escape in a shell has been removed



14
15
16
# File 'lib/fedux_org_stdlib/core_ext/shellwords/clean.rb', line 14

def shellclean(string)
  shellescape(string).gsub(/\\./, '')
end