Sha256: a7be7c7b6f91dc48397c5632edb6f9fcd96901a04535c93033a61744d9847881
Contents?: true
Size: 391 Bytes
Versions: 2
Compression:
Stored size: 391 Bytes
Contents
module HttpReader class BasePageParser @pattern = /^((http|https):\/\/).*$/ class << self attr_reader :pattern def match(url) !(url =~ pattern).nil? end def parse(response, opts = {}) response.body end def browse_actions_for_html(browser, opts = {}) end def use_browser false end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
http_reader-0.0.2 | lib/http_reader/base_page_parser.rb |
http_reader-0.0.1 | lib/http_reader/base_page_parser.rb |