# File lib/facets/more/aspects.rb, line 75 def self.wrap(target, methods = target.instance_methods) include_advice_modules(target) for m in [methods].flatten target.module_eval "alias_method :__unwrapped_\#{m}, :\#{m}\ndef \#{m}(*args,&block)\n\#{gen_advice_code(m, target.advices, :pre)}\n__unwrapped_\#{m}(*args,&block)\n\#{gen_advice_code(m, target.advices, :post)}\nend\n", __FILE__, __LINE__ end end