[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
-
Brian Ford January 20th, 2008 @ 12:39 PM
- → State changed from new to open
- → Title changed from Struct members wrongly appear as ivars to [BUG] Struct members wrongly appear as ivars
-
Ryan Davis February 29th, 2008 @ 02:16 PM
- → Assigned user changed from to Eric Hodel
-
Eric Hodel June 19th, 2008 @ 05:32 PM
- → State changed from open to resolved
Ruby 1.8 and Rubinius now both only return @c
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 »
