In Files

  • ruby-3.1.2/lib/net/protocol.rb

Methods

Files

Class/Module Index [+]

Quicksearch

Net::ReadTimeout

ReadTimeout, a subclass of Timeout::Error, is raised if a chunk of the response cannot be read within the read_timeout.

Attributes

io[R]

Public Class Methods

new(io = nil) click to toggle source
 
               # File ruby-3.1.2/lib/net/protocol.rb, line 81
def initialize(io = nil)
  @io = io
end
            

Public Instance Methods

message() click to toggle source
 
               # File ruby-3.1.2/lib/net/protocol.rb, line 86
def message
  msg = super
  if @io
    msg = "#{msg} with #{@io.inspect}"
  end
  msg
end