NAME

Sub::Meta::TypeSub - type constraints for subroutines

SYNOPSIS

my $type = Sub::Meta::TypeSub->new(
    parent       => Ref['CODE'],
    submeta_type => $SubMeta, # InstanceOf[Sub::Meta::Type]
);

$type->check(sub {})

DESCRIPTION

This module provides types for subroutines.

ATTRIBUTES

submeta_type

method submeta_type() => InstanceOf[Sub::Meta::Type]

Accessor for Sub::Meta::Type.

SEE ALSO

Types::Sub, Sub::Meta::Type

LICENSE

Copyright (C) kfly8.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

kfly8 <kfly@cpan.org>