Module: ActionPush::Concerns::RegisterInterceptor
- Included in:
- Base
- Defined in:
- lib/action_push/concerns/register_interceptor.rb
Constant Summary collapse
- DEFAULT_INTERCEPTOR =
->(_instance, _provider, _push, &block) do block.call end
Instance Method Summary collapse
Instance Method Details
#interceptor ⇒ Object
10 11 12 |
# File 'lib/action_push/concerns/register_interceptor.rb', line 10 def interceptor @interceptor || DEFAULT_INTERCEPTOR end |
#register_interceptor(handler) ⇒ Object
14 15 16 |
# File 'lib/action_push/concerns/register_interceptor.rb', line 14 def register_interceptor(handler) @interceptor = handler end |