class Aquarium::Aspects::AfterReturningAdviceChainNode
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
Aquarium::Aspects::AdviceChainNode::new
# File lib/aquarium/aspects/advice.rb 183 def initialize options = {} 184 super options 185 end
Public Instance Methods
advice_wrapper(jp)
click to toggle source
# File lib/aquarium/aspects/advice.rb 186 def advice_wrapper jp 187 returned_value = next_node.call jp 188 update_current_context jp 189 jp.context.advice_kind = :after_returning 190 jp.context.returned_value = returned_value 191 call_advice jp 192 result = jp.context.returned_value # allow advice to modify the returned value 193 reset_current_context jp 194 result 195 end