Project

General

Profile

Actions

Feature #7007

closed

Make OpenStruct#new accept OpenStruct object

Added by prijutme4ty (Ilya Vorontsov) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
[ruby-core:47476]

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0