p5-MooseX-Traits-0.13.txz


Advertisement

Description

p5-MooseX-Traits - Moose eXtension to automatically apply roles at object creation time

Property Value
Distribution FreeBSD 12
Repository FreeBSD Ports Quarterly i386
Package filename p5-MooseX-Traits-0.13.txz
Package name p5-MooseX-Traits
Package version 0.13
Package release -
Package architecture i386
Package type txz
Category devel perl5
Homepage https://metacpan.org/release/MooseX-Traits
License GPLv1+, ART10
Maintainer perl@FreeBSD.org
Download size 11.57 KB
Installed size 19.56 KB
Often you 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.
WWW: https://metacpan.org/release/MooseX-Traits

Alternatives

Package Version Architecture Repository
p5-MooseX-Traits-0.13.txz 0.13 amd64 FreeBSD Ports Quarterly
p5-MooseX-Traits-0.13.txz 0.13 amd64 FreeBSD Ports Latest
p5-MooseX-Traits-0.13.txz 0.13 i386 FreeBSD Ports Latest
p5-MooseX-Traits - - -

Requires

Name Value
p5-Class-Load = 0.25
p5-Moose = 2.2011,1
p5-Sub-Exporter = 0.987_1
p5-namespace-autoclean = 0.28
perl5 = 5.28.1_1

Download

Type URL
Mirror pkg.freebsd.org
Binary Package p5-MooseX-Traits-0.13.txz
Source Package devel/p5-MooseX-Traits

Install Howto

Install p5-MooseX-Traits txz package:

# pkg install p5-MooseX-Traits

See Also

Package Description
p5-MooseX-Traits-Pluggable-0.12_1.txz Trait loading and resolution for Moose
p5-MooseX-TransactionalMethods-0.009.txz Syntax sugar for transactional methods
p5-MooseX-Types-0.50.txz Organise your Moose types in libraries
p5-MooseX-Types-Common-0.001014.txz Set of commonly-used type constraints that do not ship with p5-Moose
p5-MooseX-Types-DateTime-0.13.txz DateTime related constraints and coercions for Moose
p5-MooseX-Types-DateTime-ButMaintained-0.16_1.txz DateTime related constraints and coercions for Moose
p5-MooseX-Types-DateTime-MoreCoercions-0.15.txz Extensions to MooseX::Types::DateTime
p5-MooseX-Types-DateTime-MySQL-0.003.txz MySQL datetime type constraints and coercions
p5-MooseX-Types-DateTimeX-0.10_1.txz Extensions to MooseX::Types::DateTime::ButMaintained
p5-MooseX-Types-ISO8601-0.18.txz ISO8601 date and duration string type constraints and coercions
p5-MooseX-Types-JSON-1.00.txz JSON and relaxedJSON datatype for Moose
p5-MooseX-Types-LoadableClass-0.015.txz ClassName type constraint with coercion to load the class
p5-MooseX-Types-Path-Class-0.09.txz Path::Class type library for Moose
p5-MooseX-Types-Path-Tiny-0.012.txz Perl extension of Path::Tiny types and coercions for Moose
p5-MooseX-Types-Perl-0.101343_1.txz Moose types that check against Perl syntax
Advertisement
Advertisement