Test::Run::Class::Hierarchy - returns a list of super-classes in topological order.
use Test::Run::Class::Hierarchy; my $base_classes = hierarchy_of("MyClass::Sub::Sub::Sub"); my $base_classes_rev = rev_hierarchy_of("MyClass::Sub::Sub::Sub");
Returns a list of classes in the current namespace. Note that it caches the results.
Returns a list of the classes in the hierarchy of the class, from bottom to top.
Returns the classes from top to bottom.
This file is licensed under the MIT X11 License:
http://www.opensource.org/licenses/mit-license.php
The code was inspired by the code from Damian Conway's Class::Std, but is not inclusive of it.
Written by Shlomi Fish: http://www.shlomifish.org/.
Class::Std, Test::Run
To install Test::Run, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Run
CPAN shell
perl -MCPAN -e shell install Test::Run
For more information on module installation, please visit the detailed CPAN module installation guide.