Object
# File lib/rack/attack/check.rb, line 5 def initialize(name, block) @name, @block = name, block @type = nil end
# File lib/rack/attack/check.rb, line 10 def [](req) block[req].tap {|match| if match req.env["rack.attack.matched"] = name req.env["rack.attack.match_type"] = type Rack::Attack.instrument(req) end } end
[Validate]
Generated with the Darkfish Rdoc Generator 2.