1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

autoload in module scope.

* lib/net/http.rb (Net::OpenSSL): get rid of autoload in global scope
  not to make tests confused.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-04-23 13:48:36 +00:00
parent 7255d93b08
commit cf6116150c

View file

@ -21,9 +21,9 @@
require 'net/protocol'
require 'uri'
autoload :OpenSSL, 'openssl'
module Net #:nodoc:
autoload :OpenSSL, 'openssl'
# :stopdoc:
class HTTPBadResponse < StandardError; end