Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-MooseX-Traits-0.13-lp152.3.2 RPM for noarch

From OpenSuSE Leap 15.2 for noarch

Name: perl-MooseX-Traits Distribution: openSUSE Leap 15.2
Version: 0.13 Vendor: openSUSE
Release: lp152.3.2 Build date: Fri Sep 20 20:39:37 2019
Group: Development/Libraries/Perl Build host: build80
Size: 37617 Source RPM: perl-MooseX-Traits-0.13-lp152.3.2.src.rpm
Packager: https://bugs.opensuse.org
Url: http://search.cpan.org/dist/MooseX-Traits/
Summary: Automatically apply roles at object creation time
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.

Provides

Requires

License

Artistic-1.0 or GPL-1.0+

Changelog

* Wed Aug 19 2015 coolo@suse.com
  - updated to 0.13
    see /usr/share/doc/packages/perl-MooseX-Traits/Changes
    0.13      2015-08-16 04:10:59Z
    - update some distribution tooling
* Mon Nov 25 2013 coolo@suse.com
  - updated to 0.12
    - removed use of deprecated Class::MOP::load_class
    - repository migrated from shadowcat to the github moose organization
    - uses of Test::Exception converted to Test::Fatal
* Sun Dec 25 2011 coolo@suse.de
  - regenerate with cpanspec to fix source url
* Wed Dec 01 2010 coolo@novell.com
  - switch to perl_requires macro
* Mon Nov 29 2010 coolo@novell.com
  - remove /var/adm/perl-modules
* Thu Nov 04 2010 pascal.bleser@opensuse.org
  - initial package (0.11)

Files

/usr/lib/perl5/vendor_perl/5.26.1/MooseX
/usr/lib/perl5/vendor_perl/5.26.1/MooseX/Traits
/usr/lib/perl5/vendor_perl/5.26.1/MooseX/Traits.pm
/usr/lib/perl5/vendor_perl/5.26.1/MooseX/Traits/Util.pm
/usr/share/doc/packages/perl-MooseX-Traits
/usr/share/doc/packages/perl-MooseX-Traits/CONTRIBUTING
/usr/share/doc/packages/perl-MooseX-Traits/Changes
/usr/share/doc/packages/perl-MooseX-Traits/LICENSE
/usr/share/doc/packages/perl-MooseX-Traits/README
/usr/share/man/man3/MooseX::Traits.3pm.gz
/usr/share/man/man3/MooseX::Traits::Util.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Tue Apr 9 11:50:38 2024