From: Robert Dober Date: 2008-03-11T20:01:24+09:00 Subject: Re: Best practices for Ruby Meta-programming On Tue, Mar 11, 2008 at 5:31 AM, John Carter wrote: You are certainly right that MP is overused here, I have read slightly different definitions of which I like best: "Programming for the Programmer. def attr_reader *atts atts.each do |att| define_method att do instance_variable_get "@#{att}" end end end is definitely for the programmer, it also should rather run at runtime than at compile time. Robert -- http://ruby-smalltalk.blogspot.com/ --- Whereof one cannot speak, thereof one must be silent. Ludwig Wittgenstein