lib/cocoapods-core/podfile/target_definition.rb
# Stores the dependency for a Pod with the given name.
#
# @param  [String] name
#         The name of the Pod
#
# @param  [Array<String, Hash>] requirements
#         The requirements and the options of the dependency.
#
# @note   The dependencies are stored as an array. To simplify the YAML
#         representation if they have requirements they are represented
#         as a Hash, otherwise only the String of the name is added to
#         the array.
#
# @todo   This needs urgently a rename.
#
# @return [void]
#
Stores the dependency for a Pod with the given name.
Stores the dependency for a Pod with the given name .
def store_pod(name, *requirements)
        if requirements && !requirements.empty?
          pod = { name => requirements }
        else
          pod = name
        end
        get_hash_value('dependencies', []) << pod
      end
def store_pod ( name , * requirements ) if requirements && ! requirements . empty? pod = { name => requirements } else pod = name end get_hash_value ( 'dependencies' , [ ] ) << pod end
Stores the dependency for a Pod with the given name.
Stores the dependency for a Pod with the given name .
None
void
name
requirements
requirements The requirements and the options of the dependency.
requirements The requirements and the options of the dependency .
note
The dependencies are stored as an array. To simplify the YAML representation if they have requirements they are represented as a Hash, otherwise only the String of the name is added to the array.
The dependencies are stored as an array . To simplify the YAML representation if they have requirements they are represented as a Hash otherwise only the String of the name is added to the array .
todo
This needs urgently a rename.
This needs urgently a rename .