Function::Interface::Types - interface types for Type::Tiny
use Function::Interface::Types -types; my $type = ImplOf['IFoo']; my $foo = Foo->new; # implements of 'IFoo' $type->check($foo); # ok
Function::Interface::Types provides type constraints of interface package. The following types are available.
ImplOf['IFoo', 'IBar'] allows objects or packages where implements of interface package 'IFoo' and 'IBar' both return true.
ImplOf['IFoo', 'IBar']
Given no parameters, just equivalent to Object or ClassName.
Function::Interface
To install Function::Interface, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Function::Interface
CPAN shell
perl -MCPAN -e shell install Function::Interface
For more information on module installation, please visit the detailed CPAN module installation guide.