0.02
[gitmo/MooseX-MetaDescription.git] / lib / MooseX / MetaDescription / Meta / Attribute.pm
CommitLineData
c13295c8 1package MooseX::MetaDescription::Meta::Attribute;
2use Moose;
3
56e78a9c 4our $VERSION = '0.02';
c13295c8 5our $AUTHORITY = 'cpan:STEVAN';
6
7extends 'Moose::Meta::Attribute';
b70e06c6 8 with 'MooseX::MetaDescription::Meta::Trait';
c13295c8 9
10no Moose; 1;
11
12__END__
13
14=pod
15
16=head1 NAME
17
d253607a 18MooseX::MetaDescription::Meta::Attribute - Custom attribute metaclass for meta-descriptions
c13295c8 19
56e78a9c 20=head1 SYNOPSIS
21
22 package Foo;
23 use Moose;
24
25 has 'bar' => (
26 # use the meta description attribute metaclass for this attr
27 metaclass => 'MooseX::MetaDescription::Meta::Attribute',
28 is => 'ro',
29 isa => 'Str',
30 default => sub { 'Foo::bar' },
31 description => {
32 baz => 'Foo::bar::baz',
33 gorch => 'Foo::bar::gorch',
34 }
35 );
36
c13295c8 37=head1 DESCRIPTION
38
56e78a9c 39This module provides a custom attribute metaclass to add meta
40description capabilities to your class attributes.
41
42=head1 METHODS
43
44NOTE: these are methods composed into this class from
45L<MooseX::MetaDescription::Meta::Trait> refer to that
46module for the complete description.
47
48=over 4
49
50=item B<description>
51
52=item B<metadescription_classname>
53
54=item B<metadescription>
55
56=item B<meta>
57
58=back
c13295c8 59
60=head1 BUGS
61
62All complex software has bugs lurking in it, and this module is no
63exception. If you find a bug please either email me, or add the bug
64to cpan-RT.
65
66=head1 AUTHOR
67
68Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
69
70=head1 COPYRIGHT AND LICENSE
71
72Copyright 2008 Infinity Interactive, Inc.
73
74L<http://www.iinteractive.com>
75
76This library is free software; you can redistribute it and/or modify
77it under the same terms as Perl itself.
78
79=cut