Cal Henderson > CSS-0.08 > CSS::Style

Download:
CSS-0.08.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  3
View/Report Bugs
Module Version: 0.07   Source   Latest Release: CSS-1.09

NAME ^

CSS::Style - Represents a selector section of a CSS document

SYNOPSIS ^

  use CSS;
  ...

DESCRIPTION ^

Maybe it should be called CSS::Selector, but I thought that was a lousy name.

This class represents a selector from a CSS object.

METHODS ^

 adaptor()
  read/write.  view/change the adaptor used by convert() and converts().

 property( scalar )
  returns a hash of the property and its value

 properties()
  returns a hash of all properties and values of the Style object

 convert()
  like property(), except the property tag is converted by adaptor()

 converts()
  like properties(), except the property tags are converted by adaptor()

 add( property, value)
  see edit().

 edit( property, value)
  write only.  add a property to the Style object.

 purge( scalar )
  write-only.  drop a property from the Style object.

 selector( scalar )
  read/write.  view/change the name of the selector.

CONSTRUCTOR

 Only one constructor: new().  Called with:
  -adaptor      optional        used for transforming properties

AUTHORS ^

Copyright (C) 2001-2002 Allen Day <allenday@ucla.edu>

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

SEE ALSO ^

CSS

CSS::Adaptor

perl(1).

syntax highlighting: