Sha256: 6f082f0784265a076d7cf735ba30b5f7cd3769d23651bde7d6b2753651a0cdef

Contents?: true

Size: 708 Bytes

Versions: 1

Compression:

Stored size: 708 Bytes

Contents

require 'rack'

module Rack::Accept

  # The current version of rack-accept.
  VERSION = [0, 4, 1]

  # Returns the current version of rack-accept as a string.
  def self.version
    VERSION.join('.')
  end

  # Enables Rack::Accept to be used as a Rack middleware.
  def self.new(app, &block)
    Context.new(app, &block)
  end

  autoload :Charset,    'rack/accept/charset'
  autoload :Context,    'rack/accept/context'
  autoload :Encoding,   'rack/accept/encoding'
  autoload :Header,     'rack/accept/header'
  autoload :Language,   'rack/accept/language'
  autoload :MediaType,  'rack/accept/media_type'
  autoload :Request,    'rack/accept/request'
  autoload :Response,   'rack/accept/response'

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-accept-0.4.1 lib/rack/accept.rb