Method invocation may produce 'NoMethodError'

Answered

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'?

1 comment
Comment actions Permalink

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

Please sign in to leave a comment.