lib/twog/rss_parser.rb in twog-0.3.0 vs lib/twog/rss_parser.rb in twog-0.3.1

- old
+ new

@@ -1,13 +1,15 @@ -module RssParser - def parse(rss_feed_url) - raise Exception.new('RSS feed missing') unless rss_feed_url - rss = RSS::Parser.parse(get_content(rss_feed_url), false) - rss.items - end +module Twog + module RssParser + def parse_feed(rss_feed_url) + raise Exception.new('RSS feed missing') unless rss_feed_url + rss = RSS::Parser.parse(get_content(rss_feed_url), false) + rss.items + end - def get_content(rss_feed_url) - open(rss_feed_url) do |f| - f.read + def get_content(rss_feed_url) + open(rss_feed_url) do |f| + f.read + end end end end