Logoj0ke.net Open Build Service > Projects > server:monitoring > nagios-plugins-nwc-health > Binaries > nagios-plugins-nwc-health-8... > Dependencies
Sign Up | Log In

Dependency of nagios-plugins-nwc-health-8.0-1.1.src.rpm

Name: perl-MooseX-Traits

Project: openSUSE_13.2

Repository: oss

Title: automatically apply roles at object creation time

Description:
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 apply roles to the instance one-by-one, he can
just create a new class from yours with 'with_traits', and then instantiate
that.

There is also 'new_with_traits', which exists for compatibility reasons. It
accepts a 'traits' parameter, creates a new class with those traits, and
then instantiates it.

Class->new_with_traits( traits => [qw/Foo Bar/], foo => 42, bar => 1 )

returns exactly the same object as

Class->with_traits(qw/Foo Bar/)->new( foo => 42, bar => 1 )

would. But you can also store the result of 'with_traits', and call other
methods:

my $c = Class->with_traits(qw/Foo Bar/);
$c->new( foo => 42 );
$c->whatever( foo => 1234 );

And so on.

Version: 0.12

Release: 2.1.3

Architecture: noarch

Size: 22.1 KB

Build Time: 2014-10-06 18:33:08 +0200 (over 9 years ago)

Provides

Symbol Required by
perl(MooseX::Traits) = 0.12 perl-Parse-Method-Signatures
perl(MooseX::Traits::Util) ...
perl-MooseX-Traits = 0.12-2...

Requires

Symbol Provided by
perl(:MODULE_COMPAT_5.20.1) perl
perl(Class::Load) perl-Class-Load
perl(Moose::Role) perl-Moose
perl(Sub::Exporter) perl-Sub-Exporter
perl(namespace::autoclean) perl-namespace-autoclean