File Coverage

blib/lib/Lingua/Thesaurus/IO.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Lingua::Thesaurus::IO;
2              
3 4     4   2417 use Moose::Role;
  4         2526  
  4         20  
4              
5             has 'storage' => (is => 'ro', does => 'Lingua::Thesaurus::Storage',
6             required => 1,
7             documentation => "storage for parsed terms and relations");
8              
9             requires 'load';
10              
11             1;
12              
13             __END__
14              
15             =head1 NAME
16              
17             Lingua::Thesaurus::IO - Role for input/output operations on a thesaurus
18              
19             =head1 DESCRIPTION
20              
21             This abstract role specifies that each C<IO> concrete class
22             will have a C<storage> attribute, and should implement
23             a C<load> method.
24             Other methods for dumping thesauri into files will be added
25             in later release.
26              
27             =head1 METHODS
28              
29             =head2 load
30              
31             $io_object->load(@files);
32              
33             Parses the given files, and loads the terms and relations from these
34             files into the C<storage> object.
35              
36              
37              
38