lib/flannel/feed_parser.rb in flannel-0.2.4 vs lib/flannel/feed_parser.rb in flannel-0.2.5
- old
+ new
@@ -1,11 +1,11 @@
require 'hpricot'
require 'open-uri'
module Flannel
class FeedParser
- def initialize params={}
- @cache = params[:cache] if params
+ def initialize cache
+ @cache = cache
end
def sub_feeds(url)
url = format_url(url)
get_news(url)