Class: Pod::Source::AbstractDataProvider
- Inherits:
-
Object
- Object
- Pod::Source::AbstractDataProvider
- Defined in:
- lib/cocoapods-core/source/abstract_data_provider.rb
Overview
Defines the required and the optional methods of a data provider.
Direct Known Subclasses
Required methods collapse
-
#name ⇒ String
The name of the source.
-
#pods ⇒ Array<String>
The list of the name of all the Pods known to the Source.
-
#specification(name, version) ⇒ Specification
The specification for a given version of a Pod.
-
#specification_contents(name, version) ⇒ Specification
The contents of the specification for a given version of a Pod.
-
#type ⇒ String
The user friendly type of the source.
-
#versions(name) ⇒ Array<String>
All the available versions of a given Pod, sorted from highest to lowest.
Instance Method Details
#name ⇒ String
Returns The name of the source.
15 16 17 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 15 def name raise StandardError, "Abstract method." end |
#pods ⇒ Array<String>
Returns The list of the name of all the Pods known to the Source.
28 29 30 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 28 def pods raise StandardError, "Abstract method." end |
#specification(name, version) ⇒ Specification
Returns The specification for a given version of a Pod.
50 51 52 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 50 def specification(name, version) raise StandardError, "Abstract method." end |
#specification_contents(name, version) ⇒ Specification
Returns The contents of the specification for a given version of a Pod.
63 64 65 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 63 def specification_contents(name, version) raise StandardError, "Abstract method." end |
#type ⇒ String
Returns The user friendly type of the source.
21 22 23 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 21 def type raise StandardError, "Abstract method." end |
#versions(name) ⇒ Array<String>
Returns All the available versions of a given Pod, sorted from highest to lowest.
38 39 40 |
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 38 def versions(name) raise StandardError, "Abstract method." end |