lib/glue/aspects.rb in glue-0.28.0 vs lib/glue/aspects.rb in glue-0.29.0
- old
+ new
@@ -5,18 +5,18 @@
# An Aspect is a class that defines advices.
class Aspect
class << self
def wrap(target, methods = target.instance_methods, pre = :pre, post = :post)
- target.send(:include, Aspects) unless target.ancestors.include?(Aspects)
+ target.send(:include, Glue::Aspects) unless target.ancestors.include?(Glue::Aspects)
target.wrap(self, :pre => pre, :post => post)
end
alias_method :observe, :wrap
end
def wrap(target, methods = target.instance_methods, pre = :pre, post = :post)
- target.send(:include, Aspects) unless target.ancestors.include?(Aspects)
+ target.send(:include, Glue::Aspects) unless target.ancestors.include?(Glue::Aspects)
target.wrap(self, :pre => pre, :post => post)
end
alias_method :observe, :wrap
end