The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

TPath::AttributeTest - compares an attribute value to another value

VERSION

version 0.014

DESCRIPTION

Implements predicates such as //foo[@a < @b] or ancestor::*[@bar = 1]. That is, predicates where an attribute is tested against some value.

This class if for internal consumption only.

ATTRIBUTES

op

The comparison operator between the two values.

left

The left value.

The right value.

METHODS

test

The test function applied to the values. This method is constructed in BUILD and assigned to the attribute test as a singleton method.

Expects a node, an index, and a collection.

ROLES

TPath::Stringifiable

AUTHOR

David F. Houghton <dfhoughton@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by David F. Houghton.

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