Project

General

Profile

Actions

Feature #9209

closed

Struct instances creatable with named args

Added by rits (First Last) over 10 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:58846]

Description

now that ruby supports named params it seems natural for Struct to make use of them.

Struct.new(:a).new(a: 1)


Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Feature #11925: Struct construction with kwargsClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0