class Rack::Request::AuthHandlers

Constants

NIL_BLOCK
TOKENS

Public Class Methods

[](type) click to toggle source
# File lib/rack/auth.rb, line 25
def self.[] type
  return NIL_BLOCK unless TOKENS.include? type
  blocks[type] || NIL_BLOCK
end
blocks() click to toggle source
# File lib/rack/auth.rb, line 14
def self.blocks
  @@blocks ||= nil
  @@blocks = {} if @@blocks.nil?
  @@blocks
end
delete!(type) click to toggle source
# File lib/rack/auth.rb, line 34
def self.delete! type
  blocks.delete type
end
method_missing(meth, *args, &block) click to toggle source
Calls superclass method
# File lib/rack/auth.rb, line 20
def self.method_missing meth, *args, &block
  super unless TOKENS.include? meth
  blocks[meth] = block
end
reset!() click to toggle source
# File lib/rack/auth.rb, line 30
def self.reset!
  blocks.clear
end