Kent Fredric │‫3﹪🔋

NAME

MetaPOD::Role::Format - Base role for common format routines

VERSION

version 0.3.6

METHODS

supported_versions

Returns a list of string versions supported by this class, or the consuming role.

    my ( @versions ) = $role->supported_versions

Each SHOULD be in dotted decimal format, and each SHOULD be preceded with a v

By default, returns

    v1.0.0

supports_version

Determine if the class supports the given version or not

    $class->supports_version('v1.0.0');

version MUST be preceded with a v and MUST be in dotted decimal form.

Default implementation compares values given verses the results from $class->_supported_versions

PRIVATE METHODS

_supported_versions

Returns a list of version objects that represent an enumeration of all supported versions

The default implementation just wraps "supported_versions" with version->parse()

    my (@vobs) = $role->_supported_versions;

AUTHOR

Kent Fredric <kentfredric@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Kent Fredric <kentfredric@gmail.com>.

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