From: Erik Veenstra Date: 2006-02-09T05:23:25+09:00 Subject: Re: Meta-Meta-Programming Like this? gegroet, Erik V. - http://www.erikveen.dds.nl/ ---------------------------------------------------------------- require "ev/typed" class Module def my_conditions(*method_names) method_names.each do |method_name| wrap_method(method_name) do |org_method, args, block| # pre_conditions org_method.call(*args, &block) # post_conditions end end end end class Foo # A log of method definitions my_conditions :foo, :bar, :and, :friends end ----------------------------------------------------------------