Class: Bundler::GemDirectorySource
- Defined in:
- lib/bundler/source.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Attributes inherited from Source
Instance Method Summary collapse
- #==(other) ⇒ Object
- #can_be_local? ⇒ Boolean
- #download(spec) ⇒ Object
- #gems ⇒ Object
-
#initialize(options) ⇒ GemDirectorySource
constructor
A new instance of GemDirectorySource.
- #to_s ⇒ Object
Constructor Details
#initialize(options) ⇒ GemDirectorySource
Returns a new instance of GemDirectorySource.
134 135 136 |
# File 'lib/bundler/source.rb', line 134 def initialize() @location = [:location] end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
132 133 134 |
# File 'lib/bundler/source.rb', line 132 def location @location end |
Instance Method Details
#==(other) ⇒ Object
146 147 148 |
# File 'lib/bundler/source.rb', line 146 def ==(other) location == other.location end |
#can_be_local? ⇒ Boolean
138 139 140 |
# File 'lib/bundler/source.rb', line 138 def can_be_local? true end |
#download(spec) ⇒ Object
154 155 156 |
# File 'lib/bundler/source.rb', line 154 def download(spec) # raise NotImplementedError end |
#gems ⇒ Object
142 143 144 |
# File 'lib/bundler/source.rb', line 142 def gems @specs ||= fetch_specs end |
#to_s ⇒ Object
150 151 152 |
# File 'lib/bundler/source.rb', line 150 def to_s location.to_s end |