Method: Hanami::Utils::Callbacks::Chain#run
- Defined in:
- lib/hanami/utils/callbacks.rb
#run(context, *args) ⇒ Object
Runs all the callbacks in the chain. The only two ways to stop the execution are: raise or throw.
152 153 154 155 156 |
# File 'lib/hanami/utils/callbacks.rb', line 152 def run(context, *args) @chain.each do |callback| callback.call(context, *args) end end |