module Rack::Accept
HTTP Accept* for Ruby/Rack.
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 8 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/version.rb, line 6 def self.version VERSION.join('.') end