Module Shellwords
In: lib/shellwords.rb

This module is originally a port of shellwords.pl, but modified to conform to POSIX / SUSv3 (IEEE Std 1003.1-2001).

Examples:

  require 'shellwords'
  words = Shellwords.shellwords(line)

or

  require 'shellwords'
  include Shellwords
  words = shellwords(line)

Methods

Public Instance methods

Split text into an array of tokens in the same way the UNIX Bourne shell does.

See the Shellwords module documentation for an example.

To view or add comments on this documentation, please go to the API wiki.

[Validate]