Method: Pod::Podfile::TargetDefinition#label
- Defined in:
- lib/cocoapods-core/podfile/target_definition.rb
#label ⇒ String Also known as: to_s
Returns The label of the target definition according to its name.
109 110 111 112 113 114 115 116 117 |
# File 'lib/cocoapods-core/podfile/target_definition.rb', line 109 def label @label ||= if root? && name == 'Pods' 'Pods' elsif exclusive? || parent.nil? "Pods-#{name}" else "#{parent.label}-#{name}" end end |