Skip to content

Commit 98f9211

Browse files
nobumatzbot
authored andcommitted
[ruby/open-uri] [DOC] Missing documents
ruby/open-uri@1ccc576e9a
1 parent 0dfca2e commit 98f9211

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/open-uri.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ def self.open(name, *rest, &block)
9191

9292
module OpenURI
9393

94+
# The version string
9495
VERSION = "0.5.0"
9596

97+
# The default options
9698
Options = {
9799
:proxy => true,
98100
:proxy_http_basic_authentication => true,
@@ -394,24 +396,28 @@ def OpenURI.open_http(buf, target, proxy, options) # :nodoc:
394396
end
395397
end
396398

399+
# Raised on HTTP session failure
397400
class HTTPError < StandardError
398-
def initialize(message, io)
401+
def initialize(message, io) # :nodoc:
399402
super(message)
400403
@io = io
401404
end
405+
# StringIO having the received data
402406
attr_reader :io
403407
end
404408

405409
# Raised on redirection,
406410
# only occurs when +redirect+ option for HTTP is +false+.
407411
class HTTPRedirect < HTTPError
408-
def initialize(message, io, uri)
412+
def initialize(message, io, uri) # :nodoc:
409413
super(message, io)
410414
@uri = uri
411415
end
416+
# URI to redirect
412417
attr_reader :uri
413418
end
414419

420+
# Raised on too many redirection,
415421
class TooManyRedirects < HTTPError
416422
end
417423

0 commit comments

Comments
 (0)