Package : perl-MooseX-Types-LoadableClass > RPM : perl-MooseX-Types-LoadableClass-0.14.0-3.mga6.src.rpm
Basic items
Name | perl-MooseX-Types-LoadableClass |
Version | 0.14.0 |
Release | 3.mga6 |
URL | http://search.cpan.org/dist/MooseX-Types-LoadableClass |
Group | Development/Perl |
Summary | ClassName type constraint with coercion to load the class |
Size | 33KB |
Arch | noarch |
License | GPL+ or Artistic |
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.
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.
Media information
Distribution release | Mageia 6 |
Media name | core-release |
Media arch | i586 |
Advanced items
Source RPM | NOT IN DATABASE ?! |
Build time | 2016-06-19 06:27:37 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |