Exception: Jellyfish::Response

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/jellyfish.rb

Direct Known Subclasses

Found, InternalError, NotFound

Instance Method Summary collapse

Instance Method Details

#bodyObject



23
24
25
# File 'lib/jellyfish.rb', line 23

def body
  @body ||= [File.read("#{Jellyfish.public_root}/#{status}.html")]
end

#headersObject



19
20
21
# File 'lib/jellyfish.rb', line 19

def headers
  @headers ||= {'Content-Type' => 'text/html'}
end