NAME

TAP::DOM::DocumentData - Accessors for key/value document data

DESCRIPTION

A document can contain comment lines which actually contain key/value data, like this:

# Test-vendor-id:  GenuineIntel
# Test-cpu-model:  Intel(R) Core(TM) i7-3667U CPU @ 2.00GHz
# Test-cpu-family: 6
# Test-flags.fpu:  1

Those lines are converted into a hash by splitting it at the : delimiter and stripping the # Test- prefix. The resulting data structure looks like this:

# ... inside TAP::DOM ...
document_data => {
                  'vendor-id' => 'GenuineIntel',
                  'cpu-model' => #Intel(R) Core(TM) i7-3667U CPU @ 2.00GHz',
                  'cpu-family' => 6,
                  'flags.fpu' =>  1,
                 },

ACCESSORS & METHODS

new - constructor

set($key, $value)

Sets the value for a key.

get($key)

Returns the value for a key.

AUTHOR

Steffen Schwigon <ss5@renormalist.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2024 by Steffen Schwigon.

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