<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Ruby hash merge (Add element to Ruby hash)</title>
	<atom:link href="http://www.rubyonrailsexamples.com/ruby-hash/ruby-hash-merge/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rubyonrailsexamples.com/ruby-hash/ruby-hash-merge/</link>
	<description>Ruby on Rails tutorials</description>
	<pubDate>Wed, 23 Jul 2008 21:28:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Andrei</title>
		<link>http://www.rubyonrailsexamples.com/ruby-hash/ruby-hash-merge/#comment-79</link>
		<dc:creator>Andrei</dc:creator>
		<pubDate>Thu, 03 Jan 2008 15:32:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/ruby-hash-merge/#comment-79</guid>
		<description>users_hash[key] = value

Why not this method?</description>
		<content:encoded><![CDATA[<p>users_hash[key] = value</p>
<p>Why not this method?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hamza Khan-Cheema</title>
		<link>http://www.rubyonrailsexamples.com/ruby-hash/ruby-hash-merge/#comment-78</link>
		<dc:creator>Hamza Khan-Cheema</dc:creator>
		<pubDate>Wed, 02 Jan 2008 08:11:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/ruby-hash-merge/#comment-78</guid>
		<description>Hi,

Thanks, for this,

You may also want to mention that if there is a duplicate key in the new hash, it will overwrite  the original hash. 

So if I did this on the original hash:

users_hash.merge("tom" =&#62; "changed_password")

It would change the original hash , thus changing tom's password to be 'changed_password'.

Hamza</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks, for this,</p>
<p>You may also want to mention that if there is a duplicate key in the new hash, it will overwrite  the original hash. </p>
<p>So if I did this on the original hash:</p>
<p>users_hash.merge(&#8221;tom&#8221; =&gt; &#8220;changed_password&#8221;)</p>
<p>It would change the original hash , thus changing tom&#8217;s password to be &#8216;changed_password&#8217;.</p>
<p>Hamza</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony</title>
		<link>http://www.rubyonrailsexamples.com/ruby-hash/ruby-hash-merge/#comment-64</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Fri, 16 Nov 2007 15:47:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/ruby-hash-merge/#comment-64</guid>
		<description>Thank you, this is exactly what I was looking for.</description>
		<content:encoded><![CDATA[<p>Thank you, this is exactly what I was looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xin</title>
		<link>http://www.rubyonrailsexamples.com/ruby-hash/ruby-hash-merge/#comment-50</link>
		<dc:creator>Xin</dc:creator>
		<pubDate>Fri, 10 Aug 2007 07:39:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/ruby-hash-merge/#comment-50</guid>
		<description>Thanks for this example. Though it is simple, I found it useful.</description>
		<content:encoded><![CDATA[<p>Thanks for this example. Though it is simple, I found it useful.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
