From: Tomas Doran Date: Thu, 16 Dec 2010 19:25:01 +0000 (+0000) Subject: Update README X-Git-Tag: 0.03~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f028e0e18ca1d77e15c15ca47925066e3fc46de1;p=gitmo%2FMooseX-ConfigFromFile.git Update README --- diff --git a/README b/README index b09fb52..03072a2 100644 --- a/README +++ b/README @@ -31,7 +31,7 @@ SYNOPSIS with 'MooseX::SomeSpecificConfigRole'; # optionally, default the configfile: - has +configfile ( default => '/tmp/foo.yaml' ); + sub configfile { '/tmp/foo.yaml' } # ... insert your stuff here ... @@ -67,6 +67,10 @@ Attributes has +configfile ( default => '/etc/myapp.yaml' ); + Note that you can alternately just provide a "configfile" method which + returns the config file when called - this will be used in preference to + the default of the attribute. + Class Methods new_with_config This is an alternate constructor, which knows to look for the @@ -83,14 +87,19 @@ Class Methods and it is expected to return a hashref of arguments to pass to "new()" which are sourced from the configfile. - meta - The Moose meta stuff, included here because otherwise pod tests fail - sometimes +COPYRIGHT + Copyright (c) 2007 - 2009 the MooseX::ConfigFromFile "AUTHOR" and + "CONTRIBUTORS" as listed below. -BUGS AUTHOR Brandon L. Black, +CONTRIBUTORS + Tomas Doran "" (current maintainer). + Karen Etheridge + Chris Prather + Zbigniew Lukasiak + LICENSE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.