Revision history for Perl extension Moose
+0.63
+ * Moose::Object
+ - use the method->execute API for BUILDALL
+ and DEMOLISHALL (Sartak)
+
0.62 Wed November 26, 2008
* Moose::Meta::Role::Application::ToClass
Moose::Meta::Role::Application::ToRole
return unless $_[0]->can('BUILD');
my ($self, $params) = @_;
foreach my $method (reverse $self->meta->find_all_methods_by_name('BUILD')) {
- $method->{code}->body->($self, $params);
+ $method->{code}->execute($self, $params);
}
}
sub DEMOLISHALL {
my $self = shift;
foreach my $method ($self->meta->find_all_methods_by_name('DEMOLISH')) {
- $method->{code}->body->($self);
+ $method->{code}->execute($self);
}
}