Types::Attean(3pm) | User Contributed Perl Documentation | Types::Attean(3pm) |
Types::Attean - Type constraints for dealing with Attean classes
TODO
package IRI::Counter {
use Moo; # or Moose
use Types::Attean qw( AtteanIRI );
has iri => ( is => "ro", isa => AtteanIRI, required => 1, ); sub count_uses_in_document { ... } }
Types::Attean is a type constraint library suitable for use with Moo/Moose attributes, Kavorka sub signatures, and so forth. It builds on Types::URI.
Can coerce from URI, IRI, URI::Namespace, RDF::Trine::Node::Resource, RDF::Trine::Namespace, XML::Namespace and strings.
Additionally, a "ScalarRef" can be coerced into a "data" URI.
This library can also coerce from "Attean::IRI" to the "Namespace" type defined in URI::Namespace.
2022-10-06 | perl v5.34.0 |