method

new

v2_5_5 - Show latest stable - Class: Gem::Package
new(gem, security_policy = nil)
public

Creates a new Gem::Package for the file at gem. gem can also be provided as an IO object.

If gem is an existing file in the old format a Gem::Package::Old will be returned.