From: Chris Czub Date: 2007-10-26T08:29:23+09:00 Subject: Re: Need help understanding metaclassing Drew Olson wrote: > Chris Czub wrote: >> Any ideas? > > Basically the same idea as why's solution to dwenthy's array: Someone else responded with: "You added a singleton method email and an accessor pair email/email= to the User class. The email method with no arguments called on User instances is the reader, you need to use the email= method." which is correct - the method user.email("") only works from the standpoint of the singleton, but you CAN call user.email = "bla" from outside the singleton context. -- Posted via http://www.ruby-forum.com/.