class Distillery::Archiver::InputStream

InputStream used by Archiver#reader

Public Class Methods

new(io) click to toggle source
# File lib/distillery/archiver.rb, line 35
def initialize(io)
    @io = io
end

Public Instance Methods

read(length=nil) click to toggle source

Read data

@param length [Integer, nil] number of bytes to read,

whole data if nil

@return [String, nil] data or nil if end of stream

# File lib/distillery/archiver.rb, line 46
def read(length=nil)
    @io.read(length)
end