Class: TestPageParserFactory
- Inherits:
-
WebPageParser::ParserFactory
- Object
- WebPageParser::ParserFactory
- TestPageParserFactory
- Defined in:
- lib/web-page-parser/parsers/test_page_parser.rb
Class Method Summary collapse
Methods inherited from WebPageParser::ParserFactory
add_factory, #can_parse?, #create, factories, inherited, load, parser_for
Class Method Details
.can_parse?(options = {}) ⇒ Boolean
4 5 6 |
# File 'lib/web-page-parser/parsers/test_page_parser.rb', line 4 def self.can_parse?( = {}) @url_regexp.match([:url]) end |
.create(options = {}) ⇒ Object
8 9 10 |
# File 'lib/web-page-parser/parsers/test_page_parser.rb', line 8 def self.create( = {}) TestPageParser.new() end |