diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2015-05-15 20:06:28 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2015-05-15 20:14:38 +0200 |
commit | 1beba4bae98c2d6af47283cc2fe21c88225f8f0d (patch) | |
tree | d8172cd413b79c756c64fb06e818d2cb8898c281 /lib/rss2html | |
parent | f2ee673dbb6f9569a1515d0007efb2053868ca6b (diff) | |
download | rss2html-1beba4bae98c2d6af47283cc2fe21c88225f8f0d.tar.gz rss2html-1beba4bae98c2d6af47283cc2fe21c88225f8f0d.tar.bz2 rss2html-1beba4bae98c2d6af47283cc2fe21c88225f8f0d.zip |
Pass title in args, no need for a separate arg.
Diffstat (limited to 'lib/rss2html')
-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') |