Commit | Line | Data |
c13295c8 |
1 | package MooseX::MetaDescription::Meta::Attribute; |
2 | use Moose; |
3 | |
56e78a9c |
4 | our $VERSION = '0.02'; |
c13295c8 |
5 | our $AUTHORITY = 'cpan:STEVAN'; |
6 | |
7 | extends 'Moose::Meta::Attribute'; |
b70e06c6 |
8 | with 'MooseX::MetaDescription::Meta::Trait'; |
c13295c8 |
9 | |
10 | no Moose; 1; |
11 | |
12 | __END__ |
13 | |
14 | =pod |
15 | |
16 | =head1 NAME |
17 | |
d253607a |
18 | MooseX::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 |
39 | This module provides a custom attribute metaclass to add meta |
40 | description capabilities to your class attributes. |
41 | |
42 | =head1 METHODS |
43 | |
44 | NOTE: these are methods composed into this class from |
45 | L<MooseX::MetaDescription::Meta::Trait> refer to that |
46 | module 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 | |
62 | All complex software has bugs lurking in it, and this module is no |
63 | exception. If you find a bug please either email me, or add the bug |
64 | to cpan-RT. |
65 | |
66 | =head1 AUTHOR |
67 | |
68 | Stevan Little E<lt>stevan.little@iinteractive.comE<gt> |
69 | |
70 | =head1 COPYRIGHT AND LICENSE |
71 | |
72 | Copyright 2008 Infinity Interactive, Inc. |
73 | |
74 | L<http://www.iinteractive.com> |
75 | |
76 | This library is free software; you can redistribute it and/or modify |
77 | it under the same terms as Perl itself. |
78 | |
79 | =cut |