Class: Pod::Specification::Set::External
- Inherits:
-
Pod::Specification::Set
- Object
- Pod::Specification::Set
- Pod::Specification::Set::External
- Defined in:
- lib/cocoapods-core/specification/set.rb
Overview
Note:
External sources *don’t* support subspecs.
The Set::External class handles Pods from external sources. Pods from external sources don’t use the Pod::Source and are initialized by a given specification.
Instance Attribute Summary collapse
-
#specification ⇒ Object
readonly
Returns the value of attribute specification.
Attributes inherited from Pod::Specification::Set
#dependencies, #dependencies_by_requirer_name, #name, #sources
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(spec) ⇒ External
constructor
A new instance of External.
- #specification_path ⇒ Object
- #versions ⇒ Object
Methods inherited from Pod::Specification::Set
#acceptable_versions, #dependency, #highest_version, #highest_version_spec_path, #required_by, #required_version, #specification_path_for_version, #to_hash, #to_s, #versions_by_source
Constructor Details
#initialize(spec) ⇒ External
Returns a new instance of External.
212 213 214 215 |
# File 'lib/cocoapods-core/specification/set.rb', line 212 def initialize(spec) @specification = spec.root super(@specification.name) end |
Instance Attribute Details
#specification ⇒ Object (readonly)
Returns the value of attribute specification.
210 211 212 |
# File 'lib/cocoapods-core/specification/set.rb', line 210 def specification @specification end |
Instance Method Details
#==(other) ⇒ Object
217 218 219 |
# File 'lib/cocoapods-core/specification/set.rb', line 217 def ==(other) self.class == other.class && specification == other.specification end |
#specification_path ⇒ Object
221 222 223 |
# File 'lib/cocoapods-core/specification/set.rb', line 221 def specification_path raise StandardError, "specification_path" end |
#versions ⇒ Object
225 226 227 |
# File 'lib/cocoapods-core/specification/set.rb', line 225 def versions [specification.version] end |