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.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#specification ⇒ Object
readonly
Returns the value of attribute specification.
Attributes inherited from Pod::Specification::Set
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(spec) ⇒ External
constructor
A new instance of External.
- #versions ⇒ Object
Methods inherited from Pod::Specification::Set
#highest_version, #highest_version_spec_path, #specification_name, #specification_paths_for_version, #to_hash, #to_s, #versions_by_source
Constructor Details
#initialize(spec) ⇒ External
Returns a new instance of External.
149 150 151 152 |
# File 'lib/cocoapods-core/specification/set.rb', line 149 def initialize(spec) @specification = spec.root super(@specification.name) end |
Instance Attribute Details
#specification ⇒ Object (readonly)
Returns the value of attribute specification.
147 148 149 |
# File 'lib/cocoapods-core/specification/set.rb', line 147 def specification @specification end |
Instance Method Details
#==(other) ⇒ Object
154 155 156 |
# File 'lib/cocoapods-core/specification/set.rb', line 154 def ==(other) self.class == other.class && specification == other.specification end |
#versions ⇒ Object
158 159 160 |
# File 'lib/cocoapods-core/specification/set.rb', line 158 def versions [specification.version] end |