class Rack::ContentSecurityPolicy::RackResponse

Public Class Methods

to_s() click to toggle source
# File lib/rack/content_security_policy/contracts.rb, line 41
def self.to_s
  'A Rack response'
end
valid?(val) click to toggle source
# File lib/rack/content_security_policy/contracts.rb, line 37
def self.valid?(val)
  Contract.valid?(val, [Contracts::Int, Hash, Contracts::RespondTo[:each]])
end