stack = [] stack.push 1 stack.push 2 stack.push 3 until { stack.empty? } { p stack.pop }