Re: nuby: %w to understand quotes


#1

Ross B. [mailto:removed_email_address@domain.invalid] 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