ok resolved it

forgot the use of the star operator....

def calculate ranges
  prod = ranges.shift.product(*ranges)
  puts prod.to_s
end

-- 
Posted via http://www.ruby-forum.com/.