X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FModule.pm;h=30f7b8a56047e4d860fdc116c805ef877d5b98e6;hb=3a6833503c4b132d636f048ceecba7ef4fbbc210;hp=282a1cf745dc3936641f0b4b61c20a3da6fdfaa0;hpb=23274b88b6a445f5a0e806749e73b4134e5efbc2;p=gitmo%2FMouse.git 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}} }