J
Jamis Buck
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?
- Jamis
--
Jamis Buck
(e-mail address removed)
http://www.jamisbuck.org/jamis
"I use octal until I get to 8, and then I switch to decimal."
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?
- Jamis
--
Jamis Buck
(e-mail address removed)
http://www.jamisbuck.org/jamis
"I use octal until I get to 8, and then I switch to decimal."