class HTTP::MimeType::HTML
This allows you to call `response.parse` and get back a Nokogiri object if the content type is HTML
.
Public Instance Methods
decode(str)
click to toggle source
# File lib/http/mime_type/html.rb, line 10 def decode(str) Nokogiri::HTML(str) end
encode(obj)
click to toggle source
# File lib/http/mime_type/html.rb, line 6 def encode(obj) obj.to_s if obj end