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

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


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.

YqhmYuOSBx0gmxzPfyVB18HNA,NG5GYPYCWufzcL05n JMhu m5Y6Dck3z,zMhfH
W dARX UV3Mpp4

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results