Browse Source

* Subtitle::SSA::* : add get_format_line() helper

master
Alex 'AdUser' Z 9 years ago
parent
commit
18f3d8f960
  1. 11
      lib/Subtitle/SSA/Record.pm

11
lib/Subtitle/SSA/Record.pm

@ -121,4 +121,15 @@ sub to_string {
return $string;
}
sub get_format_line {
my ($self) = @_;
my @keys = @{ $self->{_format} };
my @names = map { $FIELDS{$_}->{name} } @keys;
my $line = 'Format: ' . join(', ' => @names);
return $line;
}
1;

Loading…
Cancel
Save