Actions
Feature #7007
closedMake OpenStruct#new accept OpenStruct object
Description
Now we have OpenStruct.new(hash) method. But it can be more consistent if one can use it also in form OpenStruct.new(open_struct) which will create a new instance which is a copy of an argument.
Updated by marcandre (Marc-Andre Lafortune) about 12 years ago
- Category set to lib
- Assignee set to marcandre (Marc-Andre Lafortune)
- Target version set to 2.0.0
Updated by ko1 (Koichi Sasada) about 12 years ago
ping? status?
Updated by marcandre (Marc-Andre Lafortune) about 12 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r37375.
Ilya, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- lib/ostruct.rb: Also accept {Open}Struct as argument to new
[ruby-core:47476] [Feature #7007]
Actions
Like0
Like0Like0Like0