module Rack::Accept

HTTP Accept* for Ruby/Rack.

mjijackson.com/rack-accept

Constants

VERSION

Public Class Methods

new(app, &block) click to toggle source

Enables Rack::Accept to be used as a Rack middleware.

# File lib/rack/accept.rb, line 15
def self.new(app, &block)
  Context.new(app, &block)
end
version() click to toggle source

Returns the current version of Rack::Accept as a string.

# File lib/rack/accept.rb, line 10
def self.version
  VERSION.join('.')
end