2 use Mouse::Util qw(does dump meta); # enables strict and warnings
3 # all the stuff are defined in XS or PP
9 Mouse::Object - The base object for Mouse classes
13 This document describes Mouse version 0.81
17 =head2 C<< $class->new(%args | \%args) -> Object >>
19 Instantiates a new C<Mouse::Object>. This is obviously intended for subclasses.
21 =head2 C<< $class->BUILDARGS(@args) -> HashRef >>
23 Lets you override the arguments that C<new> takes.
24 It must return a HashRef of parameters.
26 =head2 C<< $object->BUILDALL(\%args) >>
28 Calls C<BUILD> on each class in the class hierarchy. This is called at the
31 =head2 C<< $object->BUILD(\%args) >>
33 You may put any business logic initialization in BUILD methods. You don't
34 need to redispatch or return any specific value.
36 =head2 C<< $object->DEMOLISHALL >>
38 Calls C<DEMOLISH> on each class in the class hierarchy. This is called at
41 =head2 C<< $object->DEMOLISH >>
43 You may put any business logic deinitialization in DEMOLISH methods. You don't
44 need to redispatch or return any specific value.
46 =head2 C<< $object->does($role_name) -> Bool >>
48 This will check if the invocant's class B<does> a given C<$role_name>.
49 This is similar to C<isa> for object, but it checks the roles instead.
51 =head2 C<< $object->dump($maxdepth) -> Str >>
53 This is a handy utility for dumping an object with Data::Dumper.
54 By default, the maximum depth is 3, to avoid making a mess.
56 =head2 C<< $object->meta() -> MetaClass >>
58 This is a method which provides access to the object's metaclass.