From: neubyr Date: 2011-04-20T15:07:09+09:00 Subject: using hash keys as object name How do I assign hash's key as an object name? For example I have a hash as: fruits = {"apple" => ["green", "red"], "melons" => ["water", "musk"] } I would like to create a File or String objects by reading above hash, something like fruits.keys.each {|k| "#{k}" = String.new} Any hints or suggestions on how to do this will be really helpful. thanks, neuby.