Class: Pod::Specification::Set::External

Inherits:
Pod::Specification::Set show all
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

Head

Instance Attribute Summary collapse

Attributes inherited from Pod::Specification::Set

#name, #sources

Instance Method Summary collapse

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

#specificationObject (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

#versionsObject



158
159
160
# File 'lib/cocoapods-core/specification/set.rb', line 158

def versions
  [specification.version]
end