MooseX...sideOut(3pm)
π MooseX::InsideOut π
okay bestie, welcome to MooseX::InsideOut β inside-out objects with Moose, and honestly? it's giving β¨main character energyβ¨ for your attribute storage.
this one's from the User Contributed Perl Documentation corner of the perl world, so you know it's real ones only. iykyk π
πΈ VERSION πΈ
version 0.106 β yeah she's got a number, she's official π
π¦ SYNOPSIS π¦
package My::Object;
use MooseX::InsideOut;
# ... normal Moose functionality
# or ...
package My::Subclass;
use MooseX::InsideOut;
extends 'Some::Other::Class';
see how chill that is?? you literally just use it and go about your day. no cap. π
π DESCRIPTION π
so MooseX::InsideOut provides metaroles for inside-out objects. what does that mean in human words? it means it sets up your attribute slot storage somewhere other than inside $self. the attributes are not living in the object. they have their own apartment. independent. iconic. π β¨
and the why is the best part, fr fr: this means you can extend non-Moose classes β like, classes whose internals you either don't want to care about, or that just aren't hash-based at all. normally that's a whole situation. here? handled. π«Ά
ngl this is the kind of thing that makes you feel like you've unlocked a secret level of Moose. you didn't cheat, you just... knew someone. π
π METHODS π
π init_meta
apply the instance metarole necessary for inside-out storage.
that's it. that's the method. she does one thing and she does it flawlessly. periodt. π
π TODO π
the to-do list, aka the "we'll get to it bestie" list:
- dumping (for debugging purposes) π
- serialization (for e.g. storable) π¦
- (your suggestions here) π β yes literally, the original says this, come through with your ideas
π AUTHOR π
Hans Dieter Pearcey <hdp@cpan.org> β the legend, the icon, the moment. π
β COPYRIGHT AND LICENSE β
this software is copyright (c) 2011 by Hans Dieter Pearcey <hdp@cpan.org>. π«Ά
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go off, remix it, share it, just keep the same energy. π
and that's the whole page, bestie!! π
cute little sign-off for the record books: this lovely thing is documented as perl v5.36.0, dated 2022-12-12, and it lives in the manpage files as MooseX...sideOut(3pm) under User Contributed Perl Documentation. π¦πΈ
go write some inside-out objects. i believe in you. πβ¨π
π¦ where this page comes from
- debian bookworm: libmoosex-insideout-perl 0.106-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmoosex-insideout-perl 0.106-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmoosex-insideout-perl 0.106-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmoosex-insideout-perl 0.106-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmoosex-insideout-perl 0.106-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms