Agilefreaks / Aquarium

An AOP library for Ruby
https://rubygems.org/gems/aquarium/
148 stars 24 forks source link

[RubyForge-13404] Support unadvising anonymous aspects #16

Open hedgehog opened 14 years ago

hedgehog commented 14 years ago

Date:2007-08-26 20:13 Priority:1 Submitted By:Dean Wampler (deanwampler) Assigned To:Dean Wampler (deanwampler) Category:Advice handling State:Open Summary:Support unadvising anonymous aspects

Detailed description

Currently, to "unadvise" advice (remove it), you have to have the Aspect instance that created it. I.e., Aspect#unadvise is an instance method.

One possibility is to implement an AspectManager that tracks existing aspects.