Module: Aitch::ResponseParser::HTMLParser
- Defined in:
- lib/aitch/response_parser/html_parser.rb
Class Method Summary collapse
Class Method Details
.load(source) ⇒ Object
14 15 16 |
# File 'lib/aitch/response_parser/html_parser.rb', line 14 def self.load(source) Nokogiri::HTML(source.to_s) end |
.match?(content_type) ⇒ Boolean
10 11 12 |
# File 'lib/aitch/response_parser/html_parser.rb', line 10 def self.match?(content_type) content_type.include?("html") end |
.type ⇒ Object
6 7 8 |
# File 'lib/aitch/response_parser/html_parser.rb', line 6 def self.type :html end |