X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FModule.pm;h=30f7b8a56047e4d860fdc116c805ef877d5b98e6;hp=282a1cf745dc3936641f0b4b61c20a3da6fdfaa0;hb=3a6833503c4b132d636f048ceecba7ef4fbbc210;hpb=cc08dff9f13ae25057d4e84ddfacb4bdf44fea67 diff --git a/lib/Mouse/Meta/Module.pm b/lib/Mouse/Meta/Module.pm index 282a1cf..30f7b8a 100755 --- a/lib/Mouse/Meta/Module.pm +++ b/lib/Mouse/Meta/Module.pm @@ -63,7 +63,11 @@ sub name { $_[0]->{package} } # add_attribute is an abstract method -sub get_attribute_map { $_[0]->{attributes} } +sub get_attribute_map { + Carp::cluck('get_attribute_map() has been deprecated'); + return $_[0]->{attributes}; +} + sub has_attribute { exists $_[0]->{attributes}->{$_[1]} } sub get_attribute { $_[0]->{attributes}->{$_[1]} } sub get_attribute_list{ keys %{$_[0]->{attributes}} }