File Coverage

blib/lib/Text/PORE/Volatile.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod 1 1 100.0
total 12 12 100.0


line stmt bran cond sub pod time code
1             #
2             # Volatile.pm
3             #
4             # Implements a volatile object class, subclass of Object, so that
5             # free-form objects can be created on the fly
6            
7             package Text::PORE::Volatile;
8            
9 1     1   634 use Text::PORE::Object;
  1         3  
  1         111  
10            
11             @Text::PORE::Volatile::ISA = qw(Text::PORE::Object);
12            
13             sub new {
14 3     3 1 5 my $type = shift;
15 3         7 my %attrs = @_;
16            
17 3         5 my $self = {};
18            
19 3         7 bless $self, $type;
20            
21 3         12 $self->LoadAttributes(%attrs);
22            
23 3         9 $self;
24             }
25            
26             1;