Project

General

Profile

Feature #9209

Struct instances creatable with named args

Added by First Last almost 3 years 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)

Also available in: Atom PDF