module Aquarium::DSL

Include this module to add convenience class-level methods to a type, which provide a low-level AOP DSL. For example, instead of writing

Aspect.new :around, :calls_to => ...

You can write the following instead.

include Aspect::DSL
...
around :calls_to => ...

If you don't want these methods added to a type, then only require aspect.rb and create instances of Aspect, as in the first example.

Public Class Methods

append_features(clazz) click to toggle source

Add the methods as class, not instance, methods.

Calls superclass method
   # File lib/aquarium/dsl/aspect_dsl.rb
68 def self.append_features clazz
69   super(class << clazz; self; end)
70 end