CSS::Ob...Selector(3)

πŸ“¦ version 0.2.0, in alpine 3.24

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 a CSS::Object::Format object 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 (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