Sub::Meta::TypeSub - type constraints for subroutines
my $type = Sub::Meta::TypeSub->new( parent => Ref['CODE'], submeta_type => $SubMeta, # InstanceOf[Sub::Meta::Type] ); $type->check(sub {})
This module provides types for subroutines.
method submeta_type() => InstanceOf[Sub::Meta::Type]
Accessor for Sub::Meta::Type.
Types::Sub, Sub::Meta::Type
Copyright (C) kfly8.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
kfly8 <kfly@cpan.org>
To install Sub::Meta, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sub::Meta
CPAN shell
perl -MCPAN -e shell install Sub::Meta
For more information on module installation, please visit the detailed CPAN module installation guide.