From 0b006fd388a0f242e04482fda976aaab28b05842 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Tue, 13 Nov 2012 21:32:26 +0100 Subject: [PATCH] added more documentation --- lib/zero/request.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/zero/request.rb b/lib/zero/request.rb index 1bb7775..30e891e 100644 --- a/lib/zero/request.rb +++ b/lib/zero/request.rb @@ -44,22 +44,22 @@ module Zero @method ||= @env[CONST_REQUEST_METHOD].downcase.to_sym end # is the method 'GET'? - # @return true if this is a get request + # @return [Boolean] true if this is a get request def get?; method == :get; end # is the method 'POST'? - # @return true if this is a post request + # @return [Boolean] true if this is a post request def post?; method == :post; end # is the method 'PUT'? - # @return true if this is a put request + # @return [Boolean] true if this is a put request def put?; method == :put; end # is the method 'DELETE'? - # @return true if this is a delete request + # @return [Boolean] true if this is a delete request def delete?; method == :delete; end # is the method 'HEAD'? - # @return true if this is a head request + # @return [Boolean] true if this is a head request def head?; method == :head; end # is the method 'PATCH'? - # @return true if this is a patch request + # @return [Boolean] true if this is a patch request def patch?; method == :patch; end private