Hi.  I am a little confused with the use of ":" like,

hash = { :water => 'wet', :fire => 'hot' }
puts hash[:fire] # Prints:  hot

in constructing the hash in this example, ":water" is the key for "wet".
I understand that.  But what is the difference between "water" and
":water"?

I am guessing that ":water" works as a variable...but not quite sure.

Sorry if this is a too elementary question.

soichi

-- 
Posted via http://www.ruby-forum.com/.