class Rox::Core::CoreStack
Public Class Methods
new()
click to toggle source
# File lib/rox/core/roxx/core_stack.rb, line 4 def initialize @items = [] end
Public Instance Methods
peek()
click to toggle source
# File lib/rox/core/roxx/core_stack.rb, line 17 def peek @items[-1] end
pop()
click to toggle source
# File lib/rox/core/roxx/core_stack.rb, line 13 def pop @items.pop end
push(item)
click to toggle source
# File lib/rox/core/roxx/core_stack.rb, line 8 def push(item) @items << item nil end