From: Jim Weirich Date: 2004-04-24T01:07:56+09:00 Subject: Re: attr_accessor vs. local variable Kirk Haines said: > This makes sense. When you 'p x', all ruby knows about at that point is > the accessor method. Actually, by the time you execute 'p x', Ruby has already compiled the method and knows that x is a local variable (since it saw an assignment to x). -- Jim Weirich