Method invocation may produce 'NoMethodError'

已回答

I have some code:

# frozen_string_literal: true

require 'httpclient'

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

body = response.body

puts body

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

0

Hello Sergey,

I've submitted the issue on our tracker so please add your vote and follow it: https://youtrack.jetbrains.com/issue/RUBY-24592

0

请先登录再写评论。