class WebPageParser::IndependentPageParserFactory

Constants

INVALID_URL_RE
URL_RE

Public Class Methods

can_parse?(options) click to toggle source
# File lib/web-page-parser/parsers/independent_page_parser.rb, line 5
def self.can_parse?(options)
  return nil if INVALID_URL_RE.match(options[:url])
  URL_RE.match(options[:url])
end
create(options = {}) click to toggle source
# File lib/web-page-parser/parsers/independent_page_parser.rb, line 10
def self.create(options = {})
  IndependentPageParserV1.new(options)
end