From: rooby shoez Date: 2012-05-29T20:50:45+09:00 Subject: Re: how to create 'numbered symbols' in iterator? both of those ways give me errors that are NOT present when I use this { key0: OpenSSL::Digest::SHA256.new.digest("1 #{key}"), key1: OpenSSL::Digest::SHA256.new.digest("2 #{key}"), key2: OpenSSL::Digest::SHA256.new.digest("3 #{key}"), key3: OpenSSL::Digest::SHA256.new.digest("4 #{key}") } the error is: `[]': can't convert Symbol into Integer (TypeError) and it is from here r = r_operation(subkeys[:key0], l, r) -- Posted via http://www.ruby-forum.com/.