Method: Pod::Lockfile#to_yaml

Defined in:
lib/cocoapods-core/lockfile.rb

#to_yamlString

Note:

Empty root keys are discarded.

Note:

The YAML string is prettified.

Returns the YAML representation of the Lockfile, used for serialization.

Returns:

  • (String)

    the YAML representation of the Lockfile, used for serialization.



397
398
399
# File 'lib/cocoapods-core/lockfile.rb', line 397

def to_yaml
  YAMLHelper.convert_hash(to_hash, HASH_KEY_ORDER, "\n\n")
end