NAME

HTML::Object::XPath::Boolean - HTML Object

SYNOPSIS

use HTML::Object::XPath::Boolean;
my $this = HTML::Object::XPath::Boolean->new || die( HTML::Object::XPath::Boolean->error, "\n" );

VERSION

v0.2.0

DESCRIPTION

This module implements simple boolean true/false objects.

METHODS

cmp

This method is called for overloading the comparison operator.

It takes another element and it returns true if the two elements are same or false otherwise.

getAttributes

Returns an empty list in list context and an empty array reference in scalar context.

getChildNodes

Returns an empty list in list context and an empty array reference in scalar context.

string_value

Returns the current value as a literal

to_boolean

Returns the current object.

to_literal

Returns true if true, or false otherwise, as a literal object

to_number

Returns the current value as a number object

True

Creates a new Boolean object with a true value.

HTML::Object::XPath::Boolean->True;

False

Creates a new Boolean object with a false value.

HTML::Object::XPath::Boolean->False;

value

Returns true or false.

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

HTML::Object::XPath, HTML::Object::XPath::Boolean, HTML::Object::XPath::Expr, HTML::Object::XPath::Function, HTML::Object::XPath::Literal, HTML::Object::XPath::LocationPath, HTML::Object::XPath::NodeSet, HTML::Object::XPath::Number, HTML::Object::XPath::Root, HTML::Object::XPath::Step, HTML::Object::XPath::Variable

COPYRIGHT & LICENSE

Copyright(c) 2021 DEGUEST Pte. Ltd.

All rights reserved

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