AnyEven...endable(3)
π« NAME π«
AnyEvent::XMPP::Extendable β it's the extendable baseclass, bestie. That's literally all in the name. Class that you can bolt extensions onto. Slay.
β¨ DESCRIPTION β¨
Okay so here's the whole vibe: this class hands you a mechanism for adding extensions. That's its job, that's its whole personality. π«Ά
Real talk though, one thing you cannot skip: any class that derives from this one must also derive from AnyEvent::XMPP::Event! Both. Not one. Both. No cap. π
If you want the full lore on how this mechanism actually works, go read AnyEvent::XMPP::Ext. It's giving "required reading before the group project", but like, actually useful. π
π add_extension ($ext)
This method extends the current object with an AnyEvent::XMPP::Ext object. And $ext must be an instance of AnyEvent::XMPP::Ext β like, that's not a suggestion, that's the whole requirement. π₯
Basically, add_extension makes that extension an event receiver for all the events the extended object receives. Every single one. It's main character energy for your extension β it gets the whole feed. π
π¦ remove_extension ($ext)
This method removes the extension $ext. That's it, that's the method. Short and iconic, we stan a one-liner. β¨
πΈ AUTHOR πΈ
Robin Redeker, <elmex at ta-sa.org>, JID: <elmex at jabber.org> π
π COPYRIGHT & LICENSE π
Copyright 2007, 2008 Robin Redeker, all rights reserved. π
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Periodt. π
okay that's the whole page, tysm for coming to my TED talk π§π«
shoutout to perl v5.42.2, dated 2026-02-15 β this page was brought to you by the User Contributed Perl Documentation gang, mwah π
π¦ where this page comes from
- alpine 3.24: perl-anyevent-xmpp-doc 0.55-r1 Β· 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