From: Florian Frank Date: 2007-01-13T03:11:23+09:00 Subject: Re: Rake, Hoe, Meta-Programming, and Warnings (oh my!) Tim Pease wrote: > class Pattern > def self.create_date_format_methods( pf ) old, $VERBOSE = $VERBOSE, nil > module_eval <<-CODE > def pf.format_date > Time.now.strftime "#{pf.date_pattern}" > end > CODE ensure $VERBOSE = old > end > end -- Florian Frank