httpclient icon indicating copy to clipboard operation
httpclient copied to clipboard

Method invocation may produce 'NoMethodError'

Open tit opened this issue 6 years ago • 0 comments

I use RubyMine IDE and gem HTTPClient.

# frozen_string_literal: true

require 'httpclient'

client = HTTPClient.new
response = client.get 'https://httpbin.org/get'

body = response.body # <<- SEE HERE

puts body

Why RubyMine have warning about Method invocation may produce 'NoMethodError'?

tit avatar Jul 07 '19 21:07 tit