numeros = [1, 2]
class C
def calcule_array(*numeros)
puts a + b
end
end
numeros = C.new
puts numeros
I would like to know how I can do calculations with integers that are inside an array in Ruby, I tried the above code but without success.