class Aquarium::Aspects::BeforeAdviceChainNode

Public Class Methods

new(options = {}) click to toggle source
Calls superclass method Aquarium::Aspects::AdviceChainNode::new
    # File lib/aquarium/aspects/advice.rb
170 def initialize options = {}
171   super options
172 end

Public Instance Methods

advice_wrapper(jp) click to toggle source
    # File lib/aquarium/aspects/advice.rb
173 def advice_wrapper jp
174   update_current_context jp
175   jp.context.advice_kind = :before
176   call_advice jp
177   reset_current_context jp
178   next_node.call jp
179 end