From: Max Williams Date: 2007-12-11T20:51:57+09:00 Subject: Dynamically generate a symbol name I'm sure this is simple but i can't work out the syntax - if i want to use a bunch of symbols that are named :object0, :object2 ... :object9, how can i do something like 10.times do |n| do_something_with(:object#{n} => "foo") end ie, do the same thing with but pass through a differently named symbol each time? thanks max -- Posted via http://www.ruby-forum.com/.