Class: FeedNormalizer::Parser
- Inherits:
-
Object
- Object
- FeedNormalizer::Parser
- Defined in:
- lib/feed-normalizer.rb
Overview
The root parser object. Every parser must extend this object.
Direct Known Subclasses
Class Method Summary collapse
-
.parse(feed, loose) ⇒ Object
Parses the given feed, and returns a normalized representation.
-
.parser ⇒ Object
Parser being used.
-
.priority ⇒ Object
Returns a number to indicate parser priority.
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 |
.parser ⇒ Object
Parser being used.
10 11 12 |
# File 'lib/feed-normalizer.rb', line 10 def self.parser nil end |
.priority ⇒ Object
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 |