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/.