Class: FeedNormalizer::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/feed-normalizer.rb

Overview

The root parser object. Every parser must extend this object.

Direct Known Subclasses

RubyRssParser, SimpleRssParser

Class Method Summary collapse

Class Method Details

.parse(feed, loose) ⇒ Object

Parses the given feed, and returns a normalized representation. Returns nil if the feed could not be parsed.



16
17
18
# File 'lib/feed-normalizer.rb', line 16

def self.parse(feed, loose)
  nil
end

.parserObject

Parser being used.



10
11
12
# File 'lib/feed-normalizer.rb', line 10

def self.parser
  nil
end

.priorityObject

Returns a number to indicate parser priority. The lower the number, the more likely the parser will be used first, and vice-versa.



23
24
25
# File 'lib/feed-normalizer.rb', line 23

def self.priority
  0
end