Package: perl-MooseX-OneArgNew (0.007-bp156.2.1)
Teach ->new to accept single, non-hashref arguments
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|MooseX::Role::Parameterized with three 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. * coerce If true, a single argument to new will be coerced into the expected type if possible. Keep in mind that if there are no coercions for the type, this will be an error, and that if a coercion from HashRef exists, you might be getting yourself into a weird situation.
Package information
- Homepage
- [https://metacpan.org/release/MooseX-OneArgNew]
- License
- Artistic-1.0 OR GPL-1.0-or-later
- Downstream package maintainer
- Unknown: not reported in the indexed source
- Source package
- [perl-MooseX-OneArgNew]
- Software project
- [libmoosex-oneargnew-perl]
Versions and downloads for perl-MooseX-OneArgNew
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 0.007-bp156.2.1leap-15.6 / oss | noarchopenSUSE Leap 15.6 · OSS · multi-architecture | 22 KiB | 27 KiB | list of files | perl-MooseX-OneArgNew-0.007-bp156.2.1.noarch.rpm |
About these downloads
Each row is recorded package-index metadata for one version, architecture, suite, and repository. Names, URLs, and sizes are source-reported; a link is a potentially mutable retrieval location, not an OpenFactory redistribution claim or proof that OpenFactory retained the artifact bytes.
Dependencies and recommendations for perl-MooseX-OneArgNew
dep: perl(:MODULE_COMPAT_5.26.1)
Package not available
dep: perl(Moose::Util::TypeConstraints)
Package not available
dep: perl(MooseX::Role::Parameterized) (>= 1.01)
Package not available
dep: perl(namespace::autoclean)
Package not available
Package file paths (9)
Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.
- /usr/lib/perl5/vendor_perl/5.26.1/MooseX
- /usr/lib/perl5/vendor_perl/5.26.1/MooseX/OneArgNew.pm
- /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
- /usr/share/doc/packages/perl-MooseX-OneArgNew
- /usr/share/doc/packages/perl-MooseX-OneArgNew/Changes
- /usr/share/doc/packages/perl-MooseX-OneArgNew/README
- /usr/share/licenses/perl-MooseX-OneArgNew
- /usr/share/licenses/perl-MooseX-OneArgNew/LICENSE
- /usr/share/man/man3/MooseX::OneArgNew.3pm.gz
Field source: openSUSE Leap 15.6 OSS
