Class: ImageSize::SeekableIOReader

Inherits:
Object
  • Object
show all
Includes:
ChunkyReader
Defined in:
lib/image_size/seekable_io_reader.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods included from ChunkyReader

#[], #chunk_size

Methods included from Reader

#fetch, open_with_uri, #stream, #unpack, #unpack1

Constructor Details

#initialize(io) ⇒ SeekableIOReader

Returns a new instance of SeekableIOReader.



9
10
11
12
13
# File 'lib/image_size/seekable_io_reader.rb', line 9

def initialize(io)
  @io = io
  @pos = 0
  @chunks = {}
end