#266 √ resolved
Jeremy Roach

[BUG] Struct members wrongly appear as ivars

Reported by Jeremy Roach | January 19th, 2008 @ 09:32 AM | in 1.0 preview

obj = Struct.new("Foo", :a, :b).new
obj.instance_variable_set(:@c, true)
p obj.instance_variables

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Tags