Issue #9987 has been updated by Nobuyoshi Nakada.

Description updated
Status changed from Open to Third Party's Issue

Why is it private?
Who does it?

----------------------------------------
Bug #9987: method Net::HTTP methods private
https://bugs.ruby-lang.org/issues/9987#change-47425

* Author: Douglas Feitosa
* Status: Third Party's Issue
* Priority: Normal
* Assignee: 
* Category: lib
* Target version: current: 2.2.0
* ruby -v: 2.1.0
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
~~~ruby
    def HTTP.start(address, *arg, &block) # :yield: +http+
      arg.pop if opt = Hash.try_convert(arg[-1])
      port, p_addr, p_port, p_user, p_pass = *arg
      port = https_default_port if !port && opt && opt[:use_ssl]
      http = new(address, port, p_addr, p_port, p_user, p_pass)

      if opt
        if opt[:use_ssl]
          opt = {verify_mode: OpenSSL::SSL::VERIFY_PEER}.update(opt)
        end
        http.methods.grep(/\A(\w+)=\z/) do |meth|
          key = $1.to_sym
          opt.key?(key) or next
          http.__send__(meth, opt[key])
        end
      end

      http.start(&block)
    end
~~~

method 'methods' in http(Net::HTTP) private when running in rake task.



-- 
https://bugs.ruby-lang.org/