Class: Conf

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
app/core/Conf.rb

Overview

Classe permettant de gérer le core (configuration unique)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConf

Initialisation



20
21
22
23
24
# File 'app/core/Conf.rb', line 20

def initialize ()
	## TODO: Add some exceptions handling
	@app  = YAML.load_file(Core::ROOT + "config/app.yml")
	@db   = YAML.load_file(Core::ROOT + "config/database.yml")
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app



15
16
17
# File 'app/core/Conf.rb', line 15

def app
  @app
end

#dbObject (readonly)

Returns the value of attribute db



15
16
17
# File 'app/core/Conf.rb', line 15

def db
  @db
end