1 package Moose::Meta::Class::Immutable::Trait;
9 $VERSION = eval $VERSION;
10 our $AUTHORITY = 'cpan:STEVAN';
12 use base 'Class::MOP::Class::Immutable::Trait';
14 sub add_role { $_[1]->_immutable_cannot_call }
16 sub calculate_all_roles {
19 @{ $self->{__immutable}{calculate_all_roles} ||= [ $self->$orig ] };
30 Moose::Meta::Class::Immutable::Trait - Implements immutability for metaclass objects
34 This class makes some Moose-specific metaclass methods immutable. This
39 See L<Moose/BUGS> for details on reporting bugs.
43 Yuval Kogman E<lt>nothingmuch@cpan.orgE<gt>
45 =head1 COPYRIGHT AND LICENSE
47 Copyright 2009 by Infinity Interactive, Inc.
49 L<http://www.iinteractive.com>
51 This library is free software; you can redistribute it and/or modify
52 it under the same terms as Perl itself.