Issue #7007 has been updated by marcandre (Marc-Andre Lafortune).

Category set to lib
Assignee set to marcandre (Marc-Andre Lafortune)
Target version set to 2.0.0


----------------------------------------
Feature #7007: Make OpenStruct#new accept OpenStruct object
https://bugs.ruby-lang.org/issues/7007#change-29249

Author: prijutme4ty (Ilya Vorontsov)
Status: Open
Priority: Normal
Assignee: marcandre (Marc-Andre Lafortune)
Category: lib
Target version: 2.0.0


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.


-- 
http://bugs.ruby-lang.org/