class PHP::StringIOReader
Public Instance Methods
read_until(char)
click to toggle source
Reads data from the buffer until char
is found. The returned string will include char
.
# File lib/php_serialize.rb, line 9 def read_until(char) val, cpos = '', pos if idx = string.index(char, cpos) val = read(idx - cpos + 1) end val end