sourCEntral - mobile manpages

pdf

MooseX::Types::URI

NAME

MooseX::Types::URI − URI related types and coercions for Moose

VERSION

version 0.08

SYNOPSIS

        use MooseX::Types::URI qw(Uri FileUri DataUri);

DESCRIPTION

This package provides Moose types for fun with URI s.

TYPES

The types are with "ucfirst" naming convention so that they don’t mask the URI class.

"Uri"
Either URI or URI::WithBase

Coerces from "Str" via "new" in URI .

Coerces from Path::Class::File and Path::Class::Dir via "new" in URI::file.

Coerces from "ScalarRef" via "new" in URI::data.

Coerces from "HashRef" using URI::FromHash.

"DataUri"
A URI whose scheme is "data".

Coerces from "Str" and "ScalarRef" via "new" in URI::data.

"FileUri"
A URI::file class type.

Has coercions from "Str", Path::Class::File and Path::Class::Dir via "new" in URI::file

It has slightly DWIMier types than the URI classes have due to implementation details, so the types should be more forgiving when ducktyping will work anyway (e.g. URI::WithBase does not inherit URI ).

TODO

Think about Path::Resource integration of some sort

AUTHOR

XXXX XXXXX (Yuval Kogman) <nothingmuch AT woobling DOT org>

CONTRIBUTORS

Karen Etheridge <ether AT cpan DOT org>

Florian Ragwitz <rafl AT debian DOT org>

Olivier Mengue <dolmen AT cpan DOT org>

Daniel Pittman <daniel AT rimspace DOT net>

MORIYA Masaki (gardejo) <moriya AT ermitejo DOT com>

Shawn M Moore <sartak AT gmail DOT com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2008 by XXXX XXXXX (Yuval Kogman).

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

pdf