Permalink
Browse files

Add MooseX::CascadeClearing to the list of optional traits

  • Loading branch information...
1 parent ed9ca17 commit de7e761618713e2fbac039c0fce116dc57fc7992 @RsrchBoy committed Sep 26, 2012
Showing with 15 additions and 4 deletions.
  1. +10 −0 lib/Reindeer.pm
  2. +5 −4 lib/Reindeer/Util.pm
View
10 lib/Reindeer.pm
@@ -221,6 +221,16 @@ defined).
See L<MooseX::AutoDestruct> for more information.
+=head2 CascadeClearing
+
+This attribute trait allows one to designate that certain attributes are to be
+cleared when certain other ones are; that is, when an attribute is cleared
+that clearing will be cascaded down to other attributes. This is most useful
+when you have attributes that are lazily built.
+
+See L<MooseX::CascadeClearing> for more information and a significantly more
+cogent description.
+
=head2 ENV
This is a Moose attribute trait that you use when you want the default value
View
9 lib/Reindeer/Util.pm
@@ -44,10 +44,11 @@ sub trait_aliases {
# note that merely specifing aliases does not load the packages; Moose
# will handle that when (if) the trait is ever used.
return (
- [ 'MooseX::AutoDestruct::Trait::Attribute' => 'AutoDestruct' ],
- [ 'MooseX::MultiInitArg::Trait' => 'MultiInitArg' ],
- [ 'MooseX::TrackDirty::Attributes::Trait::Attribute' => 'TrackDirty' ],
- [ 'MooseX::UndefTolerant::Attribute' => 'UndefTolerant' ],
+ [ 'MooseX::AutoDestruct::Trait::Attribute' => 'AutoDestruct' ],
+ [ 'MooseX::MultiInitArg::Trait' => 'MultiInitArg' ],
+ [ 'MooseX::TrackDirty::Attributes::Trait::Attribute' => 'TrackDirty' ],
+ [ 'MooseX::UndefTolerant::Attribute' => 'UndefTolerant' ],
+ [ 'MooseX::CascadeClearing::Role::Meta::Attribute' => 'CascadeClearing' ],
# these don't export a trait_alias, so let's create one
'MooseX::LazyRequire::Meta::Attribute::Trait::LazyRequire',

0 comments on commit de7e761

Please sign in to comment.