NAME

Code::Style::Kit::Parts::Types - type constraints

VERSION

version 1.0.2

SYNOPSIS

  package My::Kit;
  use parent qw(Code::Style::Kit
                Code::Style::Kit::Parts::Common
                Code::Style::Kit::Parts::Types);
  1;

Then:

  use My::Kit 'types';

  sub thing {
      state $check = compile(Str,Int);
      my ($name, $value) = $check->(@_);
      ...
  }

DESCRIPTION

This part defines the types feature, which imports Type::Params and Types::Standard.

AUTHOR

Gianni Ceccarelli <gianni.ceccarelli@broadbean.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by BroadBean UK, a CareerBuilder Company.

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