Method: Containers::Stack#pop

Defined in:
lib/containers/stack.rb

#popObject

Removes the next item from the stack and returns it.

s = Containers::Stack.new([1, 2, 3])
s.pop #=> 3
s.size #=> 2


45
46
47
# File 'lib/containers/stack.rb', line 45

def pop
  @container.pop_back
end