Method: LibGems::SourceIndex#initialize
- Defined in:
- lib/libgems/source_index.rb
#initialize(specifications = {}) ⇒ SourceIndex
Constructs a source index instance from the provided specifications, which is a Hash of gem full names and LibGems::Specifications. – TODO merge @gems and @prerelease_gems and provide a separate method #prerelease_gems
124 125 126 127 128 |
# File 'lib/libgems/source_index.rb', line 124 def initialize(specifications={}) @gems = {} specifications.each{ |full_name, spec| add_spec spec } @spec_dirs = nil end |