fixing up the method protocol more, actually this is probably closer to the accessor...
[gitmo/Class-MOP.git] / lib / Class / MOP.pm
index 0c7d0c9..66db0e2 100644 (file)
@@ -315,6 +315,12 @@ Class::MOP::Attribute->meta->add_attribute(
     ))
 );
 
+Class::MOP::Attribute->meta->add_attribute(
+    Class::MOP::Attribute->new('associated_methods' => (
+        reader  => { 'associated_methods' => \&Class::MOP::Attribute::associated_methods },
+        default => sub { [] } 
+    ))
+);
 
 # NOTE: (meta-circularity)
 # This should be one of the last things done