- Name: perl-MooseX-Types-LoadableClass
- Version: 0.006
- Release: 1
- Epoch: 0
- Group: Development/Languages/Perl
- License: GPL v1+ or Artistic
- Url:
- Summary: MooseX::Types::LoadableClass - ClassName type constraint with coercion to load the class.
- Architecture: noarch
- Size: 5425
- Distribution: PLD
- Vendor:
- Packager:
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.
Now I don't have to.
- OptFlags: -O2 -fno-strict-aliasing -fwrapv -march=x86-64
- Cookie:
- Buildhost: ymir-builder
Sources packages:
Other version of this rpm: