Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Whenever I test my code, I get the following error: Any help would be grealty appreciated.

    +': nil can't be coerced into Fixnum (TypeError) from block in sum'
    from each' from sum'
    from `
    '

    # Sum Numbers
    	def sum(numbers)
    	if (numbers.any?) && (numbers.each { |i| i.class != String} )
    		numbers.each {|total, i| total += i}
    	else
    		return 0
    	end
    	end