From: Tomas Doran Date: Fri, 22 Jan 2010 21:13:48 +0000 (+0000) Subject: Add some docs X-Git-Tag: 0.05~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=800adfe886087b5185a57260b1fc61e1c7080f1c;p=gitmo%2FMooseX-SimpleConfig.git Add some docs --- diff --git a/lib/MooseX/SimpleConfig.pm b/lib/MooseX/SimpleConfig.pm index b9ea981..993808b 100644 --- a/lib/MooseX/SimpleConfig.pm +++ b/lib/MooseX/SimpleConfig.pm @@ -123,6 +123,13 @@ provide a default configfile pathname like so: 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. + =head1 CLASS METHODS =head2 new_with_config