1Types::Attean(3)      User Contributed Perl Documentation     Types::Attean(3)
2
3
4

NAME

6       Types::Attean - Type constraints for dealing with Attean classes
7

SYNOPSIS

9       TODO
10         package IRI::Counter {
11           use Moo;  # or Moose
12           use Types::Attean qw( AtteanIRI );
13
14           has iri => (
15             is => "ro",
16             isa => AtteanIRI,
17             required => 1,
18           );
19
20           sub count_uses_in_document { ... }
21         }
22

DESCRIPTION

24       Types::Attean is a type constraint library suitable for use with
25       Moo/Moose attributes, Kavorka sub signatures, and so forth. It builds
26       on Types::URI.
27

TYPES

29       "AtteanIri"
30           A class type for Attean::IRI.
31
32           Can coerce from URI, IRI, URI::Namespace and strings.
33

OTHER COERCIONS

35       This library can also coerce from "Attean::IRI" to the "Namespace" type
36       defined in URI::Namespace.
37
38
39
40perl v5.30.0                      2019-10-31                  Types::Attean(3)
Impressum