module Rack::Request::Helpers

def delete?; request_method == DELETE end

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