diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rss2html/feed.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rss2html/feed.rb b/lib/rss2html/feed.rb index fa2f4fc..909b08c 100644 --- a/lib/rss2html/feed.rb +++ b/lib/rss2html/feed.rb @@ -22,8 +22,9 @@ module Rss2Html class Feed attr_reader :title, :url - def initialize(title, args) - @title, @url = title, args['url'] + def initialize(args) + @title = args.delete('title') + @url = args.delete('url') @feed_header = load_template('feed_header.html.erb') @feed_footer = load_template('feed_footer.html.erb') |