class Aspect
Aspect
Oriented Programming for Ruby using Cuts.
Public Class Methods
new(&block)
click to toggle source
# File lib/cuts/aop.rb, line 11 def initialize(&block) instance_eval(&block) extend self end
Public Instance Methods
join(name, &block)
click to toggle source
TODO Should this accept pattern matches as an alternative to the block too?
Eg. join(name, pattern=nil, &block)
# File lib/cuts/aop.rb, line 22 def join(name, &block) (points[name] ||= []) << block end
points()
click to toggle source
# File lib/cuts/aop.rb, line 16 def points @points ||= {} end