NAME

Util::Medley::Module::Overview

VERSION

version 0.035

SYNOPSIS

my $mo = Util::Medley::Module::Overview->new(
    moduleName  => 'My::Module',
    hideModules => [ 'Moose::Object' ],
);

foreach my $pm ($mo->getPublicMethods) {
    say $pm;	
}
  

DESCRIPTION

This is simply a wrapper for Module::Overview with enhancements.

ATTRIBUTES

moduleName (required)

The module you want an overview for.

type: Str

hideModules (optional)

List of modules you want to exclude.

type: ArrayRef[Str]

METHODS

getImportedModules

Returns a list of modules used by the module.

getParents

Returns a list of parent modules.

getConstants

Returns a list of constants.

getPublicAttributes

Returns a list of public attributes.

getInheritedPublicAttributes

Returns a list of inherited public attributes.

getPrivateAttributes

Returns a list of private attributes.

getInheritedPrivateAttributes

Returns a list of inherited private attributes.

getPublicMethods

Returns a list of public methods.

getInheritedPublicMethods

Returns a list of inherited public methods.

getPrivateMethods

Returns a list of private methods.

getInheritedPrivateMethods

Returns a list of inherited private methods.

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;
}