class RBzip2::Decompressor
Public Instance Methods
eof?()
click to toggle source
# File lib/turtle_reader/rdf/compression.rb, line 41 def eof? @current_state == EOF end
gets(sep = $/)
click to toggle source
# File lib/turtle_reader/rdf/compression.rb, line 45 def gets(sep = $/) r = '' loop { b = read0 break if b < 0 count(1) r << b break if r.end_with?(sep) } r end
rewind()
click to toggle source
# File lib/turtle_reader/rdf/compression.rb, line 61 def rewind @io.rewind initialize(@io) end