Sha256: 11b4df9982a6cce9b1a4581a162fdcb488a12d0f4ff319c40ecfbb568928dc0e
Contents?: true
Size: 292 Bytes
Versions: 2
Compression:
Stored size: 292 Bytes
Contents
module HttpReader class BasePageMatcher @pattern = /^.*$/ class << self attr_reader :pattern def match(url) !(url =~ pattern).nil? end end def read(body) body end private def pattern self.class.pattern 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_matcher.rb |
http_reader-0.0.1 | lib/http_reader/base_page_matcher.rb |