Method: Glark::TarFile#initialize
- Defined in:
- lib/glark/io/file/tar_file.rb
#initialize(fname, range, io = nil, &blk) ⇒ TarFile
Returns a new instance of TarFile.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/glark/io/file/tar_file.rb', line 9 def initialize fname, range, io = nil, &blk super fname, range # Given that this is a gem, I'm not sure if it is installed with other # package managers. So the require is down here, used only if needed. # module Gem::Package is declared in 'rubygems/package', not in # .../tar_reader. require 'rubygems/package' require 'rubygems/package/tar_reader' @io = io end |