class Connexion #attr_accessor :username, password, database, host def initialize(config_file, db) config = YAML::load_file(config_file) puts "testdd" #@username = database["#{db}"]['user'] @password = database["#{db}"]['password'] #@database = database["#{db}"]['dbname'] #@host = database["#{db}"]['host'] puts @password end end