- 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: 6841
- 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.
- OptFlags: -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4
- Cookie: ecosse 1295961324
- Buildhost: ecosse
Sources packages:
Other version of this rpm: