class Class
Public Instance Methods
apply(aspect)
click to toggle source
# File lib/cuts/aop.rb, line 159 def apply(aspect) if aspects.empty? cross_cut(self) #(class << self;self;end).class_eval do # alias_method :__new, :new # def new(*args, &block) # CrossConcerns.new(self,*args, &block) # end #end end aspects.unshift(aspect) end
aspects()
click to toggle source
def cut; @cut; end
# File lib/cuts/aop.rb, line 157 def aspects; @aspects ||= []; end
cuts()
click to toggle source
# File lib/cuts/cut.rb, line 88 def cuts @cuts ||= [] end