Class: Subscene::Response::HTML

Inherits:
Subscene::Response show all
Defined in:
lib/subscene/response/html.rb

Constant Summary

Constants inherited from Subscene::Response

CONTENT_TYPE

Instance Method Summary collapse

Methods inherited from Subscene::Response

define_parser, #parse_response?, #response_type

Instance Method Details

#parse(body) ⇒ Object


10
11
12
13
14
15
16
17
# File 'lib/subscene/response/html.rb', line 10

def parse(body)
  case body
  when String
    self.class.parser.call body
  else
    body
  end
end