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

NAME

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

VERSION

9       This document describes Mouse version 0.58
10

METHODS

12   "new (Arguments) -> Object"
13       Instantiates a new "Mouse::Object". This is obviously intended for
14       subclasses.
15
16   "BUILDARGS (Arguments) -> HashRef"
17       Lets you override the arguments that "new" takes. Return a hashref of
18       parameters.
19
20   "BUILDALL (\%args)"
21       Calls "BUILD" on each class in the class hierarchy. This is called at
22       the end of "new".
23
24   "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   "DEMOLISHALL"
29       Calls "DEMOLISH" on each class in the class hierarchy. This is called
30       at "DESTROY" time.
31
32   "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   "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   "dump ($maxdepth) -> Str"
41       From the Moose POD:
42
43           C'mon, how many times have you written the following code while debugging:
44
45            use Data::Dumper;
46            warn Dumper $obj;
47
48           It can get seriously annoying, so why not just use this.
49
50       The implementation was lifted directly from Moose::Object.
51

SEE ALSO

53       Moose::Object
54
55
56
57perl v5.12.0                      2010-05-08                  Mouse::Object(3)
Impressum