File: Command.pm

package info (click to toggle)
libmakefile-parser-perl 0.211-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 560 kB
  • ctags: 556
  • sloc: perl: 7,028; makefile: 263
file content (29 lines) | stat: -rw-r--r-- 439 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package Makefile::AST::Command;

use strict;
use warnings;

use base 'Class::Accessor::Fast';
#use Smart::Comments;

__PACKAGE__->mk_accessors(qw{
    silent tolerant critical content target
});

sub as_str {
    my $self = shift;
    my $str;
    if ($self->silent) {
        $str .= '@';
    }
    if ($self->tolerant) {
        $str .= '-';
    }
    if ($self->critical) {
        $str .= '+';
    }
    $str .= $self->content;
}

1;