MooseX...ritable(3pm)
π MooseX::MethodAttributes::Inheritable π
okay bestie, so this is MooseX::MethodAttributes::Inheritable β it's the inheritable code attribute introspection module, and it ships as part of the User Contributed Perl Documentation situation. it's giving very much "the chill older sibling of MooseX::MethodAttributes" and honestly? we're obsessed.
and the version, for the record, is version 0.32. slay. β¨
πΈ NAME πΈ
MooseX::MethodAttributes::Inheritable β inheritable code attribute introspection π¦
π VERSION π
version 0.32
β¨ SYNOPSIS β¨
okay so here's the whole vibe, look:
package BaseClass;
use base qw/MooseX::MethodAttributes::Inheritable/;
package SubClass;
use base qw/BaseClass/;
sub foo : Bar {}
my $attrs = SubClass->meta->get_method('foo')->attributes; # ["Bar"]
and that # ["Bar"] at the end?? that's the payoff. the attribute got captured, no cap. π
π DESCRIPTION π
so basically this module does the exact same thing as MooseX::MethodAttributes β same energy, same job β with one iconic little twist:
classes that inherit from other classes using it don't need to do anything special to get their code attributes captured.
that's the whole point. that's the main character energy right there. your subclass just... exists, and its attributes get scooped up. no extra incantations, no rituals, no "oops did you forget to add the thing". π§
also important, bestie β and don't skip this part:
- instead of inheriting from this module, you can simply compose (that's the
withkeyword, iykyk) theMooseX::MethodAttributes::Role::AttrContainer::Inheritablerole. π
two paths, one destiny. pick your fave.
π«Ά SUPPORT π«Ά
found a bug? tragic but fixable. bugs may be submitted through the RT bug tracker at <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-MethodAttributes> β or you can email bug-MooseX-MethodAttributes@rt.cpan.org at <mailto:bug-MooseX-MethodAttributes@rt.cpan.org>. πβ¨
there's also a mailing list for users of this distribution, right here: <http://lists.perl.org/list/moose.html>. π
and there's an irc channel too, for users of this distribution: #moose on irc.perl.org β <irc://irc.perl.org/#moose>. come hang, fr fr. π
π AUTHORS π
the legends themselves:
- Florian Ragwitz <rafl@debian.org> π
- Tomas Doran <bobtfish@bobtfish.net> π¦
π COPYRIGHT AND LICENCE π
this software is copyright (c) 2009 by Florian Ragwitz.
it's free software, bestie β you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. go off. π
okay that's the whole page, nothing skipped, every flagless detail intact. periodt. π
and as a lil sign-off: this lil doc came from perl v5.30.3 and it's dated 2020-08-31, and yeah the manual page name is the squished-up MooseX...ritable(3pm) which is just the terminal being dramatic about a long name. bye bestie, go capture some attributes πβ¨π¦
π¦ where this page comes from
- debian bookworm: libmoosex-methodattributes-perl 0.32-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmoosex-methodattributes-perl 0.32-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libmoosex-methodattributes-perl 0.32-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmoosex-methodattributes-perl 0.32-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmoosex-methodattributes-perl 0.32-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmoosex-methodattributes-perl 0.32-1 Β· 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