On Tuesday, September 9, 2003, at 05:26 PM, John wrote:

> I am trying to create a class with attributes that are values
> retrieved from a database. E.g.
>
> [snip]

> Is there a define_attribute method like there's a define_method
> method?
>
> To put it succinctly, how can I create instance attributes after the
> instance has already been created? [snip]

I think you'd find the Struct class useful. Here's a link to the pickax 
book discussion:

http://www.learningruby.com/programmingrubybook/ref_c_struct.html

There's also the Openstruct class, an example of which is given here:

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/71380

Regards,

Mark