CSS::Property(3pm)

πŸ“¦
version 1.09 Β· 4 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– CSS::Property πŸ’–

okay bestie, so this is CSS::Property β€” literally a property in a CSS object tree. that's the whole vibe. one little property, living its best life inside a bigger CSS structure. ✨


🌸 SYNOPSIS 🌸

use CSS;

that's it. that's the whole entrance. iconic behaviour honestly. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so this module is the little guy that represents a property in a CSS object tree. like, one property. one job. we love a focused queen. πŸ‘‘

and if you wanna actually understand the whole CSS object tree situation, the tea is over in the CSS.pm pod β€” go read that, it's the main character, this module is just the supporting cast. 🫢


✨ METHODS ✨

πŸŽ€ CONSTRUCTORS

  • new() or new( { ..options.. } ) β€” this constructor hands you back a brand new CSS::Property object, and you can pass it an optional hash of options if you're feeling generous:
  property      property name (as string)
  value         simple value string
  adaptor       adaptor to use for serialization

and listen β€” if you pass the value option, a CSS::Value object gets automatically created and added to the object's values list. no extra work, it just happens. slay. ✨

πŸ’œ ACCESSORS

  • set_adaptor( 'CSS::Adaptor::Foo' ) β€” this one sets the current adaptor for the object. that's it, that's the whole thing. πŸͺ„
  • values() β€” this is the one that serializes the property's values using the current adaptor. it returns a string, and that string comes straight from the adaptor's output_values() method. so like, the adaptor is doing the talking, this method is just the messenger. 😭

πŸ‘‘ AUTHOR πŸ‘‘

Copyright (C) 2003-2004, Cal Henderson <cal@iamcal.com>

(we love Cal. shoutout. πŸ’–)


🌈 SEE ALSO 🌈


and that's the whole page bestie!! this was documented as perl v5.32.0, dated 2020-12-29, and it's part of the User Contributed Perl Documentation situation. go forth and build your CSS object trees, i believe in you. πŸ§šπŸ’œ

πŸ“¦ where this page comes from