From: Austin Ziegler Date: 2007-02-17T11:49:57+09:00 Subject: Re: Passing a block into a class_eval On 2/16/07, Clifford Heath wrote: > Here's a function similar to attr_accessor, except it takes a block, > which is used to validate assignments to the attribute, and substitute > in a string value to be used as a key to the hash inside class_eval. Ruby 1.9 accepts blocks as parameters to blocks. -austin -- Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ * austin@halostatue.ca * http://www.halostatue.ca/feed/ * austin@zieglers.ca