From: Corey Date: 2004-11-12T04:18:52+09:00 Subject: Re: ruby idiom for attribute definition? On Wednesday 10 November 2004 10:53 pm, Neil Stevens wrote: > On Thu, 11 Nov 2004 13:27:42 +0900, Corey wrote: > > What do you guys do when you have a class with lots of simple attributes? > > > Try using attr_accessor, which makes an attribute readable and writable. > Cool - I hadn't run into that in the Pickaxe yet; I think I like it a little better that the Struct suggestion ( thanks Dave ) for my particular purposes in this case. Thanks for the clues! Cheers, Corey -- "Never believe anything until it is officially denied." - Claud Cockburn