class Dox::Formatters::Base

Attributes

body[R]
http_env[R]

Public Class Methods

new(http_env) click to toggle source
# File lib/dox/formatters/base.rb, line 4
def initialize(http_env)
  @http_env = http_env
  http_env_body = http_env.body
  @body = http_env_body.respond_to?(:read) ? http_env_body.read : http_env_body
end

Public Instance Methods

format() click to toggle source
# File lib/dox/formatters/base.rb, line 10
def format
  raise 'no format method defined in formatter'
end