Project

General

Profile

ActionsLike0

Feature #9209

closed

Struct instances creatable with named args

Added by rits (First Last) over 11 years ago. Updated over 8 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
#2

Updated by shyouhei (Shyouhei Urabe) over 8 years ago

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

Updated by shyouhei (Shyouhei Urabe) over 8 years ago

  • Status changed from Open to Closed
ActionsLike0

Also available in: Atom PDF