Mouse::Object(3pm)
β¨ NAME β¨
Mouse::Object(3pm) β the base object for Mouse classes, and yes bestie, itβs giving foundational main-character energy π. This is a user-contributed Perl doc, so show it some love.
πΈ VERSION πΈ
This document describes Mouse version v2.6.2 π.
π METHODS π
$class->new(%args | \%args) -> Object
Instantiates a new Mouse::Object. This is obviously intended for subclasses β like, itβs literally the base object doing base-object things π«Ά.
$class->BUILDARGS(@args) -> HashRef
Lets you override the arguments that new takes. It must return a HashRef of parameters. No cap, that return type matters β¨.
$object->BUILDALL(\%args)
Calls BUILD on each class in the class hierarchy. This is called at the end of new. Very βeveryone gets a turnβ behavior π.
$object->BUILD(\%args)
You may put any business logic initialization in BUILD methods. You donβt need to redispatch or return any specific value. Just do your little setup arc and slay π
.
$object->DEMOLISHALL
Calls DEMOLISH on each class in the class hierarchy. This is called at DESTROY time. Cleanup era, fr fr π§Ή.
$object->DEMOLISH
You may put any business logic deinitialization in DEMOLISH methods. You donβt need to redispatch or return any specific value. Tidy up your vibe and exit gracefully π.
$object->does($role_name) -> Bool
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. Role check, not identity check β iykyk π¦.
$object->dump($maxdepth) -> Str
This is a handy utility for dumping an object with Data::Dumper. By default, the maximum depth is 3, to avoid making a mess. Respect the depth limit, bestie π.
$object->meta() -> MetaClass
This is a method which provides access to the objectβs metaclass. Meta? In this economy? Obsessed π.
π₯ SEE ALSO π₯
Moose::Objectβ the reference in the house, periodt π.
This page came from perl v5.42.2 and is dated 2026-04-21 β source/version and date noted, bestie, now go forth and object-orient responsibly πβ¨
π¦ where this page comes from
- alpine 3.24: perl-mouse-doc 2.6.2-r0 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms