Flowdock
method

load_file

Importance_0
v1_9_3_392 - Show latest stable - 0 notes - Class: ConfigFile
load_file(filename) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/config_file.rb, line 248
  def load_file(filename)
    Gem.load_yaml

    return {} unless filename and File.exist? filename
    begin
      YAML.load(File.read(filename))
    rescue ArgumentError
      warn "Failed to load #{config_file_name}"
    rescue Errno::EACCES
      warn "Failed to load #{config_file_name} due to permissions problem."
    end or {}
  end
Register or log in to add new notes.