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