class Alan::DPA
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/alan/dpa.rb, line 3 def initialize super @stack = [] end
Public Instance Methods
pop()
click to toggle source
# File lib/alan/dpa.rb, line 12 def pop @stack.pop end
push(s)
click to toggle source
# File lib/alan/dpa.rb, line 8 def push(s) @stack.push s end