module Archive::Ar

Constants

MAGIC
VERSION

Public Class Methods

create(dest_file, filenames = [], options = {}) click to toggle source
# File lib/archive/ar.rb, line 10
def self.create(dest_file, filenames = [], options = {})
  Writer.new(filenames).write(dest_file, options)
end
extract(source_file, dest_dir, options = {}) click to toggle source
# File lib/archive/ar.rb, line 14
def self.extract(source_file, dest_dir, options = {})
  Reader.new(source_file, options).extract(dest_dir, options)
end
traverse(source_file, options = {}, &block) click to toggle source
# File lib/archive/ar.rb, line 18
def self.traverse(source_file, options = {}, &block)
  Reader.new(source_file, options).each(&block)
end