Method: Pod::Podfile::TargetDefinition#project_name_for_pod

Defined in:
lib/cocoapods-core/podfile/target_definition.rb

#project_name_for_pod(pod_name) ⇒ String

Note:

When querying for a subspec then use the root pod spec name instead as this is what's stored.

Returns The project name to use for the given pod name or nil if none specified.



303
304
305
306
307
308
309
# File 'lib/cocoapods-core/podfile/target_definition.rb', line 303

def project_name_for_pod(pod_name)
  if root?
    raw_project_names_hash[pod_name]
  else
    raw_project_names_hash[pod_name] || parent.project_name_for_pod(pod_name)
  end
end