Sha256: 4b27e39b29de13f51933a3ba828af888d0d0233f76dd4a3a060f8e4ced29ae4e

Contents?: true

Size: 415 Bytes

Versions: 5

Compression:

Stored size: 415 Bytes

Contents

module Feedzirra

  module Parser
    # Parser for dealing with RSS feeds.
    class RSS
      include SAXMachine
      include FeedUtilities
      element :title
      element :description
      element :link, :as => :url
      elements :item, :as => :entries, :class => RSSEntry

      attr_accessor :feed_url

      def self.able_to_parse?(xml) #:nodoc:
        /\<rss|\<rdf/ =~ xml
      end
    end

  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
localist-feedzirra-0.2.1 lib/feedzirra/parser/rss.rb
feedzirra-0.1.1 lib/feedzirra/parser/rss.rb
feedzirra-0.1.0 lib/feedzirra/parser/rss.rb
feedzirra-0.0.31 lib/feedzirra/parser/rss.rb
feedzirra-0.0.30 lib/feedzirra/parser/rss.rb