blob: 9c8255b8d9015a13ff479c22c95a14a6ad516560 [file] [log] [blame]
package Krawfish::Posting::Token;
use parent 'Krawfish::Posting';
use strict;
use warnings;
sub new {
my $class = shift;
bless [@_], $class;
}
# Current document
sub doc_id {
return $_[0]->[0];
};
# Start of span
sub start {
return $_[0]->[1];
};
# End of span
sub end {
return $_[0]->[2] // $_[0]->start + 1
};
1;