Class: Net::HTTPResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/twitterstream.rb

Instance Method Summary collapse

Instance Method Details

#each_line(rs = "\n") ⇒ Object



11
12
13
14
15
16
17
# File 'lib/twitterstream.rb', line 11

def each_line(rs = "\n")
  stream_check
  while line = @socket.readuntil(rs)
    yield line
  end
  self
end