From: Ken Bloom Date: 2008-05-01T23:10:06+09:00 Subject: Re: Where and how is defined "attr_accessor"? On Tue, 29 Apr 2008 18:26:39 -0500, I単aki Baz Castillo wrote: > El Mi辿rcoles, 30 de Abril de 2008, David A. Black escribi坦: >> The last two definitions of FieldAccessor look wrong; you haven't >> defined the field_accessor method. But assuming that you correct that, >> then yes, extending your class is the best way. Another reasonable place is in class Module. See Ruby Quiz #67: Metakoans, which involved creating an attr_accessor like method. http://www.rubyquiz.com/quiz67.html --Ken -- Ken (Chanoch) Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/