Package : perl-MooseX-Types-LoadableClass > RPM : perl-MooseX-Types-LoadableClass-0.15.0-5.mga9.src.rpm
Basic items
Name | perl-MooseX-Types-LoadableClass |
Version | 0.15.0 |
Release | 5.mga9 |
URL | https://metacpan.org/release/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 cauldron |
Media name | core-release |
Media arch | i586 |
Advanced items
Source RPM | NOT IN DATABASE ?! |
Build time | 2022-03-21 00:46:28 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |