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.

[Validate]

ruby-doc.org is a service of James Britt and Rising Tide Software, a Ruby application development company in Phoenix, AZ.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.