Config::Any::Base(3)

πŸ’… Config::Any::Base(3) β€” User Contributed Perl Documentation πŸ’…

okay so bestie, this is the base-class page for Config::Any::Base, and it’s giving β€œall the loaders start here” energy. No cap. πŸ’–

🌸 NAME 🌸

Config::Any::Base β€” Base class for loaders ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

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.

πŸ’… METHODS πŸ’…

is_supported( )

This lets us figure out if the file format can be loaded. You can do it via one of two subclass methods:

  • requires_all_of() β€” returns an array of items that must all be present in order to work.
  • requires_any_of() β€” returns an array of items in which at least one must be present.

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.

πŸ‘‘ AUTHOR πŸ‘‘

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.

🌈 SEE ALSO 🌈

  • Config::Any 🌟

that’s the whole vibe, bestie β€” this page is from perl v5.42.0, dated 2023-05-04, and it’s Config::Any::Base(3) πŸ«ΆπŸ’–

πŸ“¦ where this page comes from