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::Attribute - handles evaluating an attribute for a particular node

VERSION

version 1.007

DESCRIPTION

For use in compiled TPath expressions. Not for external consumption.

ATTRIBUTES

name

The name of the attribute. E.g., in @foo, foo.

args

The arguments the attribute takes, if any.

code

The actual code reference invoked when apply is called.

autoloaded

Whether the attribute was generated by an auto-loading mechanism.

METHODS

apply

Expects a node, and index, and a collection. Returns some value.

to_num

Basically an alias for apply. Required by TPath::Numifiable.

ROLES

TPath::Test, 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.