Class: Bundler::Source::RubygemsAggregate

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler/source/rubygems_aggregate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sources, source_map) ⇒ RubygemsAggregate

Returns a new instance of RubygemsAggregate.



8
9
10
11
12
13
# File 'lib/bundler/source/rubygems_aggregate.rb', line 8

def initialize(sources, source_map)
  @sources = sources
  @source_map = source_map

  @index = build_index
end

Instance Attribute Details

#source_mapObject (readonly)

Returns the value of attribute source_map.



6
7
8
# File 'lib/bundler/source/rubygems_aggregate.rb', line 6

def source_map
  @source_map
end

#sourcesObject (readonly)

Returns the value of attribute sources.



6
7
8
# File 'lib/bundler/source/rubygems_aggregate.rb', line 6

def sources
  @sources
end

Instance Method Details

#specsObject



15
16
17
# File 'lib/bundler/source/rubygems_aggregate.rb', line 15

def specs
  @index
end

#to_sObject



19
20
21
# File 'lib/bundler/source/rubygems_aggregate.rb', line 19

def to_s
  "any of the sources"
end