Method: Pod::YAMLHelper.load_file

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

.load_file(file_path) ⇒ Hash, Array

Loads a YAML file and leans on the #load_string imp to do error detection

Parameters:

  • file_path (Pathname)

    The file path to be used for read for the YAML file

Returns:

  • (Hash, Array)

    the Ruby YAML representaton



74
75
76
# File 'lib/cocoapods-core/yaml_helper.rb', line 74

def load_file(file_path)
  load_string(File.read(file_path), file_path)
end