The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

TBX::Min::NoteGrp - Store information from one TBX-Min noteGrp element

VERSION

version 0.08

SYNOPSIS

    use TBX::Min::NoteGrp;
    use TBX::Min::Note;
    my $note_grp = TBX::Min::NoteGrp->new(
    my $note = TBX::Min::Note->new({noteKey => 'grammaticalGender', noteValue => 'male'});
    $note_grp->add_note($note);
    my $notes = $note_grp->notes;
    print $#$notes; # '1'

DESCRIPTION

This class represents a single note group contained in a TBX-Min file. A note group contains a single noteValue and and optional noteKey.

METHODS

new

Creates a new TBX::Min::NoteGrp instance. Optionally you may pass in a hash reference which is used to initialized the object. The fields of the hash correspond to the names of the accessor methods listed below.

notes

Returns an array ref containing all of the TBX::Min::NoteGrp objects in this tig. The array ref is the same one used to store the objects internally, so additions or removals from the array will be reflected in future calls to this method.

add_note

Adds the input TBX::Min::Note object to the list of language groups contained by this object.

SEE ALSO

TBX::Min

AUTHOR

Nathan Glenn <garfieldnate@gmail.com>, James Hayes <james.s.hayes@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Alan Melby.

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