meta a la lucky stiff
# File lib/ruote/util/ometa.rb, line 36 def self.included(target) def target.metaclass class << self self end end def target.meta_eval (&block) metaclass.instance_eval(&block) end def target.meta_def (method_name, &block) meta_eval { define_method method_name, &block } end def class_def (method_name, &block) class_eval { define_method name, &block } end end
Generated with the Darkfish Rdoc Generator 2.