package cache flag methods for Role
Yuval Kogman [Sat, 16 Aug 2008 03:38:32 +0000 (03:38 +0000)]
lib/Moose/Meta/Role.pm

index 9625ee3..4a36f24 100644 (file)
@@ -240,6 +240,14 @@ sub get_method_modifier_list {
     keys %{$self->$accessor};
 }
 
+sub reset_package_cache_flag  { (shift)->{'_package_cache_flag'} = undef }
+sub update_package_cache_flag {
+    my $self = shift;
+    $self->{'_package_cache_flag'} = Class::MOP::check_package_cache_flag($self->name);
+}
+
+
+
 ## ------------------------------------------------------------------
 ## subroles