MetaPOD::Role::Format - Base role for common format routines
version v0.4.0
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
dotted decimal
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.
version
Default implementation compares values given verses the results from $class->_supported_versions
$class->_supported_versions
_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()
version->parse()
my (@vobs) = $role->_supported_versions;
Kent Fredric <kentnl@cpan.org>
This software is copyright (c) 2017 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.
To install MetaPOD, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MetaPOD
CPAN shell
perl -MCPAN -e shell install MetaPOD
For more information on module installation, please visit the detailed CPAN module installation guide.