Sha256: 1d0febc7424d90663099e7d43ddf3e78b56889e2ac9540f70620d2b88c158539
Contents?: true
Size: 287 Bytes
Versions: 1
Compression:
Stored size: 287 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jakal-0.1.0 | lib/jkl/rss_client.rb |