inheriting class desc
[gitmo/MooseX-MetaDescription.git] / lib / MooseX / MetaDescription / Meta / Class.pm
CommitLineData
c13295c8 1package MooseX::MetaDescription::Meta::Class;
2use Moose;
3
d9f5e5ae 4our $VERSION = '0.02';
c13295c8 5our $AUTHORITY = 'cpan:STEVAN';
6
7extends 'Moose::Meta::Class';
b70e06c6 8 with 'MooseX::MetaDescription::Meta::Trait';
d9f5e5ae 9
10has '+description' => (
11 default => sub {
12 my $self = shift;
13 my @supers = $self->linearized_isa;
14 shift @supers;
15 my %desc;
16 foreach my $super (@supers) {
17 if ($super->meta->isa('MooseX::MetaDescription::Meta::Class')) {
18 %desc = (%{ $super->meta->description }, %desc)
19 }
20 }
21 \%desc;
22 },
23);
c13295c8 24
25no Moose; 1;
26
27__END__
28
29=pod
30
31=head1 NAME
32
d253607a 33MooseX::MetaDescription::Meta::Class - Custom class metaclass for meta-descriptions
c13295c8 34
35=head1 DESCRIPTION
36
d253607a 37Nothing worth saying yet actually, mostly internal usage only. See the
38SYNPOSIS in L<MooseX::MetaDescription> for an example of usage.
c13295c8 39
40=head1 BUGS
41
de7ba0e9 42All complex software has bugs lurking in it, and this module is no
c13295c8 43exception. If you find a bug please either email me, or add the bug
44to cpan-RT.
45
46=head1 AUTHOR
47
48Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
49
50=head1 COPYRIGHT AND LICENSE
51
52Copyright 2008 Infinity Interactive, Inc.
53
54L<http://www.iinteractive.com>
55
56This library is free software; you can redistribute it and/or modify
57it under the same terms as Perl itself.
58
59=cut