shellsplit

shellsplit(line)
Class Public methods

Splits a string into an array of tokens in the same way the UNIX Bourne shell does.

argv = Shellwords.split('here are "two words"')
argv #=> ["here", "are", "two words"]

String#shellsplit is a shortcut for this function.

argv = 'here are "two words"'.shellsplit
argv #=> ["here", "are", "two words"]

shellwords split

doc_ruby_on_rails
2015-05-14 22:29:16
Comments
Leave a Comment

Please login to continue.