Permalink
Browse files

Skip Moose::Role's

Signed-off-by: Alexei Znamensky <russoz@cpan.org>
  • Loading branch information...
1 parent 76e534a commit ca0ef12fe9997a8c376bc167e00efadb36a1ff13 @russoz russoz committed Mar 9, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Pod/Weaver/Section/ClassMopper.pm
View
2 lib/Pod/Weaver/Section/ClassMopper.pm
@@ -79,6 +79,7 @@ sub _build_attributes {
my $self = shift;
my $meta = $self->_class;
return unless ref $meta;
+ return if $meta->isa('Moose::Meta::Role');
my @attributes = $meta->get_all_attributes;
if( @attributes ) {
my @chunks = map { $self->_build_attribute_paragraph( $_ ) } @attributes;
@@ -90,6 +91,7 @@ sub _build_methods {
my $self = shift;
my $meta = $self->_class;
return unless ref $meta;
+ return if $meta->isa('Moose::Meta::Role');
my @methods = $meta->get_all_methods;
if( @methods ) {

0 comments on commit ca0ef12

Please sign in to comment.