Rechercher une page de manuel
Mouse::Object.3pm
Langue: en
Version: 2009-05-27 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
Mouse::Object - we don't need to steenkin' constructorMETHODS
new arguments -> object
Instantiates a new Mouse::Object. This is obviously intended for subclasses.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.BUILDARGS
Lets you override the arguments that "new" takes. Return a hashref of parameters.DEMOLISHALL
Calls ``DEMOLISH'' on each class in the class hierarchy. This is called at ``DESTROY'' time.DEMOLISH
You may put any business logic deinitialization in DEMOLISH methods. You don't need to redispatch or return any specific value.does $role_name
This 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)
From 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.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre