Module: IOBlockReader

Defined in:
lib/ioblockreader.rb,
lib/ioblockreader/datablock.rb,
lib/ioblockreader/ioblockreader.rb

Defined Under Namespace

Classes: DataBlock, IOBlockReader

Class Method Summary collapse

Class Method Details

.init(io, options = {}) ⇒ Object

Init an IOBlockReader from an existing io. The io object has to be readable and seekable.

Parameters
  • io (IO): The IO object

  • options (map<Symbol,Object>): Options (see IOBlockReader::IOBlockReader documentation) [default = {}]

Result
  • IOBlockReader::IOBlockReader: Resulting interface on the IO



13
14
15
# File 'lib/ioblockreader.rb', line 13

def self.init(io, options = {})
  ::IOBlockReader::IOBlockReader.new(io, options)
end