class GZippedTar::Reader
Attributes
raw[R]
Public Class Methods
new(raw)
click to toggle source
# File lib/gzipped_tar/reader.rb, line 8 def initialize(raw) @raw = raw end
Public Instance Methods
read(path)
click to toggle source
# File lib/gzipped_tar/reader.rb, line 12 def read(path) result = nil reader.each { |entry| result = entry.read if entry.full_name == path } result end
Private Instance Methods
reader()
click to toggle source
# File lib/gzipped_tar/reader.rb, line 22 def reader GZippedTar::Tar::Reader.new unzipped end
unzipped()
click to toggle source
# File lib/gzipped_tar/reader.rb, line 26 def unzipped Zlib::GzipReader.new StringIO.new(raw, "r+b") end