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



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

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

#headersObject



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

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