Forum: Ruby Re: nuby: %w to understand quotes

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6087a044557d6b59ab52e7dd20f94da8?d=identicon&s=25 Peña, Botp (Guest)
on 2006-04-24 04:28
(Received via mailing list)
Ross Bamford [mailto:rossrt@roscopeco.co.uk] wrote:

# Perhaps you are looking for shellwords?
#
# require 'shellwords'
# Shellwords.shellwords %{this is "just a" test}
# # => ["this", "is", "just a", "test"]

Yes! very cool. That's it, Ross.

I am also considering Ara's yaml solution for some (very long text)
cases.

Thank you, Ross and Ara.

kind regards -botp
This topic is locked and can not be replied to.