File: Node.pm

package info (click to toggle)
libtext-trac-perl 0.15-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 332 kB
  • ctags: 259
  • sloc: perl: 2,935; makefile: 40
file content (21 lines) | stat: -rwxr-xr-x 326 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
package Text::Trac::Node;
use strict;
use base qw( Class::Accessor::Fast );

sub init {
    my $self = shift;
    $self->{pattern} = '';
}

sub parse { die; }

sub html { $_[0]->{html}; }
sub pattern { $_[0]->{pattern}; }

sub context {
    my $self = shift;
    $self->{context} = $_[0] if $_[0];
    $self->{context};
}

1;