/usr/share/perl5/CSS/Adaptor/Debug.pm is in libcss-perl 1.09-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | package CSS::Adaptor::Debug;
$VERSION = 1.01;
use CSS::Adaptor;
@ISA = qw(CSS::Adaptor);
use strict;
use warnings;
my $DIV_LINE = ('-'x50)."\n";
sub output_rule {
my ($self, $rule) = @_;
return "NEW RULE\n".$DIV_LINE.$rule->selectors.$rule->properties.$DIV_LINE."\n";
}
sub output_selectors {
my ($self, $selectors) = @_;
return "SELECTORS:\n".join('', map {"\t".$_->{name}."\n"} @{$selectors})."\n";
}
sub output_properties {
my ($self, $properties) = @_;
return "PROPERTIES:\n".join('', map {"\t".$_->{property}.":\t".$_->values.";\n"} @{$properties})."\n";
}
sub output_values {
my ($self, $values) = @_;
return join '', map {$_->{value}} @{$values};
}
1;
__END__
=head1 NAME
CSS::Adaptor::Debug - An example adaptor for debugging CSS.
=head1 SYNOPSIS
use CSS;
...
=head1 DESCRIPTION
This class implements a CSS::Adaptor object to display a
stylesheet in 'debugging' style.
=head1 AUTHORS
Copyright (C) 2003-2004, Cal Henderson <cal@iamcal.com>
=head1 SEE ALSO
L<CSS>, L<CSS::Adaptor>
=cut
|