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 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