Class: FeedNormalizer::SimpleRssParser
- Inherits:
-
Parser
- Object
- Parser
- FeedNormalizer::SimpleRssParser
- Defined in:
- lib/audrey2.rb
Class Method Summary collapse
Class Method Details
.parse(xml, loose) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/audrey2.rb', line 31 def self.parse(xml, loose) begin atomrss = parser.parse(xml) rescue Exception => e return nil end atomrss.items.each do |item| if item[:'link+alternate'] item[:link] = item[:'link+alternate'] end end package(atomrss) end |