Class: Rackful::HTTPStatus::XHTML
- Inherits:
-
XHTML
- Object
- Serializer
- XHTML
- Rackful::HTTPStatus::XHTML
- Defined in:
- gems/rackful-0.1.1/lib/rackful_http_status.rb,
gems/rackful-0.1.1.orig/lib/rackful_http_status.rb
Overview
Constant Summary
- HTTP_STATUS_CODES =
Rack::Utils::HTTP_STATUS_CODES
Constants inherited from XHTML
Instance Attribute Summary
Attributes inherited from Serializer
Instance Method Summary (collapse)
Methods inherited from XHTML
#each, #each_nested, #footer, #htmlify, #xsd_type
Methods inherited from Serializer
Constructor Details
This class inherits a constructor from Rackful::Serializer
Instance Method Details
- (void) header
64 65 66 67 68 69 70 71 |
# File 'gems/rackful-0.1.1/lib/rackful_http_status.rb', line 64 def header <<EOS <title>#{self.resource.status} #{HTTP_STATUS_CODES[self.resource.status]}</title> </head><body> <h1>HTTP/1.1 #{self.resource.status} #{HTTP_STATUS_CODES[self.resource.status]}</h1> <div id="rackful_description">#{self.resource.}</div> EOS end |
- (void) headers
74 75 76 |
# File 'gems/rackful-0.1.1/lib/rackful_http_status.rb', line 74 def headers self.resource.headers end |