From: Adriano Nagel Date: 2010-05-20T11:04:47+09:00 Subject: Re: define_method inside instance_eval Adriano Nagel wrote: > Sorry, I wasn't clear. This snippet is actually wrapped inside the class > macro, like this: > > def status_field(*args) > instance_eval %{ > def status_all > "#{args.join(' ')}".split > end > } > end BTW, it sort of works. But I don't like it at all... It is brittle, probably unsafe and slow. I'd like to use a block syntax, for instance. Thanks, -- Adriano -- Posted via http://www.ruby-forum.com/.