root/trunk/plagger/lib/Plagger/Update.pm

Revision 2 (checked in by miyagawa, 15 years ago)

import Plagger

  • Property svn:keywords set to Id Revision
Line 
1 package Plagger::Update;
2 use strict;
3
4 sub new {
5     my $class = shift;
6     bless {}, $class;
7 }
8
9 sub add {
10     my($self, $feed) = @_;
11     push @{ $self->{feeds} }, $feed;
12 }
13
14 sub feeds {
15     my $self = shift;
16     wantarray ? @{ $self->{feeds} } : $self->{feeds};
17 }
18
19 1;
Note: See TracBrowser for help on using the browser.