Name : perl-MooseX-CascadeClearing
| |
Version : 0.05
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.7.1
| Date : 2023-07-20 20:52:59
|
Group : Development/Libraries/Perl
| Source RPM : perl-MooseX-CascadeClearing-0.05-lp155.7.1.src.rpm
|
Size : 0.04 MB
| |
Packager : https://www_suse_com/
| |
Summary : Cascade clearer actions across attributes
|
Description :
MooseX::CascadeClearing does the necessary metaclass fiddling to allow an clearing one attribute to be cascaded through to other attributes as well, calling their clear accessors.
The intended purpose of this is to assist in situations where the value of one attribute is derived from the value of another attribute -- say a situation where the secondary value is expensive to derive and is thus lazily built. A change to the primary attribute\'s value would invalidate the secondary value and as such the secondary should be cleared. While it could be argued that this is trivial to do manually for a few attributes, once we consider subclassing and adding in roles the ability to \"auto-clear\", as it were, is a valuable trait. (Sorry, couldn\'t resist.)
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-M/15.5/noarch |