X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=lib%2FConfig%2FAny%2FGeneral.pm;fp=lib%2FConfig%2FAny%2FGeneral.pm;h=749b3c4eb1f74719f1e2f7e12c72aea9d5f4b19b;hp=6aceb985bf4d236b5f7a0c8f8d6ce5df5019262d;hb=dcfb1d1d1a544d27a82cb174168df23abc539acb;hpb=4198bf8c36c5f90c71845bd2505d953d3422037e diff --git a/lib/Config/Any/General.pm b/lib/Config/Any/General.pm index 6aceb98..749b3c4 100644 --- a/lib/Config/Any/General.pm +++ b/lib/Config/Any/General.pm @@ -3,6 +3,8 @@ package Config::Any::General; use strict; use warnings; +use base 'Config::Any::Base'; + =head1 NAME Config::Any::General - Load Config::General files @@ -68,16 +70,13 @@ sub _test_perl { return defined $is_perl_src; } -=head2 is_supported( ) +=head2 requires_all_of( ) -Returns true if L is available. +Specifies that this module requires L in order to work. =cut -sub is_supported { - eval { require Config::General; }; - return $@ ? 0 : 1; -} +sub requires_all_of { 'Config::General' } =head1 AUTHOR