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



227
228
229
230
231
# File 'lib/openssl/buffering.rb', line 227

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