MooseX...liased(3pm)

πŸ“¦
version 0.215 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– NAME πŸ’–

MooseX::POE::Aliased β€” a sane alias attribute for your MooseX::POE objects. That's the whole vibe. It lives in the user-contributed Perl docs as MooseX...liased(3pm), and yes bestie the filename is doing a little bit, we move.


✨ VERSION ✨

This is version 0.215. Iconic behavior, no cap.


🌸 SYNOPSIS 🌸

    use MooseX::POE;

with qw(MooseX::POE::Aliased);

my $obj = Foo->new( alias => "blah" );

$obj->alias("arf"); # previous one is removed, new one is set

$obj->alias(undef); # no alias set

okay so look at that. you give it an alias when you construct it, you swap the alias later and the old one gets yanked automatically, and if you pass undef you get no alias at all. it's giving effortless πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

So this role right here hands your MooseX::POE objects an alias attribute. That's its whole job and it does it flawlessly, honestly.

Here's the tea: the attribute can be set, and when you set it, the alias you had before gets cleared and the new value slides right in. Main character energy β€” one alias at a time, periodt.


πŸ’… METHODS πŸ’…

alias

The alias to set for the session. Like, the actual name your session is known by.

It defaults to the overload::StrVal of the object. So if you don't set anything, you get that. Cute, functional, free.

If the value gets set at runtime β€” like, mid-run, after everything's already up β€” the alias will be updated in the POE::Kernel. The kernel gets the memo. 🫢

And a value of undef inhibits aliasing. Translation: no alias, none, zero, gone.


πŸŽ€ ATTRIBUTES πŸŽ€

Nothing listed here. The section is there, the content is not. It's giving minimalism. πŸ™ˆ


πŸ‘‘ AUTHORS πŸ‘‘

  • Chris Prather <chris@prather.org>
  • Ash Berlin <ash@cpan.org>
  • Chris Williams <chris@bingosnet.co.uk>
  • Yuval (nothingmuch) Kogman
  • Torsten Raudssus <torsten@raudssus.de> <http://www.raudssus.de/>

a whole squad. five legends. the group chat is stacked fr fr 🌈


This software is copyright (c) 2010 by Chris Prather, Ash Berlin, Chris Williams, Yuval Kogman, Torsten Raudssus.

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, ship it, whatever you want bestie πŸ’–


and that's the whole page, we're done here. this was MooseX...liased(3pm) from the User Contributed Perl Documentation, generated with perl v5.26.1, dated 2018-03-30. slay. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from