lib/glue/aspects.rb in glue-0.16.0 vs lib/glue/aspects.rb in glue-0.17.0

- old
+ new

@@ -1,9 +1,5 @@ -# * George Moschovitis <gm@navel.gr> -# (c) 2005 Navel, all rights reserved. -# $Id: aspects.rb 20 2005-04-15 15:18:36Z gmosx $ - require 'glue/property' module Glue # An Aspect is a class that defines advices. @@ -140,29 +136,30 @@ end def self.append_features(base) super base.extend(ClassMethods) + base.module_eval %{ - Glue::PropertyUtils.enchant(self) + Glue::PropertyUtils.enchant(self) def self.advices __meta[:advices] || [] end def self.advices=(advices) __meta[:advices] = advices end - # def self.inherited(child) + #def self.inherited(child) # super # child.send(:include, Aspects) - # end - # - # def self.append_features(base) + #end + # + #def self.append_features(base) # super # base.send(:include, Aspects) - # end + #end } end module ClassMethods