1Types::Attean(3) User Contributed Perl Documentation Types::Attean(3)
2
3
4
6 Types::Attean - Type constraints for dealing with Attean classes
7
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
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
29 "AtteanIri"
30 A class type for Attean::IRI.
31
32 Can coerce from URI, IRI, URI::Namespace and strings.
33
35 This library can also coerce from "Attean::IRI" to the "Namespace" type
36 defined in URI::Namespace.
37
38
39
40perl v5.30.1 2020-01-29 Types::Attean(3)