From: Bertram Scharpf Date: 2009-06-30T04:21:49+09:00 Subject: Re: attr_writers within blocks Hi, Am Dienstag, 30. Jun 2009, 03:44:48 +0900 schrieb Wijnand Wiersma: > It seems writer methods don't work within blocks, the names are resolved to > new local variable names I guess. > It is funny however the reader method does seem to work fine. > Is it possible to make it work anyway without changing the syntax within > the block? > > My example gist: http://gist.github.com/137741 You don't even need an instance_eval. It won't work in a module definition either: module M class <