*CLONE = sub { Mouse::Util::__register_metaclass_storage(\%METAS, 1) };
}
-sub _metaclass_cache { # DEPRECATED
- my($class, $name) = @_;
- return $METAS{$name};
-}
-
sub initialize {
my($class, $package_name, @args) = @_;
sub namespace;
-# The followings are Class::MOP specific methods
-
-#sub version { no strict 'refs'; ${shift->name.'::VERSION'} }
-#sub authority { no strict 'refs'; ${shift->name.'::AUTHORITY'} }
-#sub identifier {
-# my $self = shift;
-# return join '-' => (
-# $self->name,
-# ($self->version || ()),
-# ($self->authority || ()),
-# );
-#}
-
# add_attribute is an abstract method
-sub get_attribute_map { # DEPRECATED
- 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 remove_attribute { delete $_[0]->{attributes}->{$_[1]} }