aboutsummaryrefslogtreecommitdiffstats
path: root/lib/webrick
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-21 04:50:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-21 04:50:18 +0000
commitd059d718b505bacbf7af6e9c473eb95391d481d0 (patch)
tree7d4cdd7df6c1fd25a31f88df68c52ad4cbda5e05 /lib/webrick
parent9bb6a05283ce7f3deb57c707b16c60b43abd3e97 (diff)
downloadruby-d059d718b505bacbf7af6e9c473eb95391d481d0.tar.gz
remove trainling spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick')
-rw-r--r--lib/webrick/httpstatus.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/webrick/httpstatus.rb b/lib/webrick/httpstatus.rb
index 37a36faa94..afc8e75a47 100644
--- a/lib/webrick/httpstatus.rb
+++ b/lib/webrick/httpstatus.rb
@@ -27,13 +27,13 @@ module WEBrick
class << self
attr_reader :code, :reason_phrase # :nodoc:
end
-
+
# Returns the HTTP status code
def code() self::class::code end
-
+
# Returns the HTTP status description
def reason_phrase() self::class::reason_phrase end
-
+
alias to_i code # :nodoc:
end
@@ -146,31 +146,31 @@ module WEBrick
def info?(code)
code.to_i >= 100 and code.to_i < 200
end
-
+
##
# Is +code+ a successful status?
def success?(code)
code.to_i >= 200 and code.to_i < 300
end
-
+
##
# Is +code+ a redirection status?
def redirect?(code)
code.to_i >= 300 and code.to_i < 400
end
-
+
##
# Is +code+ an error status?
def error?(code)
code.to_i >= 400 and code.to_i < 600
end
-
+
##
# Is +code+ a client error status?
def client_error?(code)
code.to_i >= 400 and code.to_i < 500
end
-
+
##
# Is +code+ a server error status?
def server_error?(code)