lib/jkl/rss_client.rb in jakal-0.0.9 vs lib/jkl/rss_client.rb in jakal-0.1.0

- old
+ new

@@ -1,15 +1,19 @@ require 'hpricot' module Jkl - def self.get_items_from(rssdoc) - items = [] - (rssdoc/:item).each { |rssitem| items.push rssitem } unless rssdoc==nil - items - end + class << self + + def get_items_from(rssdoc) + items = [] + (rssdoc/:item).each { |rssitem| items.push rssitem } unless rssdoc==nil + items + end - def self.attribute_from(item, name) - (item/name).inner_html + def attribute_from(item, name) + (item/name).inner_html + end + end end