From: Igor Pirnovar Date: 2013-04-01T08:53:45+09:00 Subject: Re: Private setters can be called by self, why not getters? Josh Cheek wrote in post #1103882: > I rarely want to expose either. In my code example, why can I call > `self.count=` but not `self.count` ? As Tony asid, it's a hack! Private methods (except attribute_writers) in Ruby can not be called on explicit receivers! That's how private is defined in Ruby, namely, no calls on explicuit receivers. Likwise the combined assignment operators will not work, if you define accesors as private. Sorry, I failed to show that clearly in my example segregating the private setter and public getter above :( Cheers, igor -- Posted via http://www.ruby-forum.com/.