From: Bob Sanders Date: 2009-05-15T18:21:49+09:00 Subject: Ruby loops and definitions help? Hello. I'm looking to construct a loop that defines an array of [apple, banana, cherry] like this: @apple = apple @banana = banana @cherry = cherry I'm thinking it's something in this form: [apple, banana, cherry].each do |attribute| @*attribute* = attribute end ...but I have no idea what belongs in place of the *attribute*. Does anyone know? -- Posted via http://www.ruby-forum.com/.