Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

OpenSSL::Buffering#read

read(size=nil, buf=nil)

Reads size bytes from the stream. If buf is provided it must reference a string which will receive the data.

See IO#read for full details.

See also #puts #readchar #printf #readline also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0