Sha256: a8bf2aa2d5c2b925a65153de19955eca0b2571b38590ba01aac9c2da28cac884
Contents?: true
Size: 214 Bytes
Versions: 1
Compression:
Stored size: 214 Bytes
Contents
class IO #Returns array of lines up until the given string matches a line of the file. def self.read_until(file,string) f = self.readlines(file) i = f.index(string) || 100000 f.slice(0,i) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cldwalker-core-0.1.0 | lib/core/io.rb |