Sha256: fa8233edd1c6393da191a34a9075a22b20c41ed842b0e518904585100c7abab0

Contents?: true

Size: 391 Bytes

Versions: 10

Compression:

Stored size: 391 Bytes

Contents

module Dox
  module Formatters
    class Base
      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

      def format
        raise 'no format method defined in formatter'
      end

      private

      attr_reader :http_env, :body
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dox-2.4.0 lib/dox/formatters/base.rb
dox-2.3.0 lib/dox/formatters/base.rb
dox-2.2.0 lib/dox/formatters/base.rb
dox-2.1.0 lib/dox/formatters/base.rb
dox-1.3.0 lib/dox/formatters/base.rb
dox-2.0.0 lib/dox/formatters/base.rb
dox-2.0.0.beta3 lib/dox/formatters/base.rb
dox-2.0.0.beta2 lib/dox/formatters/base.rb
dox-2.0.0.beta1 lib/dox/formatters/base.rb
dox-1.2.0 lib/dox/formatters/base.rb