On 9 December 2010 06:09, Priya Buvan <li...@ruby-forum.com> wrote:
> I'm having unknown number of hashes. How to merge all those hashes into
> single hash?

use "merge"... http://ruby-doc.org/core/classes/Hash.html#M002880


When you say you have "unknown number", are they in an array? if so,
iterate it an merge them...

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to