Class: ConvenientService::Common::Plugins::CanHaveCallbacks::Middleware Private
- Inherits:
-
MethodChainMiddleware
- Object
- ConvenientService::Common::Plugins::CanHaveCallbacks::Middleware
- Defined in:
- lib/convenient_service/common/plugins/can_have_callbacks/middleware.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #any_method ⇒ Object private
-
#next(*args, **kwargs, &block) ⇒ Object
private
Can be any type.
Instance Method Details
#any_method ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 |
# File 'lib/convenient_service/common/plugins/can_have_callbacks/middleware.rb', line 17 intended_for any_method, entity: any_entity |
#next(*args, **kwargs, &block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns Can be any type.
28 29 30 31 32 33 34 35 36 |
# File 'lib/convenient_service/common/plugins/can_have_callbacks/middleware.rb', line 28 def next(*args, **kwargs, &block) run_before_callbacks(*args, **kwargs, &block) original_value = run_around_callbacks(*args, **kwargs, &block) run_after_callbacks(original_value, *args, **kwargs, &block) original_value end |