Class: ImageSize::SeekableIOReader
- Inherits:
-
Object
- Object
- ImageSize::SeekableIOReader
- Includes:
- ChunkyReader
- Defined in:
- lib/image_size/seekable_io_reader.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(io) ⇒ SeekableIOReader
constructor
A new instance of SeekableIOReader.
Methods included from ChunkyReader
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 |