comparison lib/IMPL/Config/ValueDescriptor.pm @ 417:3ed0c58e9da3 ref20150831

working on di container, tests
author cin
date Mon, 02 Nov 2015 01:56:53 +0300
parents 3d24b10dd0d5
children 7798345304bc
comparison
equal deleted inserted replaced
416:cc2cf8c0edc2 417:3ed0c58e9da3
36 36
37 if ( is( $value, Descriptor ) ) { 37 if ( is( $value, Descriptor ) ) {
38 return $value->Activate($context); 38 return $value->Activate($context);
39 } 39 }
40 elsif ( isarray($value) ) { 40 elsif ( isarray($value) ) {
41 return [ map $this->_ActivateValue($_), @$value ]; 41 return [ map $this->_ActivateValue($_, $context), @$value ];
42 } 42 }
43 elsif ( ishash($value) ) { 43 elsif ( ishash($value) ) {
44 return { 44 return {
45 map { $_, $this->_ActivateValue( $value->{$_} ) } 45 map { $_, $this->_ActivateValue( $value->{$_}, $context ) }
46 keys %$value 46 keys %$value
47 }; 47 };
48 } 48 }
49 else { 49 else {
50 return $value; 50 return $value;