File Coverage

blib/lib/Global/Context/StackFrame.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Global::Context::StackFrame;
2             {
3             $Global::Context::StackFrame::VERSION = '0.003';
4             }
5 3     3   2077 use Moose::Role;
  3         5  
  3         28  
6             # ABSTRACT: one frame in a stack
7              
8              
9 3     3   8825 use namespace::autoclean;
  3         8  
  3         31  
10              
11             requires 'as_string';
12              
13             has ephemeral => (
14             is => 'ro',
15             isa => 'Bool',
16             default => 0,
17             reader => 'is_ephemeral',
18             );
19              
20             1;
21              
22             __END__
23              
24             =pod
25              
26             =head1 NAME
27              
28             Global::Context::StackFrame - one frame in a stack
29              
30             =head1 VERSION
31              
32             version 0.003
33              
34             =head1 OVERVIEW
35              
36             Global::Context::StackFrame is a role.
37              
38             Stack frames are only required to provide an C<as_string> method. The
39             StackFrame role also provides a boolean C<ephemeral> attribute indicating
40             whether a frame is ephemeral.
41              
42             Most frames are I<not> ephemeral, but those that are will be replaced when a
43             new frame is pushed, rather than being shifted down.
44              
45             =head1 AUTHOR
46              
47             Ricardo Signes <rjbs@cpan.org>
48              
49             =head1 COPYRIGHT AND LICENSE
50              
51             This software is copyright (c) 2010 by Ricardo Signes.
52              
53             This is free software; you can redistribute it and/or modify it under
54             the same terms as the Perl 5 programming language system itself.
55              
56             =cut