module Mojito::Controllers::Runtime::Methods

Public Instance Methods

DELETE() click to toggle source
# File lib/mojito/controllers/runtime/methods.rb, line 27
def DELETE
        METHOD(:delete)
end
GET() click to toggle source
# File lib/mojito/controllers/runtime/methods.rb, line 11
def GET
        METHOD(:get)
end
HEAD() click to toggle source
# File lib/mojito/controllers/runtime/methods.rb, line 15
def HEAD
        METHOD(:head)
end
METHOD(method) click to toggle source
# File lib/mojito/controllers/runtime/methods.rb, line 7
def METHOD(method)
        proc { request.request_method == method.to_s.upcase }
end
POST() click to toggle source
# File lib/mojito/controllers/runtime/methods.rb, line 19
def POST
        METHOD(:post)
end
PUT() click to toggle source
# File lib/mojito/controllers/runtime/methods.rb, line 23
def PUT
        METHOD(:put)
end