Class Syndication::RSS::Parser
In: lib/syndication/rss.rb
Parent: Syndication::AbstractParser

A parser for RSS feeds. See Syndication::Parser in common.rb for the abstract class this specializes.

Methods

feed   reset  

Included Modules

REXML::StreamListener

Public Instance methods

The most recently parsed feed as a Syndication::RSS::Feed object.

[Source]

# File lib/syndication/rss.rb, line 327
    def feed
      return @parsetree
    end

Reset the parser ready to parse a new feed.

[Source]

# File lib/syndication/rss.rb, line 317
    def reset
      # Set up an empty RSS::Feed object and make it the current object
      @parsetree = Feed.new(nil)
      # Set up the class-for-tag hash
      @class_for_tag = CLASS_FOR_TAG
      # Everything else is common to both kinds of parser
      super
    end

[Validate]