X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=lib%2FConfig%2FAny%2FYAML.pm;h=2e800be448993734d248bf385d5deae47fdd99cd;hp=8a999b5cb4aa2dfc8ef90120707cceaedd4e9456;hb=dcfb1d1d1a544d27a82cb174168df23abc539acb;hpb=48e4a267ac83f85a46ee54c53052f8831752acac diff --git a/lib/Config/Any/YAML.pm b/lib/Config/Any/YAML.pm index 8a999b5..2e800be 100644 --- a/lib/Config/Any/YAML.pm +++ b/lib/Config/Any/YAML.pm @@ -3,6 +3,8 @@ package Config::Any::YAML; use strict; use warnings; +use base 'Config::Any::Base'; + =head1 NAME Config::Any::YAML - Load YAML config files @@ -54,18 +56,14 @@ sub load { } } -=head2 is_supported( ) +=head2 requires_any_of( ) -Returns true if either L or L is available. +Specifies that this modules requires one of L (0.70) or L in +order to work. =cut -sub is_supported { - eval { require YAML::Syck; }; - return 1 unless $@; - eval { require YAML; }; - return $@ ? 0 : 1; -} +sub requires_any_of { [ 'YAML::Syck', '0.70' ], 'YAML' } =head1 AUTHOR