From: David Masover Date: 2009-04-28T06:44:38+09:00 Subject: Re: Using method missing to create getters and setters On Sunday 26 April 2009 12:40:05 Tim Conner wrote: > BatchExternalBooking.instance_eval "attr_accessor Why the string eval? BatchExternalBooking.send :attr_accessor, :"message_thread_#{$1}" Sorry, I'm a pedant about things like that... Also, you might want to check that this does the right thing when the getter is called before the setter. At least, your method_missing regex seems to assume that this might be the case, but your code doesn't.