Unverified Commit 3edf0f3f authored by Samuel Giddins's avatar Samuel Giddins Committed by GitHub

Merge pull request #7482 from CocoaPods/seg-fix-inch

Fix documentation
parents 93011ece 48f4d3a9
...@@ -30,6 +30,12 @@ module Pod ...@@ -30,6 +30,12 @@ module Pod
# Creates a {PodfileDependencyCache} from the given {Podfile} # Creates a {PodfileDependencyCache} from the given {Podfile}
# #
# @param [Podfile] podfile
# The {Podfile} from which dependencies should be cached
#
# @return [PodfileDependencyCache]
# A warmed, immutable cache of all the dependencies in the {Podfile}
#
def self.from_podfile(podfile) def self.from_podfile(podfile)
podfile_dependencies = [] podfile_dependencies = []
dependencies_by_target_definition = {} dependencies_by_target_definition = {}
......
...@@ -17,9 +17,13 @@ module Pod ...@@ -17,9 +17,13 @@ module Pod
attr_reader :warnings attr_reader :warnings
# Initialize a new instance # Initialize a new instance
#
# @param [Podfile] podfile # @param [Podfile] podfile
# The podfile to validate # The podfile to validate
# #
# @param [Analyzer::PodfileDependencyCache] podfile_dependency_cache
# An (optional) cache of all the dependencies in the podfile
#
def initialize(podfile, podfile_dependency_cache = Analyzer::PodfileDependencyCache.from_podfile(podfile)) def initialize(podfile, podfile_dependency_cache = Analyzer::PodfileDependencyCache.from_podfile(podfile))
@podfile = podfile @podfile = podfile
@podfile_dependency_cache = podfile_dependency_cache @podfile_dependency_cache = podfile_dependency_cache
......
...@@ -40,8 +40,16 @@ module Pod ...@@ -40,8 +40,16 @@ module Pod
# #
attr_reader :development_pods attr_reader :development_pods
# Overridden to generate UUIDs in a much faster way, since we don't need to check for collisions # Generates a list of new UUIDs that created objects can be assigned.
# (as the Pods project is regenerated each time, and thus all UUIDs will have come from this method) #
# @note Overridden to generate UUIDs in a much faster way, since we don't need to check for collisions
# (as the Pods project is regenerated each time, and thus all UUIDs will have come from this method)
#
# @param [Integer] count
# The number of UUIDs to generate
#
# @return [Void]
#
def generate_available_uuid_list(count = 100) def generate_available_uuid_list(count = 100)
start = @generated_uuids.size start = @generated_uuids.size
uniques = Array.new(count) { |i| format('%011X0', start + i) } uniques = Array.new(count) { |i| format('%011X0', start + i) }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment