- Name: perl-MooseX-Types-LoadableClass
- Version: 0.5.0
- Release: 1.mga1
- Epoch:
- Group: Development/Perl
- License: GPL+ or Artistic
- Url: http://search.cpan.org/dist/MooseX-Types-LoadableClass
- Summary: ClassName type constraint with coercion to load the class
- Architecture: noarch
- Size: 21732
- Distribution: Mageia
- Vendor: Mageia.Org
- Packager: Mageia Team <http://www.mageia.org>
Description:
use Moose::Util::TypeConstraints;
my $tc = subtype as ClassName;
coerce $tc, from Str, via { Class::MOP::load_class($_); $_ };
I've written those three lines of code quite a lot of times, in quite a lot
of places.
- BuildArch:
- ExcludeArch:
- ExclusiveArch:
- Cookie: ecosse 1295961324
- Buildhost: ecosse
Generated packages:
Other version of this rpm: