Perl: Update "prove" and add its dependencies so it actually works (again)
[msysgit.git] / lib / perl5 / 5.8.8 / TAP / Parser / Result / Comment.pm
blob239a3eb22be0c61026c9368a931f1741a6fab80d
1 package TAP::Parser::Result::Comment;
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::Comment - Comment result 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 comment line is encountered.
26 1..1
27 ok 1 - woo hooo!
28 # this is a comment
30 =head1 OVERRIDDEN METHODS
32 Mainly listed here to shut up the pitiful screams of the pod coverage tests.
33 They keep me awake at night.
35 =over 4
37 =item * C<as_string>
39 Note that this method merely returns the comment preceded by a '# '.
41 =back
43 =cut
45 ##############################################################################
47 =head2 Instance Methods
49 =head3 C<comment>
51 if ( $result->is_comment ) {
52 my $comment = $result->comment;
53 print "I have something to say: $comment";
56 =cut
58 sub comment { shift->{comment} }
59 sub as_string { shift->{raw} }