Class: Repository::Gem

Inherits:
Array
  • Object
show all
Defined in:
lib/bundler/repository.rb

Instance Method Summary collapse

Methods inherited from Array

#flatten_once, #flatten_once!

Constructor Details

#initialize(name, repository) ⇒ Gem

Returns a new instance of Gem.



60
61
62
63
64
65
66
# File 'lib/bundler/repository.rb', line 60

def initialize(name, repository)
  if repository.local?
    super([name, { :path => repository.path.to_s }])
  else
    super([name, repository.options.dup])
  end
end