From: Adriano Nagel Date: 2010-05-20T10:58:13+09:00 Subject: Re: define_method inside instance_eval Dhruva Sagar wrote: > Should be > > instance_eval %{ > def status_all(*args) > "#{args.join(' ')}".split > end > } 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 Thanks, -- Adriano -- Posted via http://www.ruby-forum.com/.