use strict;
use warnings;
-use Carp qw(cluck);
-our $VERSION = '0.92_01';
+use Carp qw( cluck );
+use Scalar::Util qw( blessed );
+
+our $VERSION = '0.94';
$VERSION = eval $VERSION;
our $AUTHORITY = 'cpan:STEVAN';
package
Class::MOP::Package;
+sub get_method_map {
+ Class::MOP::Deprecated::warn(
+ 'The get_method_map method has been made private.'
+ . " The public version is deprecated and will be removed in a future release.\n"
+ );
+ my $self = shift;
+
+ my $map = $self->_full_method_map;
+
+ $map->{$_} = $self->get_method($_)
+ for grep { !blessed( $map->{$_} ) } keys %{$map};
+
+ return $map;
+}
+
package
Class::MOP::Module;
=head1 FUNCTIONS
-This class provides methods that have been deprecated but remain for backward compatibility.
-
-If you specify C<< -compatible => $version >>, you can use deprecated features without warnings.
-Note that this special treatment is package-scoped.
-
-=over 4
-
-=item B<Class::MOP::Deprecated::warn($message)>
-
-Checks compatibility for the caller feature, and produces warnings if needed.
-
-This function is used in internals.
+This class provides methods that have been deprecated but remain for backward
+compatibility.
-=back
+If you specify C<< -compatible => $version >>, you can use deprecated features
+without warnings. Note that this special treatment is limited to the package
+that loads C<Class::MOP::Deprecated>.
=head1 AUTHORS