Mercurial > pub > Impl
comparison Lib/IMPL/Resources/StringMap.pm @ 381:ced5937ff21a
Custom getters/setters support method names in theirs definitions
Initial support for localizable labels in DOM schemas
author | cin |
---|---|
date | Wed, 22 Jan 2014 16:56:10 +0400 |
parents | 2eed076cb944 |
children |
comparison
equal
deleted
inserted
replaced
380:1eca08048ba9 | 381:ced5937ff21a |
---|---|
80 } | 80 } |
81 | 81 |
82 sub Resolve { | 82 sub Resolve { |
83 my ($self,$obj,$prop) = @_; | 83 my ($self,$obj,$prop) = @_; |
84 | 84 |
85 return ( eval { $obj->can($prop) } ? $obj->$prop() : undef ); | 85 return eval { $obj->$prop() }; |
86 } | 86 } |
87 | 87 |
88 1; | 88 1; |
89 | 89 |
90 __END__ | 90 __END__ |