aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-06-26 22:11:37 +0200
committerHarald Eilertsen <haraldei@anduin.net>2015-06-26 22:11:37 +0200
commitdfa15ecd20d668a5201928e55f8aab4ae9126ae6 (patch)
tree70d0395fcedfbdfb47e1c4c87bd52d0664720541
parent50a0e81ebcc28ae8b712f266d1d90d2f8f310c0f (diff)
downloadrss2html-dfa15ecd20d668a5201928e55f8aab4ae9126ae6.tar.gz
rss2html-dfa15ecd20d668a5201928e55f8aab4ae9126ae6.tar.bz2
rss2html-dfa15ecd20d668a5201928e55f8aab4ae9126ae6.zip
Don't garble args to constructor.
-rw-r--r--lib/rss2html/feed.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rss2html/feed.rb b/lib/rss2html/feed.rb
index 45a88c2..d41c6ea 100644
--- a/lib/rss2html/feed.rb
+++ b/lib/rss2html/feed.rb
@@ -24,9 +24,9 @@ module Rss2Html
attr_reader :title, :url
def initialize(args)
- @title = args.delete('title')
- @url = args.delete('url')
- limit = args.delete('limit')
+ @title = args['title']
+ @url = args['url']
+ limit = args['limit']
if limit
@url += "&limit=#{limit}"
end