Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #3489
| From | Richard Sandoval <skolopen@yahoo.com> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Can I Add quotes to values in a array? or include quotes.. |
| Date | 2011-04-25 22:16 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <1564dc8f34b4628de596a92894889790@ruby-forum.com> (permalink) |
Please advise on my situation. I have something like this A Yaml file that contains Application: - App1 - App2 When I puts that yaml file for that application field, I get App1,App2. How can I add quotes to each application. I'd like my output to be "App1,App2" which includes the quotes in the output I was thinking maybe through the use of gsub but I'm still new to ruby. Could someone provide some aid? -- Posted via http://www.ruby-forum.com/.
Back to comp.lang.ruby | Previous | Next — Next in thread | Find similar | Unroll thread
Can I Add quotes to values in a array? or include quotes.. Richard Sandoval <skolopen@yahoo.com> - 2011-04-25 22:16 -0500
Re: Can I Add quotes to values in a array? or include quotes.. Nikita Baksalyar <n.baksalyar@yandex.ru> - 2011-04-25 23:49 -0500
Re: Can I Add quotes to values in a array? or include quotes.. 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-26 12:26 -0500
Re: Can I Add quotes to values in a array? or include quotes.. Alexander McMillan <alexandermcmillan@hotmail.com> - 2011-04-26 12:50 -0500
Re: Can I Add quotes to values in a array? or include quotes.. 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-26 16:30 -0500
Re: Can I Add quotes to values in a array? or include quotes.. 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-26 12:43 -0500
csiph-web