From: Abder-Rahman Ali Date: 2010-07-14T08:26:20+09:00 Subject: How can I get the result of this equation I have written this a script like this: values = [10, 20, 30].each {|value| value + (value * 10)} puts value In this case, I get: undefined local variable or method `value' for main:Object (NameError) I'm trying to see the result of the equation value + (value * 10) What should I do? Thanks. -- Posted via http://www.ruby-forum.com/.