Class: YouTubeIt::Parser::CaptionFeedParser
- Inherits:
-
FeedParser
- Object
- FeedParser
- YouTubeIt::Parser::CaptionFeedParser
- Defined in:
- lib/youtube_it/parser.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from FeedParser
#initialize, #parse, #parse_single_entry, #parse_videos, #remove_bom
Constructor Details
This class inherits a constructor from YouTubeIt::Parser::FeedParser
Instance Method Details
#parse_content(content) ⇒ Object
374 375 376 377 378 379 |
# File 'lib/youtube_it/parser.rb', line 374 def parse_content(content) doc = (content.is_a?(Nokogiri::XML::Document)) ? content : Nokogiri::XML(content) entry = doc.at "entry" parse_entry(entry) end |