Backport #6063
closed
OpenStruct#delete_field missing return value
Added by oruen (Nick Recobra) about 12 years ago.
Updated about 12 years ago.
Description
From a description of the OpenStruct#delete_field method it should return the value of the deleted field. I've found it to be broken on current trunk. Patch attached contains a fix for the issue and a test for it.
Files
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r34755.
Nick, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- Tracker changed from Bug to Backport
- Project changed from Ruby master to Backport193
- Category deleted (
lib)
- Status changed from Closed to Open
- Target version deleted (
1.9.3)
- Status changed from Open to Closed
This issue was solved with changeset r34791.
Nick, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
merge revision(s) 34755:
* lib/ostruct.rb (delete_field): Bug fix so previous value is
returned. Patch by Nick Recobra [Bug #6063]
Also available in: Atom
PDF
Like0
Like0Like0Like0