X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FMetaDescription%2FMeta%2FAttribute.pm;h=a46e2ddda90f7bc7ef729dd0dea6745a2aca5b64;hb=56e78a9caff840fb68085ead8837a64c839740de;hp=fb1d4ea9595ab6b6e6a9255bfed08889573cc694;hpb=b70e06c6b7a72e0a2e5ff36f43192357390cecd9;p=gitmo%2FMooseX-MetaDescription.git diff --git a/lib/MooseX/MetaDescription/Meta/Attribute.pm b/lib/MooseX/MetaDescription/Meta/Attribute.pm index fb1d4ea..a46e2dd 100644 --- a/lib/MooseX/MetaDescription/Meta/Attribute.pm +++ b/lib/MooseX/MetaDescription/Meta/Attribute.pm @@ -1,7 +1,7 @@ package MooseX::MetaDescription::Meta::Attribute; use Moose; -our $VERSION = '0.01'; +our $VERSION = '0.02'; our $AUTHORITY = 'cpan:STEVAN'; extends 'Moose::Meta::Attribute'; @@ -15,19 +15,45 @@ __END__ =head1 NAME -MooseX::MetaDescription::Meta::Attribute - A Moosey solution to this problem +MooseX::MetaDescription::Meta::Attribute - Custom attribute metaclass for meta-descriptions =head1 SYNOPSIS - use MooseX::MetaDescription::Meta::Attribute; + package Foo; + use Moose; + + has 'bar' => ( + # use the meta description attribute metaclass for this attr + metaclass => 'MooseX::MetaDescription::Meta::Attribute', + is => 'ro', + isa => 'Str', + default => sub { 'Foo::bar' }, + description => { + baz => 'Foo::bar::baz', + gorch => 'Foo::bar::gorch', + } + ); =head1 DESCRIPTION +This module provides a custom attribute metaclass to add meta +description capabilities to your class attributes. + =head1 METHODS +NOTE: these are methods composed into this class from +L refer to that +module for the complete description. + =over 4 -=item B<> +=item B + +=item B + +=item B + +=item B =back