projects
/
catagits/XML-Feed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Added an image() method to Feed objects.
[catagits/XML-Feed.git]
/
lib
/
XML
/
Feed
/
Format
/
RSS.pm
diff --git
a/lib/XML/Feed/Format/RSS.pm
b/lib/XML/Feed/Format/RSS.pm
index
50f2439
..
6b91614
100644
(file)
--- a/
lib/XML/Feed/Format/RSS.pm
+++ b/
lib/XML/Feed/Format/RSS.pm
@@
-162,6
+162,13
@@
sub modified {
}
}
+sub image {
+ my $self = shift;
+ my $rss = $self->{rss};
+
+ return @_ ? $rss->image(@_) : $rss->image('url');
+}
+
sub entries {
my $rss = $_[0]->{rss};
my @entries;