X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FPurePerl.pm;h=0a626f8105038701732205d868eb955e02fb6128;hb=refs%2Ftags%2F0.4501;hp=fc6b45786a4c6248e421b65c4286a98eabd630c3;hpb=ebe91068002fbe34a924a0a9e2cd79553867938c;p=gitmo%2FMouse.git diff --git a/lib/Mouse/PurePerl.pm b/lib/Mouse/PurePerl.pm index fc6b457..0a626f8 100644 --- a/lib/Mouse/PurePerl.pm +++ b/lib/Mouse/PurePerl.pm @@ -317,6 +317,7 @@ sub _initialize_object{ return; } +sub is_immutable { $_[0]->{is_immutable} } package Mouse::Meta::Role; @@ -513,6 +514,24 @@ sub DESTROY { die $e if $e; # rethrow } +sub BUILDALL { + my $self = shift; + + # short circuit + return unless $self->can('BUILD'); + + for my $class (reverse $self->meta->linearized_isa) { + my $build = Mouse::Util::get_code_ref($class, 'BUILD') + || next; + + $self->$build(@_); + } + return; +} + +sub DEMOLISHALL; +*DEMOLISHALL = \&DESTROY; + 1; __END__ @@ -522,7 +541,7 @@ Mouse::PurePerl - A Mouse guts in pure Perl =head1 VERSION -This document describes Mouse version 0.43 +This document describes Mouse version 0.4501 =head1 SEE ALSO