Util::Medley::Module::Overview
version 0.042
my $mo = Util::Medley::Module::Overview->new( moduleName => 'My::Module', hideModules => [ 'Moose::Object' ], ); foreach my $pm ($mo->getPublicMethods) { say $pm; }
This is simply a wrapper for Module::Overview with enhancements.
The module you want an overview for.
List of modules you want to exclude.
Returns a list of modules used by the module.
Returns a list of parent modules.
Returns a list of constants.
Combines and sorts the results from getPublicAttributes() and getInheritedPublicAttributes().
Returns a list of public attributes. Each item in the list is an ArrayRef of [ name, src ].
Returns a list of inherited public attributes. Each item in the list is an ArrayRef of [ name, src ].
Returns a list of private attributes. Each item in the list is an ArrayRef of [ name, src ].
Returns a list of inherited private attributes. Each item in the list is an ArrayRef of [ name, src ].
Combines and sorts the results from getPublicMethods() and getInheritedPublicMethods().
Returns a list of public methods. Each item in the list is an ArrayRef of [ name, src ].
Returns a list of inherited public methods. Each item in the list is an ArrayRef of [ name, src ].
Returns a list of private methods. Each item in the list is an ArrayRef of [ name, src ].
Returns a list of inherited private methods. Each item in the list is an ArrayRef of [ name, src ].
method _buildMyMethodsAndAttributes {
my $mo = $self->_moduleOverview; my @methods; push @methods, @{ $mo->{methods} } if $mo->{methods}; push @methods, @{ $mo->{methods_imported} } if $mo->{methods_imported}; my @sorted = $self->List->nsort(@methods); my @parsed = $self->_parseMethods( \@sorted ); my @mine; foreach my $aref (@parsed) { my ( $name, $from ) = @$aref; if ( !$from ) { push @mine, $name; } } return \@mine; }
To install Util::Medley, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Util::Medley
CPAN shell
perl -MCPAN -e shell install Util::Medley
For more information on module installation, please visit the detailed CPAN module installation guide.