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_paths_for_version, #to_hash, #to_s, #versions_by_source

Constructor Details

#initialize(spec) ⇒ External

Returns a new instance of External


136
137
138
139
# File 'lib/cocoapods-core/specification/set.rb', line 136

def initialize(spec)
  @specification = spec.root
  super(@specification.name)
end

Instance Attribute Details

#specificationObject (readonly)

Returns the value of attribute specification


134
135
136
# File 'lib/cocoapods-core/specification/set.rb', line 134

def specification
  @specification
end

Instance Method Details

#==(other) ⇒ Object


141
142
143
# File 'lib/cocoapods-core/specification/set.rb', line 141

def ==(other)
  self.class == other.class && specification == other.specification
end

#versionsObject


145
146
147
# File 'lib/cocoapods-core/specification/set.rb', line 145

def versions
  [specification.version]
end