Methods

Class/Module Index [+]

Quicksearch

Pkg::Util::Serialization

Utility methods for dealing with serialization of Config params

Public Class Methods

load_yaml(file) click to toggle source

Given the path to a yaml file, load the yaml file into an object and return the object.

# File ext/packaging/lib/packaging/util/serialization.rb, line 7
def load_yaml(file)
  require 'yaml'
  file = File.expand_path(file)
  begin
    input_data = YAML.load_file(file) || {}
  rescue
    fail "There was an error loading data from #{file}."
  end
  input_data
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.