File: README

package info (click to toggle)
libtypes-uri-perl 0.006-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 176 kB
  • ctags: 8
  • sloc: perl: 79; makefile: 15
file content (111 lines) | stat: -rw-r--r-- 2,924 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
NAME
    Types::URI - type constraints and coercions for URIs

SYNOPSIS
       package FroobleDocument;
   
       use Moose;
       use Types::URI -all;
   
       has source => (
          is      => 'ro',
          isa     => Uri,
          coerce  => 1,
       );

DESCRIPTION
    Types::URI is a type constraint library suitable for use with Moo/Moose
    attributes, Kavorka sub signatures, and so forth.

  Types
    This module provides some type constraints broadly compatible with those
    provided by MooseX::Types::URI, plus a couple of extra type constraints.

    `Uri`
        A class type for URI/URI::WithBase. Coercions from:

        from `Uuid`
            Coerces to a URI in the `urn:uuid:` schema. (See Types::UUID.)

        from `Str`
            Uses "new" in URI.

        from `Path`
            Uses "new" in URI::file. (See Types::Path::Tiny.)

        from `ScalarRef`
            Uses "new" in URI::data.

        from `HashRef`
            Coerces using URI::FromHash.

        from `Iri`
            Uses "new" in URI.

        from RDF::Trine::Node::Resource, RDF::Trine::Namespace, XML::Namespace
            Uses "new" in URI.

    `FileUri`
        A subtype of `Uri` covering URI::file. Coercions from:

        from `Str`
            Uses "new" in URI::file.

        from `Path`
            Uses "new" in URI::file. (See Types::Path::Tiny.)

        from `HashRef`
            Coerces using URI::FromHash.

        from `Iri`
            Uses "new" in URI.

        from RDF::Trine::Node::Resource, RDF::Trine::Namespace, XML::Namespace
            Uses "new" in URI.

    `DataUri`
        A subtype of `Uri` covering URI::data. Coercions from:

        from `Str`
            Uses "new" in URI::data.

        from `ScalarRef`
            Uses "new" in URI::data.

        from `HashRef`
            Coerces using URI::FromHash.

        from `Iri`
            Uses "new" in URI.

        from RDF::Trine::Node::Resource, RDF::Trine::Namespace, XML::Namespace
            Uses "new" in URI.

    `Iri`
        A class type for IRI. Coercions as per `Uri` above, plus can coerce
        from `Uri`.

BUGS
    Please report any bugs to
    <http://rt.cpan.org/Dist/Display.html?Queue=Types-URI>.

SEE ALSO
    MooseX::Types::URI, Type::Tiny::Manual, URI, URI::file, URI::data,
    URI::FromHash, RDF::Trine::Node::Resource, IRI.

    Types::UUID, Types::Path::Tiny, Types::Standard.

AUTHOR
    Toby Inkster <tobyink@cpan.org>.

COPYRIGHT AND LICENCE
    This software is copyright (c) 2014 by Toby Inkster.

    This is free software; you can redistribute it and/or modify it under the
    same terms as the Perl 5 programming language system itself.

DISCLAIMER OF WARRANTIES
    THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
    WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
    MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.