module Aquarium::Reusables::TraceMethods
Public Class Methods
advice_invoked?()
click to toggle source
# File examples/reusable_aspect_hack_example_spec.rb 18 def self.advice_invoked? 19 @@advice_invoked 20 end
append_features(mod)
click to toggle source
# File examples/reusable_aspect_hack_example.rb 19 def self.append_features mod 20 Aquarium::Aspects::Aspect.new :around, :type => mod, 21 :methods => :all, 22 :method_options => [:exclude_ancestor_methods] do |jp, object, *args| 23 names = "#{jp.target_type.name}##{jp.method_name}" 24 p "Entering: #{names}: args = #{args.inspect}" 25 jp.proceed 26 p "Leaving: #{names}: args = #{args.inspect}" 27 end 28 end
reset_advice_invoked()
click to toggle source
# File examples/reusable_aspect_hack_example_spec.rb 21 def self.reset_advice_invoked 22 @@advice_invoked = false 23 end