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, excluded_sources = []) ⇒ RubygemsAggregate

Returns a new instance of RubygemsAggregate.



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

def initialize(sources, source_map, excluded_sources = [])
  @sources = sources
  @source_map = source_map
  @excluded_sources = excluded_sources

  @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

#identifierObject



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

def identifier
  to_s
end

#specsObject



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

def specs
  @index
end

#to_sObject



24
25
26
# File 'lib/bundler/source/rubygems_aggregate.rb', line 24

def to_s
  "any of the sources"
end