NAME
CSS::Object::Parser - CSS Object Oriented Parser
SYNOPSIS
use
CSS::Object::Parser;
my
$parser
= CSS::Object::Parser->new(
debug
=> 3 );
my
$rules
=
$parser
->parse_string(
$css_text_data
) ||
die
( CSS::Object::Parser->error );
printf
(
"Found %d rules\n"
,
$rules
->
length
);
VERSION
v0.2.0
DESCRIPTION
CSS::Object::Parser is base CSS parser for CSS::Object
CONSTRUCTOR
new
To instantiate a new CSS::Object::Parser object, pass an hash reference of following parameters:
- 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
css
This sets or gets a CSS::Object object. This object is used to create css elements and store them with the "add_element" in CSS::Object method.
format
This is a CSS::Object::Format object or one of its child modules.
parse_string
In this base module, this method does nothing but trigger an error that it should not be called directly, but instead use this module sub classes.
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
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.