use strict;
use warnings;
-
use metaclass 'Moose::Meta::Class' => (
':attribute_metaclass' => 'Moose::Meta::Attribute'
);
-our $VERSION = '0.01';
+use Carp 'confess';
+
+our $VERSION = '0.02';
sub new {
my $class = shift;
sub BUILDALL {
my ($self, %params) = @_;
foreach my $method ($self->meta->find_all_methods_by_name('BUILD')) {
- $method->{method}->($self, %params);
+ $method->{code}->($self, %params);
}
}
sub DEMOLISHALL {
my $self = shift;
foreach my $method ($self->meta->find_all_methods_by_name('DEMOLISH')) {
- $method->{method}->($self);
+ $method->{code}->($self);
}
}
This will call every C<DEMOLISH> method in the inheritance hierarchy.
+=item B<NEXT>
+
=back
=head1 BUGS