p5-MooseX-Traits - Automatically apply roles at object creation time

Property Value
Distribution NetBSD 7.1
Repository NetBSD amd64
Package name p5-MooseX-Traits
Package version 0.13nb3
Package architecture amd64
Package type tgz
Package license gnu-gpl-v2 OR artistic
Installed size 14.25 KB
Download size 8.04 KB
Official Mirror ftp.netbsd.org
Often a developer want to create components that can be added to a class
arbitrarily. This module makes it easy for the end user to use these
components. Instead of requiring the user to create a named class with the
desired roles applied, or applying roles to the instance one-by-one, he can
just pass a traits parameter to the class's new_with_traits constructor.
This role will then apply the roles in one go, cache the resulting class
(for efficiency), and return a new instance. Arguments meant to initialize
the applied roles' attributes can also be passed to the constructor.
Homepage: http://search.cpan.org/dist/MooseX-Traits/
Categories: devel, perl5


Package Version Architecture Repository
p5-MooseX-Traits-0.13nb3.tgz 0.13nb3 i386 NetBSD
p5-MooseX-Traits - - -


Name Value
p5-Moose >=2
p5-Sub-Exporter [0-9]*
p5-namespace-autoclean [0-9]*
perl >=5.28.0<5.30.0


Type URL
Binary Package p5-MooseX-Traits-0.13nb3.tgz
Source Package p5-MooseX-Traits

Install Howto

Install p5-MooseX-Traits tgz package:

# pkg_add p5-MooseX-Traits

See Also

Package Description
p5-MooseX-Traits-Pluggable-0.12nb5.tgz Extension to MooseX::Traits
p5-MooseX-Types-0.50nb2.tgz Organise your Moose types in libraries
p5-MooseX-Types-Common-0.001014nb2.tgz Commonly-used type constraints that do not ship with Moose by default
p5-MooseX-Types-DateTime-0.13nb3.tgz DateTime related constraints and coercions for Moose
p5-MooseX-Types-DateTime-ButMaintained-0.16nb6.tgz DateTime related constraints and coercions for Moose
p5-MooseX-Types-DateTime-MoreCoercions-0.15nb1.tgz Extensions to MooseX::Types::DateTime
p5-MooseX-Types-DateTimeX-0.10nb10.tgz Extensions to MooseX::Types::DateTime::ButMaintained
p5-MooseX-Types-JSON-1.00nb4.tgz Perl 5 module providing JSON datatype for Moose
p5-MooseX-Types-LoadableClass-0.015nb1.tgz Moose ClassName type constraint with coercion to load the class
p5-MooseX-Types-LogAny-0.001003nb4.tgz Moose Types for Log::Any
p5-MooseX-Types-Path-Class-0.09nb2.tgz Path::Class type library for Moose
p5-MooseX-Types-Path-Tiny-0.012nb1.tgz Path::Tiny types and coercions for Moose
p5-MooseX-Types-Perl-0.101343nb4.tgz Moose types that check against Perl syntax
p5-MooseX-Types-Stringlike-0.003nb4.tgz Commonly-used type constraints that do not ship with Moose by default
p5-MooseX-Types-Structured-0.36nb1.tgz Perl 5 module providing structured type constraints for Moose