| 1 | package Config::MVP::Reader::Findable 2.200015; | ||
| 2 | # ABSTRACT: a config class that Config::MVP::Reader::Finder can find | ||
| 3 | |||
| 4 | 1 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | #pod =head1 DESCRIPTION | ||
| 7 | #pod | ||
| 8 | #pod Config::MVP::Reader::Findable is a role meant to be composed alongside | ||
| 9 | #pod Config::MVP::Reader. | ||
| 10 | #pod | ||
| 11 | #pod =method refined_location | ||
| 12 | #pod | ||
| 13 | #pod This method is used to decide whether a Findable reader can read a specific | ||
| 14 | #pod thing under the C<$location> argument passed to C<read_config>. The location | ||
| 15 | #pod could be a directory or base file name or dbh or almost anything else. This | ||
| 16 | #pod method will return false if it can't find anything to read. If it can find | ||
| 17 | #pod something to read, it will return a new (or unchanged) value for C<$location> | ||
| 18 | #pod to be used in reading the config. | ||
| 19 | #pod | ||
| 20 | #pod =cut | ||
| 21 | |||
| 22 | 1 | requires 'refined_location'; | |
| 23 | |||
| 24 | 1 | ▶ | no Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 25 | 1 | 1; | |
| 26 | |||
| 27 | __END__ | ||