Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #3364
| From | Giampiero Zanchi <cidza@tin.it> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Re: Can I append hash to hashes? |
| Date | 2011-04-22 02:40 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <42766c71b8cc60f46f4679ef0befae51@ruby-forum.com> (permalink) |
| References | <3d3ff00fedc9442b82823de5ba1d77ae@ruby-forum.com> |
maybe I cannot understand your problem (?)
hsh = {:member => {:email => "Email", :name => "Name", :lastname =>
"Lastname"}}
p hsh
internal_h = {:email => "Email", :name => "Name", :lastname =>
"Lastname"}
external_h = {}
external_h[:member] = internal_h
p external_h
--
Posted via http://www.ruby-forum.com/.
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Can I append hash to hashes? Siratinee Sukachai <ploy.sukachai@gmail.com> - 2011-04-22 02:22 -0500
Re: Can I append hash to hashes? Giampiero Zanchi <cidza@tin.it> - 2011-04-22 02:40 -0500
Re: Can I append hash to hashes? Quintus <sutniuq@gmx.net> - 2011-04-22 02:53 -0500
Re: Can I append hash to hashes? Siratinee Sukachai <ploy.sukachai@gmail.com> - 2011-04-22 03:13 -0500
Re: Can I append hash to hashes? Robert Dober <robert.dober@gmail.com> - 2011-04-22 04:07 -0500
Re: Can I append hash to hashes? Siratinee Sukachai <ploy.sukachai@gmail.com> - 2011-04-22 05:43 -0500
csiph-web