This method is excellent. You can also use a shortcut here:
x.reduce(:*) 
http://www.ruby-doc.org/core-2.1.1/Enumerable.html#method-i-reduce