Project

General

Profile

Actions

Feature #9209

closed

Struct instances creatable with named args

Feature #9209: Struct instances creatable with named args

Added by rits (First Last) almost 12 years ago. Updated almost 9 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 - Feature #11925: Struct construction with kwargsClosedActions

Updated by herwinw (Herwin Quarantainenet) almost 9 years ago Actions #1 [ruby-core:77758]

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

Updated by shyouhei (Shyouhei Urabe) almost 9 years ago Actions #2

  • Is duplicate of Feature #11925: Struct construction with kwargs added

Updated by shyouhei (Shyouhei Urabe) almost 9 years ago Actions #3 [ruby-core:78762]

  • Status changed from Open to Closed

please continue to issue #11925.

Actions

Also available in: PDF Atom