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



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

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