Project

General

Profile

Feature #9209

Struct instances creatable with named args

Added by First Last about 3 years ago. Updated about 1 month ago.

Status:
Open
Priority:
Normal
Assignee:
-
[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)

History

#1 [ruby-core:77758] Updated by Herwin Quarantainenet about 1 month ago

This looks like a duplicate of #11925 (or maybe the other way around, but the other ticket includes more information)

Also available in: Atom PDF