diff options
-rw-r--r-- | lib/rss2html/feed.rb | 6 |
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 |