class Pod::Dependency
Public Class Methods
new(name = nil, *requirements)
click to toggle source
# File lib/cocoapods-localsource/PodSwizzle.rb, line 21 def initialize(name = nil, *requirements) # adds requirement hash if it's not present requirements << {} unless requirements.last.is_a?(Hash) pathComponents = name.split("/") baseName = pathComponents[0] if LocalModuleManager.all_modules[baseName].present? localModule = LocalModuleManager.all_modules[baseName] # remove version requirement, if local requirements = requirements[1..-1] unless requirements.first.is_a?(Hash) # add path to local dependency requirements.last[:path] = localModule.module_path end real_initialize(name, *requirements) end
Also aliased as: real_initialize