Class: Rack::Logjam::Formatters::Base
- Inherits:
-
Object
- Object
- Rack::Logjam::Formatters::Base
- Defined in:
- lib/rack/logjam/formatters/base.rb
Instance Method Summary collapse
-
#initialize(content, format = nil) ⇒ Base
constructor
A new instance of Base.
- #render ⇒ Object
Constructor Details
#initialize(content, format = nil) ⇒ Base
Returns a new instance of Base.
6 7 8 9 |
# File 'lib/rack/logjam/formatters/base.rb', line 6 def initialize( content, format=nil ) @content = content @format = format end |
Instance Method Details
#render ⇒ Object
11 12 13 |
# File 'lib/rack/logjam/formatters/base.rb', line 11 def render "You must implement #{self.class.name}#render in order to render a #{format} response" end |