| Mouse::Object - The base object for Mouse classes |
new (Arguments) -> ObjectBUILDARGS (Arguments) -> HashRefBUILDALL (\%args)BUILD (\%args)DEMOLISHALLDEMOLISHdoes ($role_name) -> Booldump ($maxdepth) -> Str
Mouse::Object - The base object for Mouse classes
This document describes Mouse version 0.65
new (Arguments) -> ObjectInstantiates a new Mouse::Object. This is obviously intended for subclasses.
BUILDARGS (Arguments) -> HashRefLets you override the arguments that new takes. Return a hashref of
parameters.
BUILDALL (\%args)Calls BUILD on each class in the class hierarchy. This is called at the
end of new.
BUILD (\%args)You may put any business logic initialization in BUILD methods. You don't need to redispatch or return any specific value.
DEMOLISHALLCalls DEMOLISH on each class in the class hierarchy. This is called at
DESTROY time.
DEMOLISHYou may put any business logic deinitialization in DEMOLISH methods. You don't need to redispatch or return any specific value.
does ($role_name) -> BoolThis will check if the invocant's class does a given $role_name.
This is similar to "isa" for object, but it checks the roles instead.
dump ($maxdepth) -> StrFrom the Moose POD:
C'mon, how many times have you written the following code while debugging:
use Data::Dumper;
warn Dumper $obj;
It can get seriously annoying, so why not just use this.
The implementation was lifted directly from Moose::Object.
| Mouse::Object - The base object for Mouse classes |