Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #3378
| From | Siratinee Sukachai <ploy.sukachai@gmail.com> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Split dot and equa sign by recursive |
| Date | 2011-04-22 05:52 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <834998812ddf8cd759b85d568ed321db@ruby-forum.com> (permalink) |
I need to do a function which can split dot and equa by recursive.
But I don't have any ideas to do on recursive.
This is the example of my strings
Member.certPm=PM Certification
projects.risks.Index.flash_downloading=Downloading report, please wait..
The numbers of dot it is different. I need to split these strings and
set on hashes
Member => {certPm => PM Certification}
projects => {risks => {Index => {flash_downloading => Downloading
report, please wait..}}}
Do you have any guide for me to do this?
--
Posted via http://www.ruby-forum.com/.
Back to comp.lang.ruby | Previous | Next — Next in thread | Find similar | Unroll thread
Split dot and equa sign by recursive Siratinee Sukachai <ploy.sukachai@gmail.com> - 2011-04-22 05:52 -0500
Re: Split dot and equa sign by recursive Harry Kakueki <list.push@gmail.com> - 2011-04-23 07:04 -0500
Re: Split dot and equa sign by recursive Sira PS <ploy.sukachai@gmail.com> - 2011-04-23 12:36 -0500
Re: Split dot and equa sign by recursive Harry Kakueki <list.push@gmail.com> - 2011-04-23 22:19 -0500
Re: Split dot and equa sign by recursive Brian Candler <b.candler@pobox.com> - 2011-04-23 07:14 -0500
Re: Split dot and equa sign by recursive Ryan Davis <ryand-ruby@zenspider.com> - 2011-04-23 10:37 -0500
Re: Split dot and equa sign by recursive Sira PS <ploy.sukachai@gmail.com> - 2011-04-23 23:28 -0500
csiph-web