Sha256: a43d78e28b804993f9fe2ab608fd16847a4fd5c4025a56c121279899e5cfddf0

Contents?: true

Size: 277 Bytes

Versions: 1

Compression:

Stored size: 277 Bytes

Contents

class Reveal

	def self.read(file)
    	gzip_reader 	= Zlib::GzipReader.new(file	)
    	unzipped_data 	= gzip_reader.readlines.join
    	gzip_reader.close
    	return unzipped_data
    rescue Zlib::GzipFile::Error => e
    	file.rewind
    	return file.readlines.join
	end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reveal-0.1.0 lib/reveal.rb