Method: LibGems::DependencyList.from_source_index

Defined in:
lib/libgems/dependency_list.rb

.from_source_index(source_index) ⇒ Object

Creates a DependencyList from a LibGems::SourceIndex source_index



26
27
28
29
30
31
32
33
34
# File 'lib/libgems/dependency_list.rb', line 26

def self.from_source_index(source_index)
  list = new

  source_index.each do |full_name, spec|
    list.add spec
  end

  list
end