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:
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/.