File Coverage

blib/lib/SpeL/Object/Matrix.pm
Criterion Covered Total %
statement 29 29 100.0
branch n/a
condition n/a
subroutine 9 9 100.0
pod 1 1 100.0
total 39 39 100.0


line stmt bran cond sub pod time code
1             # -*- cperl -*-
2             # ABSTRACT: LaTeX matrix object
3              
4              
5 41     41   252 use strict;
  41         83  
  41         1617  
6 41     41   229 use warnings;
  41         125  
  41         2587  
7             package SpeL::Object::Matrix;
8              
9 41     41   219 use SpeL::Object::Option;
  41         97  
  41         1425  
10 41     41   183 use SpeL::Object::MathElementList;
  41         66  
  41         1542  
11 41     41   197 use SpeL::I18n;
  41         81  
  41         1163  
12              
13 41     41   235 use parent 'Exporter';
  41         84  
  41         245  
14 41     41   2349 use Carp;
  41         95  
  41         2584  
15              
16 41     41   239 use Data::Dumper;
  41         86  
  41         8047  
17              
18              
19              
20              
21             sub read {
22 6     6 1 13 my $self = shift;
23 6         14 my ( $level ) = @_;
24            
25             return
26             $SpeL::I18n::lh->maketext( $self->{matrixtag} ) .
27             join( ', ' .
28             $SpeL::I18n::lh->maketext( 'And' ) .
29             ', ',
30 6         56 map { $_->read( $level + 1 ) } @{$self->{MathUnit}} ) . ', ';
  11         44  
  6         660  
31             }
32              
33             1;
34              
35             __END__