Method: OpenSSL::Buffering#each_byte

Defined in:
lib/openssl/buffering.rb

#each_byteObject

Calls the given block once for each byte in the stream.



300
301
302
303
304
# File 'lib/openssl/buffering.rb', line 300

def each_byte # :yields: byte
  while c = getc
    yield(c.ord)
  end
end