Package : perl-MooseX-Types-LoadableClass > RPM : perl-MooseX-Types-LoadableClass-0.15.0-3.mga7.src.rpm
Basic items
Name | perl-MooseX-Types-LoadableClass |
Version | 0.15.0 |
Release | 3.mga7 |
URL | http://search.cpan.org/dist/MooseX-Types-LoadableClass |
Group | Development/Perl |
Summary | ClassName type constraint with coercion to load the class |
Size | 35KB |
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 7 |
Media name | core-release |
Media arch | i586 |
Advanced items
Source RPM | NOT IN DATABASE ?! |
Build time | 2018-09-20 12:33:12 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |