libmoosex-oneargnew-perl

Moose role that extends class' constructor to accept single arguments

Description

MooseX::OneArgNew lets your constructor take a single argument, which will be translated into the value for a one-entry hashref. It is a parameterized role with two parameters:
 * type - The Moose type that the single argument must be for the one-arg form
   to work. This should be an existing type, and may be either a string type or
   a MooseX::Type.
 * init_arg - This is the string that will be used as the key for the hashref
   constructed from the one-arg call to new.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://metacpan.org/release/MooseX-OneArgNew


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install libmoosex-oneargnew-perl