From: Fredrik [mailto:fredjoha / gmail.com]=20
# Ruby (1.8.6) seems to be missing numeric conversion methods for
# Arrays :
# class Array
#   def to_f
#     self.map { |i| i.to_f }
#   end
# end
# (and the same for to_i)
# Did somebody forget to include that? :) Surely there is no reason to
# NOT have this method for the Array class.

you assume arrays contain numbers only ??

try it eg on,

%w(this is a test)
[[],[[]],nil,Object.new]


kind regards -botp