From: Tomas Doran Date: Fri, 22 Jan 2010 21:17:10 +0000 (+0000) Subject: Update README X-Git-Tag: 0.05~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ebaa5f43ac125f2c5658c122cb56f55c5ad251b1;p=gitmo%2FMooseX-SimpleConfig.git Update README --- diff --git a/README b/README index f13e2ed..65b8383 100644 --- a/README +++ b/README @@ -70,6 +70,14 @@ ATTRIBUTES has +configfile ( default => '/etc/myapp.yaml' ); + You can pass an array of filenames if you want, but as usual the array + has to be wrapped in a sub ref. + + has +configfile ( default => sub { [ '/etc/myapp.yaml', '/etc/myapp_local.yml' ] } ); + + Config files are trivially merged at the top level, with the right-hand + files taking precedence. + CLASS METHODS new_with_config Provided by the base role MooseX::ConfigFromFile. Acts just like regular