Hello
 the code is like this
hash_fruit = {}
hash_fruit ['mango']='orange'
hash_fruit ['banana']='yellow'
hash_fruit ['grapes']='green'
hash_fruit ['apple'] = 'red'
hash_fruit .each do |key , value |
puts key + '  '+value
  end

and the answer is
apple red
banana yellow
mango orange
grapes green

why is it so?
-- 
Posted via http://www.ruby-forum.com/.