module Rack::Request::Helpers

def patch?; request_method == PATCH end

Checks the HTTP request method (or verb) to see if it was of type PATCH
def patch?;   request_method == PATCH   end