HTML::Feature::Result - HTML::Feature::Result documentation


HTML-Feature documentation Contained in the HTML-Feature distribution.

Index


Code Index:

NAME

Top

HTML::Feature::Result -Result Class of HTML::Feature

SYNOPSYS

Top

    my $result = HTML::Feature::Result;
    $result->title("title");
    $result->desc("desc");
    $result->text("text");
    retrun $result;

METHODS

Top

new()

element_delete()

    avoid memory leak;

DESTROY

AUTHOR

Top

Takeshi Miki <miki@cpan.org>

LICENSE

Top

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Top


HTML-Feature documentation Contained in the HTML-Feature distribution.

package HTML::Feature::Result;
use strict;
use warnings;
use base qw(HTML::Feature::Base);

__PACKAGE__->mk_accessors($_) for qw(text title desc element root);

sub element_delete {
    my $self = shift;
    if ( $self->root ) {
        $self->root->delete();
    }
}

sub DESTROY {
    my $self = shift;
    $self->element_delete();
}
1;
__END__