our $VERSION = '0.37_02';
use Carp qw(confess);
-use Scalar::Util ();
+use Scalar::Util qw(blessed);
use Mouse::Util qw(load_class is_class_loaded get_code_package not_supported);
],
);
+# XXX: for backward compatibility
+our @EXPORT = qw(
+ extends with
+ has
+ before after around
+ override super
+ augment inner
+ blessed confess
+);
+
sub extends { Mouse::Meta::Class->initialize(scalar caller)->superclasses(@_) }
sub has {
package Mouse::Role;
use Mouse::Util qw(not_supported); # enables strict and warnings
-use Carp ();
-use Scalar::Util ();
+use Carp qw(confess);
+use Scalar::Util qw(blessed);
use Mouse ();
use Mouse::Exporter;
],
);
+# XXX: for backward compatibility
+our @EXPORT = qw(
+ extends with
+ has
+ before after around
+ override super
+ augment inner
+
+ requires excludes
+
+ blessed confess
+);
sub before {
my $meta = Mouse::Meta::Role->initialize(scalar caller);