Class: HttpReader::BasePageMatcher
- Inherits:
-
Object
- Object
- HttpReader::BasePageMatcher
- Defined in:
- lib/http_reader/base_page_matcher.rb
Class Attribute Summary collapse
-
.pattern ⇒ Object
readonly
Returns the value of attribute pattern.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
6 7 8 |
# File 'lib/http_reader/base_page_matcher.rb', line 6 def pattern @pattern end |
Class Method Details
.match(url) ⇒ Object
8 9 10 |
# File 'lib/http_reader/base_page_matcher.rb', line 8 def match(url) !(url =~ pattern).nil? end |
Instance Method Details
#read(body) ⇒ Object
13 14 15 |
# File 'lib/http_reader/base_page_matcher.rb', line 13 def read(body) body end |