Method: Plugins::AroundStack::WrappedBlock#call
- Defined in:
- lib/plugins/around_stack.rb
#call(call_stack, *args) ⇒ Object
Call the wrapped block, ignoring the scope and call_stack arguments.
96 97 98 99 100 101 102 |
# File 'lib/plugins/around_stack.rb', line 96 def call(call_stack, *args) raise Errors::Error, 'receiving non-empty call stack' unless call_stack.empty? block.call(*args).tap { |retval| @retval = retval @_called = true } end |