Package : perl-MooseX-Types-LoadableClass
Package details
Summary: ClassName type constraint with coercion to load the class
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.
URL: http://search.cpan.org/dist/MooseX-Types-LoadableClass
License: GPL+ or Artistic
Maintainer: nobody
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.
URL: http://search.cpan.org/dist/MooseX-Types-LoadableClass
License: GPL+ or Artistic
Maintainer: nobody
List of RPMs
- perl-MooseX-Types-LoadableClass-0.14.0-3.mga6.src.rpm (Mageia 6, i586 media, core-release)