1 2 3 4 5 6 7 8
def foo(num) #Verifica se o código é válido if num > 0 and num < 10 puts “wrong code” end return num += @delta end