our $VERSION = '0.01';
our $AUTHORITY = 'cpan:STEVAN';
-has 'description' => (
- is => 'ro',
- isa => 'HashRef',
- lazy => 1,
- default => sub { +{} },
-);
+with 'MooseX::MetaDescription::Meta::Role::HasMetaDescription';
-has 'metadescription' => (
- is => 'ro',
- isa => 'MooseX::MetaDescription::Description',
- lazy => 1,
- default => sub {
- my $self = shift;
-
- # TODO: handle traits ...
-
- MooseX::MetaDescription::Description::Attribute->new(
- %{$self->description},
- attribute => $self,
- )
+has '+metadescription_classname' => (
+ default => sub {
+ 'MooseX::MetaDescription::Description::Attribute'
},
);