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)


313
314
315
316
# File 'lib/openssl/buffering.rb', line 313

def readchar
  raise EOFError if eof?
  getc
end