class LocationsNg::LoadFile

Public Class Methods

files_location(file) click to toggle source
# File lib/locations_ng/load_file.rb, line 8
def files_location(file)
  File.expand_path("../locations/#{file}.yml", __FILE__)
end
read(file_name) click to toggle source
# File lib/locations_ng/load_file.rb, line 4
def read(file_name)
  YAML.load(File.read(files_location file_name))
end