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

Inherits:
Pod::Specification::Set show all
Defined in:
lib/cocoapods/specification/set.rb

Instance Attribute Summary

Attributes inherited from Pod::Specification::Set

#pod_dir

Instance Method Summary collapse

Methods inherited from Pod::Specification::Set

#==, by_pod_dir, by_specification_name, #dependency, #required_version, sets, #to_s

Constructor Details

#initialize(specification) ⇒ External

Returns a new instance of External.



86
87
88
89
# File 'lib/cocoapods/specification/set.rb', line 86

def initialize(specification)
  @specification = specification
  @required_by = []
end

Instance Method Details

#nameObject



91
92
93
# File 'lib/cocoapods/specification/set.rb', line 91

def name
  @specification.name
end

#only_part_of_other_pod?Boolean

Returns:

  • (Boolean)


102
103
104
# File 'lib/cocoapods/specification/set.rb', line 102

def only_part_of_other_pod?
  false
end

#required_by(specification) ⇒ Object



95
96
97
98
99
100
# File 'lib/cocoapods/specification/set.rb', line 95

def required_by(specification)
  before = @specification
  super(specification)
ensure
  @specification = before
end

#specificationObject



110
111
112
# File 'lib/cocoapods/specification/set.rb', line 110

def specification
  @specification
end

#specification_pathObject



106
107
108
# File 'lib/cocoapods/specification/set.rb', line 106

def specification_path
  raise "specification_path"
end

#versionsObject



114
115
116
# File 'lib/cocoapods/specification/set.rb', line 114

def versions
  [@specification.version]
end