class's metaclass.
Wrap _immutable_metaclass in the trait for the sake of the tests (not
sure if the test is valid, but whatever).
return $class_name
if Class::MOP::is_class_loaded($class_name);
- my $meta = Class::MOP::Class->create(
+ my $meta = (ref $self)->create(
$class_name,
superclasses => [ ref $self ],
);
sub is_mutable { 0 }
sub is_immutable { 1 }
+sub _immutable_metaclass { ref $_[1] }
+
sub superclasses {
my $orig = shift;
my $self = shift;