Param(3pm)
π Lire::Param β the manual page, but make it make sense
okay so bestie, welcome to Param(3pm) from LogReport's Lire documentation β¨ this is the whole vibe on Lire::Param and honestly it's giving "small object, big responsibilities" π
πΈ NAME
Lire::Param β the object that represents a parameter inside an XML specification. periodt π
π¦ DESCRIPTION
so Lire::Param objects are literally the lil guys that represent parameters in an XML specification π« and here's the slay part: the object pulls double duty β it holds the parameter's specification and its current value at the same time. main character energy fr fr π
β¨ new( 'name' => $name, 'type' => $type, [ 'default' => $default ] )
creates a brand new Lire::Param object π«Ά that's it, that's the constructor, she's simple and she works.
β¨ name()
returns the name of this parameter β like, what is she called π
β¨ type()
returns this parameter's type π
β¨ value( [ $new_value ] )
returns the current value for this parameter, and optionally modifies it if you pass $new_value π₯ and here's the cute detail: if no value was ever set, but a default is available, the default value gets returned instead π
β¨ default( [ $new_default ] )
returns the parameter's default value β and again, optionally changes it if you hand it $new_default πΈ
β¨ description( [ $new_description ] )
returns the current parameter's description, and optionally changes it when you pass $new_description π
β¨ as_type_spec()
returns a Lire::Config::TypeSpec object that adequately represents the current parameter π like it takes the param and gives you the type-spec version, iconic behavior honestly.
π SEE ALSO
Lire::Config::TypeSpec(3pm)Lire::XMLSpecContainer(3pm)
go read those too bestie, iykyk π¦
π§ AUTHOR
Francis J. Lacoste <flacoste@logreport.org> π
β VERSION
$Id: Param.pm,v 1.13 2006/07/23 13:16:29 vanbaal Exp $
π COPYRIGHT
Copyright (C) 2001,2004 Stichting LogReport Foundation LogReport@LogReport.org
This file is part of Lire.
Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html.
bestie this is the legal bit β don't skip it, it's literally the license π«Ά
okay that's the whole page!! shipped with Lire 2.1.1, dated 2025-09-28, and it's Param(3pm) β mwah, go forth and parameter responsibly π
πβ¨
π¦ 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