Class: BZ2::Reader

Inherits:
Object
  • Object
show all
Defined in:
lib/rook/helper/bz2.rb

Instance Method Summary collapse

Constructor Details

#initialize(object, small = false) ⇒ Reader

Returns a new instance of Reader.



19
20
21
22
# File 'lib/rook/helper/bz2.rb', line 19

def initialize(object, small=false)
  _initialize(object, small)
  @_io = object
end

Instance Method Details

#_initializeObject



17
# File 'lib/rook/helper/bz2.rb', line 17

alias _initialize initialize

#posObject



24
25
26
# File 'lib/rook/helper/bz2.rb', line 24

def pos
  @_io.pos
end

#pos=(index) ⇒ Object



28
29
30
# File 'lib/rook/helper/bz2.rb', line 28

def pos=(index)
  @_io.pos = index
end

#rewindObject



32
33
34
# File 'lib/rook/helper/bz2.rb', line 32

def rewind
  @_io.rewind
end