aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rss2html/feed.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rss2html/feed.rb')
-rw-r--r--lib/rss2html/feed.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rss2html/feed.rb b/lib/rss2html/feed.rb
index f0840d7..45a88c2 100644
--- a/lib/rss2html/feed.rb
+++ b/lib/rss2html/feed.rb
@@ -26,6 +26,10 @@ module Rss2Html
def initialize(args)
@title = args.delete('title')
@url = args.delete('url')
+ limit = args.delete('limit')
+ if limit
+ @url += "&limit=#{limit}"
+ end
@feed_header = load_template('feed_header.html.erb')
@feed_footer = load_template('feed_footer.html.erb')