Class: Repository::Gem
- Inherits:
-
Array
- Object
- Array
- Repository::Gem
- Defined in:
- lib/bundler/repository.rb
Instance Method Summary collapse
-
#initialize(name, repository) ⇒ Gem
constructor
A new instance of Gem.
Constructor Details
#initialize(name, repository) ⇒ Gem
Returns a new instance of Gem.
60 61 62 63 64 65 66 67 |
# File 'lib/bundler/repository.rb', line 60 def initialize(name, repository) if repository.local? sub_path = repository.path.join(name) super([name, { :path => sub_path.exist? ? sub_path.to_s : repository.path.to_s }]) else super([name, repository..dup]) end end |