Mercurial > pub > Impl
annotate lib/IMPL/Config/YAMLConfig.pm @ 419:bbc4739c4d48 ref20150831
working on IMPL::Config::Container
author | cin |
---|---|
date | Sun, 29 Jan 2017 10:30:20 +0300 |
parents | 3f38dabaf5cc |
children | 7798345304bc |
rev | line source |
---|---|
418 | 1 package IMPL::Config::YAMLConfig; |
2 use strict; | |
3 | |
419 | 4 use IMPL::lang qw(:base); |
5 use IMPL::Exception(); | |
6 use YAML::XS(); | |
7 | |
8 sub Load { | |
9 my ( $this, $container, $file ) = @_; | |
10 | |
11 $this->Configure( isscalar($file) | |
12 ? YAML::XS::Load( ${$file} ) | |
13 : YAML::XS::LoadFile($file) ); | |
14 } | |
15 | |
418 | 16 sub Configure { |
419 | 17 my ( $this, $container, $config ) = @_; |
418 | 18 |
419 | 19 |
20 | |
418 | 21 } |
22 | |
23 1; | |
24 | |
25 __END__ | |
26 | |
27 =pod | |
28 | |
29 | |
419 | 30 =cut |