1Mouse::Util(3)        User Contributed Perl Documentation       Mouse::Util(3)
2
3
4

NAME

6       Mouse::Util - Utilities for working with Mouse classes
7

VERSION

9       This document describes Mouse version v2.5.6
10

SYNOPSIS

12           use Mouse::Util; # turns on strict and warnings
13

DESCRIPTION

15       This module provides a set of utility functions. Many of these
16       functions are intended for use in Mouse itself or MouseX modules, but
17       some of them may be useful for use in your own code.
18

IMPLEMENTATIONS FOR

20   Moose::Util functions
21       The following functions are exportable.
22
23       "find_meta($class_or_obj)"
24
25       The same as "Mouse::Util::class_of()".
26
27       "does_role($class_or_obj, $role_or_obj)"
28
29       "resolve_metaclass_alias($category, $name, %options)"
30
31       "apply_all_roles($applicant, @roles)"
32
33       "english_listi(@items)"
34
35   Class::MOP functions
36       The following functions are not exportable.
37
38       "Mouse::Util::is_class_loaded($classname) -> Bool"
39
40       Returns whether $classname is actually loaded or not.  It uses a
41       heuristic which involves checking for the existence of $VERSION, @ISA,
42       and any locally-defined method.
43
44       "Mouse::Util::load_class($classname) -> ClassName"
45
46       This will load a given $classname (or die if it is not loadable).  This
47       function can be used in place of tricks like "eval "use $module ()"" or
48       using "require".
49
50       "Mouse::Util::class_of($classname_or_object) -> MetaClass"
51
52       "Mouse::Util::get_metaclass_by_name($classname) -> MetaClass"
53
54       "Mouse::Util::get_all_metaclass_instances() -> (MetaClasses)"
55
56       "Mouse::Util::get_all_metaclass_names() -> (ClassNames)"
57
58   mro (or MRO::Compat)
59       "get_linear_isa"
60
61   Sub::Identify
62       "get_code_info"
63

Mouse specific utilities

65       "not_supported"
66
67       "get_code_package"
68
69       "get_code_ref"
70

SEE ALSO

72       Moose::Util
73
74       Class::MOP
75
76       Sub::Identify
77
78       mro
79
80       MRO::Compat
81
82
83
84perl v5.28.0                      2018-08-14                    Mouse::Util(3)
Impressum