MooseX...tribute(3pm)
π NAME π
MooseX::Aliases::Meta::Trait::Attribute β bestie, it's the attribute metaclass trait for MooseX::Aliases. That's the whole vibe. (You'll also see it filed under the manual name MooseX...tribute(3pm), which is just the long name getting squished by the terminal. She's still her. π)
β¨ VERSION β¨
version 0.11 β yes, she's a real one, no cap π«Ά
πΈ SYNOPSIS πΈ
okay so this is literally all you have to do:
package MyApp::Role;
use Moose::Role;
use MooseX::Aliases;
has this => (
isa => 'Str',
is => 'rw',
alias => 'that',
);
look at her go π
this gets a whole other name and you didn't even break a sweat.
π¦ DESCRIPTION π¦
So here's the tea: this trait adds the alias option to attribute creation. That's it. That's the gift. π
And the best part? You don't have to do anything to turn it on, because it's automatically applied to all attributes the moment you run use MooseX::Aliases;. It just shows up. Main character energy, honestly. π
π AUTHORS π
the icons who made this happen:
- Jesse Luehrs
<doy@tozt.net> - Chris Prather
<chris@prather.org> - Justin Hunter
<justin.d.hunter@gmail.com>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2013 by Jesse Luehrs.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. fr fr, go wild, it's free. π
ngl this page was generated for perl v5.34.0 back on 2022-06-15, and it lives at MooseX...tribute(3pm) in the User Contributed Perl Documentation. slay, that's a wrap πβ¨π¦
π¦ where this page comes from
- debian bookworm: libmoosex-aliases-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmoosex-aliases-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmoosex-aliases-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmoosex-aliases-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmoosex-aliases-perl 0.11-2 Β· 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