Class: BZ2::Reader
- Inherits:
-
Object
- Object
- BZ2::Reader
- Defined in:
- lib/rook/helper/bz2.rb
Instance Method Summary collapse
- #_initialize ⇒ Object
-
#initialize(object, small = false) ⇒ Reader
constructor
A new instance of Reader.
- #pos ⇒ Object
- #pos=(index) ⇒ Object
- #rewind ⇒ Object
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
#_initialize ⇒ Object
17 |
# File 'lib/rook/helper/bz2.rb', line 17 alias _initialize initialize |
#pos ⇒ Object
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 |
#rewind ⇒ Object
32 33 34 |
# File 'lib/rook/helper/bz2.rb', line 32 def rewind @_io.rewind end |