Re: nuby: %w to understand quotes

Ross B. [mailto:[email protected]] 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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs