Concatenate hash

Hello,

Is there a built-in method to concatenate 2 hashes? Couldn’t find
anything on
this topic.

Thanks
Cliff.

Is there a built-in method to concatenate 2 hashes? Couldn’t
find anything on this topic.

There’s no such thing as concatenating hashes. But Hash#merge
comes close…

gegroet,
Erik V. - http://www.erikveen.dds.nl/

On Sun, Jun 25, 2006 at 12:00:41AM +0900, Erik V. wrote:

There’s no such thing as concatenating hashes. But Hash#merge
comes close…

Thank you. That’s just what was looking for.

There’s also update. Depends on what you need.

robert

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