Does anyone know the best way to make instance variables in a class
automatically accessible?  In other words, how do you avoid writing

attr_accessor :a, :b, :c

I came up with the following way, but I don't like it, since it
uses "eval".

class Class
  alias oldNew new
  private :oldNew
  def new(*args)
    instance = oldNew(*args)
    for v in o.instance_variables
      eval "attr_accessor :#{v[1..-1]}"
    end
    instance
  end
end

Thanks,
Carl Mueller