From: Rein Henrichs Date: 2010-06-06T08:50:05+09:00 Subject: Re: 1.9 warning for 'private' and possible bug On 2010-06-05 15:55:20 -0700, Joel VanderWerf said: > > No. The original code is controlling access to the method > Module#attr_accessor. Your code is controlling access to > PrivateAccessor#foo. Not exactly. Methods created by attr_accessor will have its visibility. Your code makes attr_accessor private, which is why accessors created with it are also private. You can also demonstrate by writing your own attr_accessor from scratch. -- Rein Henrichs http://puppetlabs.com http://reinh.com