File: Text.pm

package info (click to toggle)
libtext-trac-perl 0.12-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 320 kB
  • ctags: 234
  • sloc: perl: 2,742; makefile: 40
file content (23 lines) | stat: -rwxr-xr-x 349 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
package Text::Trac::Text;
use strict;

sub new {
    my $class = shift;
    my %args = @_;
    my $self = {
        context => $args{context},
        html => '',
    };
    bless $self,$class;
}

sub parse {
    my $self = shift;
    $self->{html} = '';
    my $text = shift or return;
    $self->{html} = $text;
}

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

1;