0
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 to make calculations with whole elements that are inside an array in Ruby, I tried the above code but without success.