2 use Mouse::Util qw(does dump meta); # enables strict and warnings
16 Mouse::Object - The base object for Mouse classes
20 This document describes Mouse version 0.72
24 =head2 C<< new (Arguments) -> Object >>
26 Instantiates a new C<Mouse::Object>. This is obviously intended for subclasses.
28 =head2 C<< BUILDARGS (Arguments) -> HashRef >>
30 Lets you override the arguments that C<new> takes. Return a hashref of
33 =head2 C<< BUILDALL (\%args) >>
35 Calls C<BUILD> on each class in the class hierarchy. This is called at the
38 =head2 C<< BUILD (\%args) >>
40 You may put any business logic initialization in BUILD methods. You don't
41 need to redispatch or return any specific value.
43 =head2 C<< DEMOLISHALL >>
45 Calls C<DEMOLISH> on each class in the class hierarchy. This is called at
48 =head2 C<< DEMOLISH >>
50 You may put any business logic deinitialization in DEMOLISH methods. You don't
51 need to redispatch or return any specific value.
54 =head2 C<< does ($role_name) -> Bool >>
56 This will check if the invocant's class B<does> a given C<$role_name>.
57 This is similar to "isa" for object, but it checks the roles instead.
59 =head2 C<< dump ($maxdepth) -> Str >>
63 C'mon, how many times have you written the following code while debugging:
68 It can get seriously annoying, so why not just use this.
70 The implementation was lifted directly from Moose::Object.