Class: Aquarium::Aspects::BeforeAdviceChainNode
- Inherits:
-
AdviceChainNode
- Object
- AdviceChainNode
- Aquarium::Aspects::BeforeAdviceChainNode
- Defined in:
- lib/aquarium/aspects/advice.rb
Constant Summary
Constants inherited from AdviceChainNode
Instance Method Summary collapse
- #advice_wrapper(jp) ⇒ Object
-
#initialize(options = {}) ⇒ BeforeAdviceChainNode
constructor
A new instance of BeforeAdviceChainNode.
Methods inherited from AdviceChainNode
#call, #call_advice, #each, #empty?, #invoke_original_join_point, #last, #size
Constructor Details
#initialize(options = {}) ⇒ BeforeAdviceChainNode
Returns a new instance of BeforeAdviceChainNode.
168 169 170 |
# File 'lib/aquarium/aspects/advice.rb', line 168 def initialize = {} super end |
Instance Method Details
#advice_wrapper(jp) ⇒ Object
171 172 173 174 175 176 177 |
# File 'lib/aquarium/aspects/advice.rb', line 171 def advice_wrapper jp update_current_context jp jp.context.advice_kind = :before call_advice jp reset_current_context jp next_node.call jp end |