Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
972cb59e
Commit
972cb59e
authored
Jun 09, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Platform] docs.
parent
05fba7b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
platform.rb
lib/cocoapods/platform.rb
+8
-6
No files found.
lib/cocoapods/platform.rb
View file @
972cb59e
module
Pod
module
Pod
# A platform describes a build environment.
# A platform describes an SDK name and deployment target. If no name
# It captures information about the SDK and a deployment target.
# is provided an instance of this class behaves like nil and represents
#
# all the known platforms
# A platform represents all the known build environments if its name is nil.
#
#
class
Platform
class
Platform
...
@@ -89,6 +88,8 @@ module Pod
...
@@ -89,6 +88,8 @@ module Pod
#
#
attr_reader
:declared_deployment_target
attr_reader
:declared_deployment_target
# @todo Deprecate
#
def
deployment_target
=
(
version
)
def
deployment_target
=
(
version
)
@deployment_target
=
Pod
::
Version
.
create
(
version
)
@deployment_target
=
Pod
::
Version
.
create
(
version
)
end
end
...
@@ -141,7 +142,7 @@ module Pod
...
@@ -141,7 +142,7 @@ module Pod
s
s
end
end
# @return [Symbol] A Symbol representation of the
SDK
.
# @return [Symbol] A Symbol representation of the
name
.
#
#
def
to_sym
def
to_sym
name
name
...
@@ -149,7 +150,8 @@ module Pod
...
@@ -149,7 +150,8 @@ module Pod
# @return Whether the platform does not represents any SDK.
# @return Whether the platform does not represents any SDK.
#
#
# A platform behaves as nil if doesn't specify an SDK and implicitly represents all the available platforms.
# @note A platform behaves as nil if doesn't specify an name and
# represents all the known platforms.
#
#
def
nil?
def
nil?
name
.
nil?
name
.
nil?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment