Perl: Update "prove" and add its dependencies so it actually works (again)
[msysgit.git] / lib / perl5 / 5.8.8 / TAP / Parser / Result / Pragma.pm
blobb2a9709c337e5cf95474c0220a1dea03c5ce055f
1 package TAP::Parser::Result::Pragma;
3 use strict;
5 use vars qw($VERSION @ISA);
6 use TAP::Parser::Result;
7 @ISA = 'TAP::Parser::Result';
9 =head1 NAME
11 TAP::Parser::Result::Pragma - TAP pragma token.
13 =head1 VERSION
15 Version 3.23
17 =cut
19 $VERSION = '3.23';
21 =head1 DESCRIPTION
23 This is a subclass of L<TAP::Parser::Result>. A token of this class will be
24 returned if a pragma is encountered.
26 TAP version 13
27 pragma +strict, -foo
29 Pragmas are only supported from TAP version 13 onwards.
31 =head1 OVERRIDDEN METHODS
33 Mainly listed here to shut up the pitiful screams of the pod coverage tests.
34 They keep me awake at night.
36 =over 4
38 =item * C<as_string>
40 =item * C<raw>
42 =back
44 =cut
46 ##############################################################################
48 =head2 Instance Methods
50 =head3 C<pragmas>
52 if ( $result->is_pragma ) {
53 @pragmas = $result->pragmas;
56 =cut
58 sub pragmas {
59 my @pragmas = @{ shift->{pragmas} };
60 return wantarray ? @pragmas : \@pragmas;