Class: Seedify::CallStack

Inherits:
Object
  • Object
show all
Defined in:
lib/seedify/call_stack.rb

Class Method Summary collapse

Class Method Details

.call(proc) ⇒ Object



4
5
6
7
8
# File 'lib/seedify/call_stack.rb', line 4

def call(proc)
  stack.push(proc)
  proc.call
  stack.pop
end

.lastObject



10
11
12
# File 'lib/seedify/call_stack.rb', line 10

def last
  stack.last
end