6 use metaclass 'Moose::Meta::Class' => (
7 ':attribute_metaclass' => 'Moose::Meta::Attribute'
12 our $VERSION = '0.02';
17 my $self = $class->meta->new_object(%params);
18 $self->BUILDALL(%params);
23 my ($self, %params) = @_;
24 foreach my $method ($self->meta->find_all_methods_by_name('BUILD')) {
25 $method->{method}->($self, %params);
31 foreach my $method ($self->meta->find_all_methods_by_name('DEMOLISH')) {
32 $method->{method}->($self);
36 sub DESTROY { goto &DEMOLISHALL }
46 Moose::Object - The base object for Moose
60 This will create a new instance and call C<BUILDALL>.
64 This will call every C<BUILD> method in the inheritance hierarchy.
68 This will call every C<DEMOLISH> method in the inheritance hierarchy.
76 All complex software has bugs lurking in it, and this module is no
77 exception. If you find a bug please either email me, or add the bug
82 Stevan Little E<lt>stevan@iinteractive.comE<gt>
84 =head1 COPYRIGHT AND LICENSE
86 Copyright 2006 by Infinity Interactive, Inc.
88 L<http://www.iinteractive.com>
90 This library is free software; you can redistribute it and/or modify
91 it under the same terms as Perl itself.