Class | Celluloid::IO::Stream |
In: |
lib/celluloid/io/stream.rb
|
Parent: | Socket |
Base class of all streams in Celluloid::IO
sync | [RW] |
The "sync mode" of the stream
See IO#sync for full details. |
Executes the block for every line in the stream where lines are separated by eol.
See also gets
Reads the next line from the stream. Lines are separated by eol. If limit is provided the result will not be longer than the given number of bytes.
eol may be a String or Regexp.
Unlike IO#gets the line read will not be assigned to +$_+.
Unlike IO#gets the separator must be provided if a limit is provided.
Formats and writes to the stream converting parameters under control of the format string.
See Kernel#sprintf for format string details.
Reads size bytes from the stream. If buf is provided it must reference a string which will receive the data.
See IO#read for full details.
Reads at most maxlen bytes from the stream. If buf is provided it must reference a string which will receive the data.
See IO#readpartial for full details.