NAME
Test::Run::Class::Hierarchy - returns a list of super-classes in topological order.
SYNPOSIS
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");
DESCRIPTION
Returns a list of classes in the current namespace. Note that it caches the results.
EXPORTS
my [@list] = hierarchy_of($class)
Returns a list of the classes in the hierarchy of the class, from bottom to top.
my [@list] = rev_hierarchy_of($class)
Returns the classes from top to bottom.
LICENSE
This file is licensed under the MIT X11 License:
http://www.opensource.org/licenses/mit-license.php
CREDITS
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/.