modules/sr/lib/serializers/implementations/yaml_serializer.rb
def load_file(file)
    puts "Loading yaml from file: #{file}" if $verbose
    loaded_data = {}
    begin
      loaded_data = YAML.safe_load File.read file if File.exist? file
    rescue StandardError
      puts "Error parsing file: #{file}. #{$ERROR_INFO}" if $verbose
    ensure
      loaded_data
    end
  end
# Load object from file.
# Silent: always returns an object
Load object from file.
Silent: always returns an object
Load object from file . Silent : always returns an object
def load_file(file)
    puts "Loading yaml from file: #{file}" if $verbose
    loaded_data = {}
    begin
      loaded_data = YAML.safe_load File.read file if File.exist? file
    rescue StandardError
      puts "Error parsing file: #{file}. #{$ERROR_INFO}" if $verbose
    ensure
      loaded_data
    end
  end
def load_file ( file ) puts "Loading yaml from file: #{file}" if $verbose loaded_data = { } begin loaded_data = YAML . safe_load File . read file if File . exist? file rescue StandardError puts "Error parsing file: #{file}. #{$ERROR_INFO}" if $verbose ensure loaded_data end end
Load object from file.
Load object from file .
file