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 { shift->_immutable_cannot_call }
16 sub calculate_all_roles {
17 @{ $_[0]{__immutable}{calculate_all_roles} ||= [ shift->next::method ] };
28 Moose::Meta::Class::Immutable::Trait - Implements immutability for metaclass objects
32 This class makes some Moose-specific metaclass methods immutable. This
37 Yuval Kogman E<lt>nothingmuch@cpan.orgE<gt>
39 =head1 COPYRIGHT AND LICENSE
41 Copyright 2009 by Infinity Interactive, Inc.
43 L<http://www.iinteractive.com>
45 This library is free software; you can redistribute it and/or modify
46 it under the same terms as Perl itself.