CSS::Ob...Selector(3)
okay bestie, welcome to CSS::Ob...Selector(3), straight from the User Contributed Perl Documentation π
this page is giving selector-object main character energy, and we're gonna get into it.
πΈ NAME πΈ
CSS::Object::Selector β CSS Object Oriented Selector β¨
π¦ SYNOPSIS π¦
use CSS::Object::Selector;
my $sel = CSS::Object::Selector->new(
name => $css_selector,
debug => 3,
format => $format_object
) || die( CSS::Object::Selector->error );
π VERSION π
v0.2.0 π
π DESCRIPTION π
CSS::Object::Selector is a class to contain the name of a selector. For any given css rule, there can be multiple selectors. no cap, that's the whole vibe.
Selector objects can be accessed with "selectors" in CSS::Object::Rule which is an Module::Generic::Array object. yes bestie, an Module::Generic::Array object, that's what it says π
π§ CONSTRUCTOR π§
β¨ new β¨
To instantiate a new CSS::Object::Selector object, pass an hash reference of following parameters:
debugβ this is an integer. The bigger it is and the more verbose is the output. lowkey the "turn the volume up" knob π₯formatβ this is aCSS::Object::Formatobject or one of its child modules.nameβ this is the selector's name. When provided, this calls the method"name"to store the value.
π METHODS π
π add_to π
Provided with a CSS::Object::Rule object, and this will add our selector object to it by calling "add_selector" in CSS::Object::Rule.
It returns our selector object to allow chaining. slay, chaining-friendly π
π as_string π
This returns the selector's name.
Maybe, this should be changed to calling a method selector_as_string in the CSS::Object::Format, but the reasons for modifying a selector's name are limited. not me side-eyeing a potential rename, but okay π«Ά
π format π
This is a CSS::Object::Format object or one of its child modules.
π name π
Sets or gets the selector's name. The name stored here becomes a Module::Generic::Scalar and thus all its object methods can be used. iconic behavior, honestly β¨
πΈ AUTHOR πΈ
Jacques Deguest <jack@deguest.jp>
π¦ SEE ALSO π¦
CSS::Object
π COPYRIGHT & LICENSE π
Copyright (c) 2020 DEGUEST Pte. Ltd.
You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.
mwah π β this is CSS::Ob...Selector(3) from source/version perl v5.42.2, dated 2026-02-15. bye bestie, go slay those selectors π«Άπ
π¦ where this page comes from
- alpine 3.24: perl-css-object-doc 0.2.0-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