Why Net::HTTPUnknownResponse.kind_of? Net::HTTPResponse returns false?

Multi tool use


Why Net::HTTPUnknownResponse.kind_of? Net::HTTPResponse returns false?
I am using the ruby's native library net/http
and trying to check if a response is the type Net::HTTPResponse
so the test is equivalent to:
net/http
Net::HTTPResponse
Net::HTTPUnknownResponse.kind_of? Net::HTTPResponse
which is returning false
. What's wrong?
false
Ruby: 2.4.1
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.