NAME
Path::Resolver::Role::Resolver - resolving paths is just what resolvers do!
VERSION
version 2.002
DESCRIPTION
Classes implementing this role must provide a content_for
method. It is expected to receive an arrayref of path parts and to return either false or a reference to a string containing the content of the file-like entity at the path.
This role will wrap the content_for
method to convert strings into arrayrefs by splitting them with File::Spec::Unix. This means that paths should always be given to content_for
following unix conventions.
Empty path parts are removed -- except for the first, which would represent the root are skipped, and the last, which would imply that you provided a path ending in /, which is a directory.
AUTHOR
Ricardo Signes <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2009 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as perl itself.