Method: OpenSSL::Buffering#readchar

Defined in:
lib/openssl/buffering.rb

#readcharObject

Reads a one-character string from the stream. Raises an EOFError at end of file.

Raises:

  • (EOFError)


310
311
312
313
# File 'lib/openssl/buffering.rb', line 310

def readchar
  raise EOFError if eof?
  getc
end