L
Luke Graham
Will there be a way to get a function called on -every-
possible method call, or will we just have to do ..
ObjectSpace.each(Class) { |c|
methods.each { |m|
eval """
class #{c.to_s}
def #{m}re(*args)
puts \"pre for #{c.to_s}::#{m}\"
end
end
"""
}
}
AFAIK the AOP guys still have to list every function
they want wrapped...?
possible method call, or will we just have to do ..
ObjectSpace.each(Class) { |c|
methods.each { |m|
eval """
class #{c.to_s}
def #{m}re(*args)
puts \"pre for #{c.to_s}::#{m}\"
end
end
"""
}
}
AFAIK the AOP guys still have to list every function
they want wrapped...?