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

NAME

6       Mouse::Object - The base object for Mouse classes
7

VERSION

9       This document describes Mouse version v2.5.10
10

METHODS

12   "$class->new(%args | \%args) -> Object"
13       Instantiates a new "Mouse::Object". This is obviously intended for
14       subclasses.
15
16   "$class->BUILDARGS(@args) -> HashRef"
17       Lets you override the arguments that "new" takes.  It must return a
18       HashRef of parameters.
19
20   "$object->BUILDALL(\%args)"
21       Calls "BUILD" on each class in the class hierarchy. This is called at
22       the end of "new".
23
24   "$object->BUILD(\%args)"
25       You may put any business logic initialization in BUILD methods. You
26       don't need to redispatch or return any specific value.
27
28   "$object->DEMOLISHALL"
29       Calls "DEMOLISH" on each class in the class hierarchy. This is called
30       at "DESTROY" time.
31
32   "$object->DEMOLISH"
33       You may put any business logic deinitialization in DEMOLISH methods.
34       You don't need to redispatch or return any specific value.
35
36   "$object->does($role_name) -> Bool"
37       This will check if the invocant's class does a given $role_name.  This
38       is similar to "isa" for object, but it checks the roles instead.
39
40   "$object->dump($maxdepth) -> Str"
41       This is a handy utility for dumping an object with Data::Dumper.  By
42       default, the maximum depth is 3, to avoid making a mess.
43
44   "$object->meta() -> MetaClass"
45       This is a method which provides access to the object's metaclass.
46

SEE ALSO

48       Moose::Object
49
50
51
52perl v5.38.0                      2023-07-21                Mouse::Object(3pm)
Impressum