1Test::Run::Class::HieraUrscehry(C3o)ntributed Perl DocumTeenstta:t:iRounn::Class::Hierarchy(3)
2
3
4
6 Test::Run::Class::Hierarchy - returns a list of super-classes in
7 topological order.
8
10 use Test::Run::Class::Hierarchy;
11
12 my $base_classes = hierarchy_of("MyClass::Sub::Sub::Sub");
13
14 my $base_classes_rev = rev_hierarchy_of("MyClass::Sub::Sub::Sub");
15
17 Returns a list of classes in the current namespace. Note that it caches
18 the results.
19
21 my [@list] = hierarchy_of($class)
22 Returns a list of the classes in the hierarchy of the class, from
23 bottom to top.
24
25 my [@list] = rev_hierarchy_of($class)
26 Returns the classes from top to bottom.
27
29 This file is licensed under the MIT X11 License:
30
31 http://www.opensource.org/licenses/mit-license.php
32
34 The code was inspired by the code from Damian Conway's Class::Std, but
35 is not inclusive of it.
36
37 Written by Shlomi Fish: <http://www.shlomifish.org/>.
38
40 Class::Std, Test::Run
41
42
43
44perl v5.36.0 2023-01-20 Test::Run::Class::Hierarchy(3)