Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Implement init_arg for attributes #24

Open
schwern opened this issue Apr 3, 2014 · 1 comment
Open

Implement init_arg for attributes #24

schwern opened this issue Apr 3, 2014 · 1 comment

Comments

@schwern
Copy link
Contributor

schwern commented Apr 3, 2014

init_arg is the expected key in an initialization hash.

For instance, if we have an "init_arg" value of "-foo", then the following code will Just Work.

MyClass->new( -foo => 'Hello There' );
  • init_arg defaults to the attribute name
  • If init_arg is explicitly set to undef the attribute cannot be specified during initialization.

See Class::MOP::Attribute for the original reference.

@tobyink
Copy link

tobyink commented Jul 2, 2022

I've moved the Mite issue tracker here.

This is now implemented.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants