From dfa15ecd20d668a5201928e55f8aab4ae9126ae6 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 26 Jun 2015 22:11:37 +0200 Subject: Don't garble args to constructor. --- lib/rss2html/feed.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3