Class: Pod::Podfile::TargetDefinition
- Inherits:
-
Object
- Object
- Pod::Podfile::TargetDefinition
- Defined in:
- lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
Instance Method Summary collapse
-
#ll_expedition_linkages(name, requirements, key) ⇒ Object
linklines is a array to save data if you directy define :linkage => static or :linkage => dynimic.
- #ll_linkages(is_linkage_all) ⇒ Object
Instance Method Details
#ll_expedition_linkages(name, requirements, key) ⇒ Object
linklines is a array to save data if you directy define :linkage => static or :linkage => dynimic
9 10 11 12 13 14 15 16 |
# File 'lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb', line 9 def ll_expedition_linkages(name, requirements,key) linklines ||= {} = requirements.last || {} linklines[Specification.root_name(name)] = [key] if .is_a?(Hash) && [key] .delete(key) if .is_a?(Hash) requirements.pop if .empty? linklines end |
#ll_linkages(is_linkage_all) ⇒ Object
18 19 20 21 22 |
# File 'lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb', line 18 def ll_linkages(is_linkage_all) pod_linkage = (is_linkage_all == true ? @linkages : @linkage) || {} pod_linkage.merge!(parent.ll_linkages(is_linkage_all)) { |key, v1, v2| v1 } if !parent.nil? && parent.is_a?(TargetDefinition) pod_linkage end |