NAME

CSS::Object::Element - CSS Object Oriented Element

SYNOPSIS

package CSS::Object::Comment;
use parent qw( CSS::Object::Element );
my $cmt = CSS::Object::Comment->new( "No comment" ) ||
    die( CSS::Object::Comment->error );

VERSION

v0.2.0

DESCRIPTION

CSS::Object::Element is a base class for all CSS::Object elements that get added to the style sheet.

CONSTRUCTOR

new

This is the base method to instantiate object. It takes by default the following arguments and instantiate an CSS::Object::Format object if none was provided.

debug

This is an integer. The bigger it is and the more verbose is the output.

format

This is a CSS::Object::Format object or one of its child modules.

METHODS

add_to

Provided with a CSS::Object and this add our object to the css object array of elements by calling "add_element" in CSS::Object. Elements here are top level elements which are css rules.

as_string

This method must be overridden by the child class.

format

This is a CSS::Object::Format object or one of its child modules.

head1 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.