Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. 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.2 · 3.1 · 3.0