Method: Containers::Stack#each
- Defined in:
- lib/containers/stack.rb
#each(&block) ⇒ Object
Iterate over the Stack in LIFO order.
63 64 65 |
# File 'lib/containers/stack.rb', line 63 def each(&block) @container.each_backward(&block) end |