Plugin(3pm)
πΈ Lire::Config::Plugin β the value object for plugin config π
So bestie, this page is from LogReport's Lire Documentation, and it's the manual for Plugin(3pm) β a Perl module. It's a config object that holds the name of whichever plugin got selected, plus that plugin's options. That's the whole vibe. π
β¨ SYNOPSIS β¨
use Lire::Config::Plugin;
Literally that's it, that's the whole setup. π«Ά
π DESCRIPTION π
Okay so picture this: this configuration object keeps track of two things β the name of a selected plugin, and its options. That's it. That's the assignment and it ate. β¨
π¦ get_plugin()
Returns the plugin that's currently selected. Like, right now. The one you picked. π
π set_plugin( $plugin )
Changes which plugin is selected. Here's the important bit, ngl: if the selected plugin gets changed, a new property set will be created from the properties that plugin defines. So it's not just swapping a name, it's rebuilding the whole little property situation. π₯
π get_properties_spec()
Returns the TypeSpec used to specify the plugin's properties. Lowkey important caveat: this method will return an empty RecordSpec when the plugin didn't define any properties. And if you'd rather just check first, you can use the has_properties() method to see whether the Plugin actually defined configuration properties at all. iykyk π
β has_properties()
Returns a boolean value telling you whether the current plugin is configurable. Yes/no, true/false, that kind of moment. π
π get_properties()
Returns the Lire::Config::Dictionary object that holds the plugin configuration. It's giving "the actual container of the goods." π
π§ as_value()
Returns a hash reference with two keys: 'plugin', which contains the selected plugin, and 'properties', which is a hash reference containing the plugin's properties. Two keys, no cap. β¨
π get( $name )
Delegates to the Dictionary which contains the plugin's properties. Not me just passing the message along π
πΈ set( $name, $value )
Delegates to the Dictionary which contains the plugin's properties. Same energy, but with a value. π«Ά
π₯ is_set( $name )
Delegates to the Dictionary which contains the plugin's properties. Three for three, iconic. π
Quick vibe check:get,setandis_setall just delegate to the sameDictionarythat holds the plugin's properties β so if you're confused about behaviour, the Dictionary is where the real main character energy lives. π
π the cute sign-off π
This page is from Lire 2.1.1, dated 2025-09-28, and it's the Plugin(3pm) manual page from LogReport's Lire Documentation. Slay, go configure some plugins bestie πβ¨π
π¦ where this page comes from
- arch rolling: lire 2.1.1-8 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms