From: Trans Date: 2008-03-13T05:04:00+09:00 Subject: Re: Get OpenStruct attributes On Mar 12, 3:04 pm, Ed Hames wrote: > Dear rubyists, > > What's the best way to get the list of attributes of an OpenStruct? o = OpenStruct.new(:a=>1,:b=>2) => # >> o.instance_variable_get("@table") => {:a=>1, :b=>2} T.