class RBzip2::Decompressor
Public Instance Methods
eof?()
click to toggle source
# File lib/turtle_reader/rdf/compression.rb 42 def eof? 43 @current_state == EOF 44 end
gets(sep = $/)
click to toggle source
# File lib/turtle_reader/rdf/compression.rb 46 def gets(sep = $/) 47 r = '' 48 49 loop { 50 b = read0 51 break if b < 0 52 53 count(1) 54 r << b 55 56 break if r.end_with?(sep) 57 } 58 59 r 60 end
rewind()
click to toggle source
# File lib/turtle_reader/rdf/compression.rb 62 def rewind 63 @io.rewind 64 initialize(@io) 65 end