Class: Net::HTTPResponse

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

Instance Method Summary collapse

Instance Method Details

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



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

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