1 package TAP::Parser::Result::Comment;
5 use vars qw($VERSION @ISA);
6 use TAP::Parser::Result;
7 @ISA = 'TAP::Parser::Result';
11 TAP::Parser::Result::Comment - Comment result token.
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.
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.
39 Note that this method merely returns the comment preceded by a '# '.
45 ##############################################################################
47 =head2 Instance Methods
51 if ( $result->is_comment ) {
52 my $comment = $result->comment;
53 print "I have something to say: $comment";
58 sub comment { shift->{comment} }
59 sub as_string { shift->{raw} }