table of contents
Types::Namespace(3pm) | User Contributed Perl Documentation | Types::Namespace(3pm) |
NAME¶
Types::Namespace - type constraints for dealing with namespacesSYNOPSIS¶
package Namespace::Counter { use Moo; # or Moose use Types::Namespace qw( Namespace ); has ns => ( is => "ro", isa => Namespace, required => 1, ); sub count_uses_in_document { ... } }
DESCRIPTION¶
Types::URI is a type constraint library suitable for use with Moo/Moose attributes, Kavorka sub signatures, and so forth.TYPES¶
- "Namespace"
- A class type for URI::Namespace.
Can coerce from URI, IRI, Path::Tiny, and strings.
- "NamespaceMap"
- A class type for URI::NamespaceMap.
Can coerce from a hashref of "prefix => URI" pairs.
- "Uri", "Iri"
- These namespaces are re-exported from Types::URI, but with an additional coercion from the "Namespace" type.
FURTHER DETAILS¶
See URI::NamespaceMap for further details about authors, license, etc.2017-01-18 | perl v5.24.1 |