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

Version Path
fastreader-1.0.1 lib/opml.rb
fastreader-1.0.0 lib/opml.rb
fastreader-1.0.3 lib/opml.rb
fastreader-1.0.4 lib/opml.rb
fastreader-1.0.5 lib/opml.rb
fastreader-1.0.2 lib/opml.rb
fastreader-1.0.7 lib/opml.rb
fastreader-1.0.6 lib/opml.rb
fastreader-1.0.8 lib/opml.rb