class Rack::JsonWebTokenAuth::ResourceHttpMethods

These are Symbols and include the special :any value

Public Class Methods

to_s() click to toggle source
# File lib/rack/json_web_token_auth/contracts.rb, line 25
def self.to_s
  'An array of allowed HTTP methods for initializing a Resource'
end
valid?(val) click to toggle source
# File lib/rack/json_web_token_auth/contracts.rb, line 21
def self.valid?(val)
  Contract.valid?(val, Contracts::ArrayOf[Contracts::Enum[:any, :get, :head, :post, :put, :patch, :delete, :options]])
end