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