lambda{ require 'yaml' c = YAML.load(File.read("#{Rails.root}/config/lastfm.yml")) LastFM.api_key = c['api_key'] LastFM.secret = c['secret'] LastFM.client_name = c['client_name'] }.call