Method: Plugins::BlockStack#call

Defined in:
lib/plugins/block_stack.rb

#call(*args) ⇒ Object



20
21
22
23
24
25
26
27
28
# File 'lib/plugins/block_stack.rb', line 20

def call(*args)
  @_stack.reverse_each { |block|
    if scope
      scope.instance_exec(*args, &block)
    else
      block.call(*args)
    end
  }
end