instance method
String#shellsplit
() -> ::Array[::String]
str.shellsplit => array
lib/shellwords.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/shellwords.rb, line 227
def shellsplit
Shellwords.split(self)
end
Splits str into an array of tokens in the same way the UNIX Bourne shell does.
See Shellwords.shellsplit for details.