From: Austin Ziegler Date: 2004-08-24T12:03:40+09:00 Subject: Re: OpenStruct respond_to? problem On Tue, 24 Aug 2004 09:59:15 +0900, Jamis Buck wrote: > I blindly assumed that OpenStruct would handle respond_to? properly, but > I'm seeing the following behavior: > > o = OpenStruct.new( :type_id => "string" ) > p o.type_id #-> "string" > p o.respond_to?( :type_id ) #-> false > > Is this the correct behavior for OpenStruct, or should this be reported > as a bug? I think that OpenStruct uses #method_missing. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca