Method: OpenSSL::Buffering#each

Defined in:
lib/openssl/buffering.rb

#each(eol = $/) ⇒ Object Also known as: each_line

Executes the block for every line in the stream where lines are separated by eol.

See also #gets



259
260
261
262
263
# File 'lib/openssl/buffering.rb', line 259

def each(eol=$/)
  while line = self.gets(eol)
    yield line
  end
end