From: "marcandre (Marc-Andre Lafortune)" Date: 2012-09-12T04:19:49+09:00 Subject: [ruby-core:47477] [ruby-trunk - Feature #7007] Make OpenStruct#new accept OpenStruct object 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/