7 use metaclass 'Moose::Meta::Class' => (
8 ':attribute_metaclass' => 'Moose::Meta::Attribute'
11 our $VERSION = '0.01';
16 my $self = $class->meta->new_object(%params);
17 $self->BUILDALL(%params);
22 my ($self, %params) = @_;
23 foreach my $method ($self->meta->find_all_methods_by_name('BUILD')) {
24 $method->{method}->($self, %params);
30 foreach my $method ($self->meta->find_all_methods_by_name('DEMOLISH')) {
31 $method->{method}->($self);
35 sub DESTROY { goto &DEMOLISHALL }
67 All complex software has bugs lurking in it, and this module is no
68 exception. If you find a bug please either email me, or add the bug
73 I use L<Devel::Cover> to test the code coverage of my tests, below is the
74 L<Devel::Cover> report on this module's test suite.
76 =head1 ACKNOWLEDGEMENTS
80 Stevan Little E<lt>stevan@iinteractive.comE<gt>
82 =head1 COPYRIGHT AND LICENSE
84 Copyright 2006 by Infinity Interactive, Inc.
86 L<http://www.iinteractive.com>
88 This library is free software; you can redistribute it and/or modify
89 it under the same terms as Perl itself.