From: The Higgs bozo Date: 2010-01-25T03:50:32+09:00 Subject: Re: Writing proper getter in a Ruby way Wait, why couldn't you just call accessors through 'self'? class Foo attr_accessor :a, :b def bar self.a.to_i + 5 end end p Foo.new.bar #=> 5 # (no warnings) -- Posted via http://www.ruby-forum.com/.