The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Repl::Spec::Type::InstanceType - A parameter guard that ensures instances of a specified class.

SYNOPSIS

This type guard ensures that a reference parameter was passed by the user containing a reference to an abject belonging to a specified class. Reference types 'ARRAY' and 'HASH' can be used as well.

DESCRIPTION

Methods

new()

Parameters: A string denoting a class name or 'ARRAY' or 'HASH'.

guard()

Parameters: A single expression. Returns: The same reference. No conversions are applied.

name()

SEE ALSO

Repl::Spec::Type::BooleanType Repl::Spec::Type::CheckedArrayType Repl::Spec::Type::CheckedHashType Repl::Spec::Type::InstanceType Repl::Spec::Type::IntegerRangeType Repl::Spec::Type::IntegerType Repl::Spec::Type::PatternType Repl::Spec::Type::StringEnumType

1 POD Error

The following errors were encountered while parsing the POD:

Around line 27:

You forgot a '=back' before '=head1'