Commit graph

2 commits

Author SHA1 Message Date
wen
0758bbbe63 Update to 0.004
Upstream changes:
0.004     2013-10-05 09:05:39 America/New_York
          update repo and bugtracker metadata

0.003     2013-04-16 16:36:26 America/New_York
        - add a "coerce" parameter to the role; now ->new can accept one arg
          that can be coerced to the expected type; suggested by Mark Jason
          Dominus
2014-07-13 11:51:06 +00:00
sno
f1416ac036 Importing package for Perl 5 Moose Role MooseX::OneArgNew module version
0.002 into p5-MooseX-OneArgNew.

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.
2012-07-05 09:51:46 +00:00