Class: Bundler::GemDirectorySource
- Defined in:
- lib/bowline/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(bundle, options) ⇒ GemDirectorySource
constructor
A new instance of GemDirectorySource.
- #to_s ⇒ Object
Constructor Details
#initialize(bundle, options) ⇒ GemDirectorySource
Returns a new instance of GemDirectorySource.
147 148 149 150 |
# File 'lib/bowline/bundler/source.rb', line 147 def initialize(bundle, ) super @location = [:location] end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
145 146 147 |
# File 'lib/bowline/bundler/source.rb', line 145 def location @location end |
Instance Method Details
#==(other) ⇒ Object
160 161 162 |
# File 'lib/bowline/bundler/source.rb', line 160 def ==(other) location == other.location end |
#can_be_local? ⇒ Boolean
152 153 154 |
# File 'lib/bowline/bundler/source.rb', line 152 def can_be_local? true end |
#download(spec) ⇒ Object
168 169 170 |
# File 'lib/bowline/bundler/source.rb', line 168 def download(spec) # raise NotImplementedError end |
#gems ⇒ Object
156 157 158 |
# File 'lib/bowline/bundler/source.rb', line 156 def gems @specs ||= fetch_specs end |
#to_s ⇒ Object
164 165 166 |
# File 'lib/bowline/bundler/source.rb', line 164 def to_s location.to_s end |