comparison lib/CPT/Filetype.pm @ 1:f093e08f21f3 draft default tip

planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
author cpt
date Mon, 05 Jun 2023 02:47:24 +0000
parents
children
comparison
equal deleted inserted replaced
0:b8b8b52904a5 1:f093e08f21f3
1 package CPT::Filetype;
2 use Moose::Role;
3 use strict;
4 use warnings;
5 use autodie;
6
7 has lines => ( is => 'rw', isa => 'ArrayRef');
8 # Also have file location if we need to open a filehandle on it to further
9 # check.
10 has file => ( is => 'rw', isa => 'Str');
11
12
13 requires 'score';
14 requires 'name';
15
16 no Moose::Role;
17 1;
18
19 __END__
20
21 =pod
22
23 =encoding UTF-8
24
25 =head1 NAME
26
27 CPT::Filetype
28
29 =head1 VERSION
30
31 version 1.99.4
32
33 =head1 score
34
35 Score should be a method that returns a number between 0 and 1 describing the
36 probability that it is this format, with 1 indicating that it truly is this
37 file to the exclusion of every other type.
38
39 =head1 AUTHOR
40
41 Eric Rasche <rasche.eric@yandex.ru>
42
43 =head1 COPYRIGHT AND LICENSE
44
45 This software is Copyright (c) 2014 by Eric Rasche.
46
47 This is free software, licensed under:
48
49 The GNU General Public License, Version 3, June 2007
50
51 =cut