Sha256: 8fd1a55c423185d60a95ab79064692b82e0ef7ecc9ad405b8107f6c1ba3cb08e
Contents?: true
Size: 299 Bytes
Versions: 9
Compression:
Stored size: 299 Bytes
Contents
require 'rexml/document' class OPMLImporter def initialize(opml) @opml = opml @doc = REXML::Document.new(@opml) @feed_urls = [] end def feed_urls @doc.elements.each('//outline[@xmlUrl]') do |e| @feed_urls << e.attributes['xmlUrl'] end @feed_urls.uniq end end
Version data entries
9 entries across 9 versions & 1 rubygems