Method: Pod::YAMLHelper.convert

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

.convert(value) ⇒ String

Returns the YAML representation of the given object. If the given object is a Hash, it accepts an optional hint for sorting the keys.

Parameters:

  • object (String, Symbol, Array, Hash)

    the object to convert

  • hash_keys_hint (Array)

    an array to use as a hint for sorting the keys of the object to convert if it is a hash.

Returns:

  • (String)

    the YAML representation of the given object.

[View source]

35
36
37
38
# File 'lib/cocoapods-core/yaml_helper.rb', line 35

def convert(value)
  result = process_according_to_class(value)
  result << "\n"
end