From: Ryan Davis Date: 2009-04-29T04:13:13+09:00 Subject: Re: Why does attr_accessor in module require 'self.'? On Apr 28, 2009, at 05:26 , 7stud -- wrote: > John Barnette wrote: >> >> It's because Ruby automatically creates local variables upon >> assignment. Given a class with a method "foo": >> > > Can attr_accessor ever apply to variables that don't begin with @? no, otherwise it'd be named something else.