Class: Gem::Format

Class | Gem::Format
In: | lib/rubygems/format.rb
Parent: | Object

Gem::Format knows the guts of the RubyGem .gem file format and provides the capability to read gem files

### Methods

from_file_by_path from_io new

### Attributes

file_entries | [RW] |
gem_path | [RW] |
spec | [RW] |

### Public Class methods

from_file_by_path(file_path, security_policy = nil)

Reads the named gem file and returns a Format object, representing the data from the gem file

file_path: | [String] Path to the gem file

from_io(io, gem_path="(io)", security_policy = nil)

Reads a gem from an io stream and returns a Format object, representing the data from the gem file

io: | [IO] Stream from which to read the gem

new(gem_path)

Constructs an instance of a Format object, representing the gem‘s data structure.

gem: | [String] The file name of the gem

[Validate]