Subject: | Bio::Graphics::Glyph::generic maxdepth (documentation) |
The POD for Bio::Graphics::Glyph::generic states:
#####################################################
This module overrides the maxdepth() method to return 0 unless the
-maxdepth option is provided explicitly. This means that any module
that inherits from generic will need to override maxdepth() again in
order to draw subfeatures. In general, those implementing
multi-segmented feature glyphs should inherit from
Bio::Graphics::Glyph::segments, which allows for one level of descent.
#####################################################
However, the maxdepth() method appears to default to 1:
#####################################################
sub maxdepth {
my $self = shift;
my $maxdepth = $self->option('maxdepth');
return $maxdepth if defined $maxdepth;
return 1;
}
#####################################################
Suggest making the documentation and behavior consistent.