Method: Rack::Request::Helpers#options?

Defined in:
lib/rack/request.rb

#options?Boolean

Checks the HTTP request method (or verb) to see if it was of type OPTIONS

Returns:

  • (Boolean)


234
# File 'lib/rack/request.rb', line 234

def options?; request_method == OPTIONS end