Considere: a = [10,20,30,40,50,60] a.shift a.push 30 while a.length > 1 do a.pop end puts a No programa acima,