Method: Pod::Podfile::TargetDefinition#set_hash_value

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

#set_hash_value(key, value) ⇒ void (private)

This method returns an undefined value.

Set a value in the internal hash of the target definition for the given key.

Parameters:

  • key (String)

    The key for which to store the value.

  • value (Object)

    The value to store.

Raises:



886
887
888
889
890
891
# File 'lib/cocoapods-core/podfile/target_definition.rb', line 886

def set_hash_value(key, value)
  unless HASH_KEYS.include?(key)
    raise StandardError, "Unsupported hash key `#{key}`"
  end
  internal_hash[key] = value
end