Class: Graft::Stack
- Inherits:
-
Array
- Object
- Array
- Graft::Stack
- Defined in:
- lib/graft/stack.rb
Instance Method Summary collapse
Instance Method Details
#call(env = {}) ⇒ Object
5 6 7 |
# File 'lib/graft/stack.rb', line 5 def call(env = {}) head.call(tail, env) end |
#head ⇒ Object
9 10 11 12 13 |
# File 'lib/graft/stack.rb', line 9 def head # TODO: raise EmptyStackError? first end |