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

List of RPMs