class WebPageParser::BbcNewsPageParserFactory
Constants
- INVALID_URL_RE
- URL_RE
Public Class Methods
can_parse?(options)
click to toggle source
# File lib/web-page-parser/parsers/bbc_news_page_parser.rb, line 7 def self.can_parse?(options) url = options[:url].split('#').first if INVALID_URL_RE.match(url) nil else URL_RE.match(url) end end
create(options = {})
click to toggle source
# File lib/web-page-parser/parsers/bbc_news_page_parser.rb, line 16 def self.create(options = {}) BbcNewsPageParserV5.new(options) end