Config::Any::Base - Base class for loaders
This is a base class for all loaders. It currently handles the specification of dependencies in order to ensure the subclass can load the config file format.
Allows us to determine if the file format can be loaded. The can be done via one of two subclass methods:
requires_all_of() - returns an array of items that must all be present in order to work
requires_all_of()
requires_any_of() - returns an array of items in which at least one must be present
requires_any_of()
You can specify a module version by passing an array reference in the return.
sub requires_all_of { [ 'My::Module', '1.1' ], 'My::OtherModule' }
Lack of specifying these subs will assume you require no extra modules to function.
Brian Cassidy <bricas@cpan.org>
Copyright 2008-2009 by Brian Cassidy
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Config::Any
To install Config::Any, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::Any
CPAN shell
perl -MCPAN -e shell install Config::Any
For more information on module installation, please visit the detailed CPAN module installation guide.