Sha256: 44668128a3787fa64d5636bac5d596fc08e98a937d44344a9dd3cbdc53387bb9
Contents?: true
Size: 496 Bytes
Versions: 4
Compression:
Stored size: 496 Bytes
Contents
require "yaml" # => Author:: DanAurea # => Version:: 0.1 # => Copyright:: © 2016 # => License:: Distributes under the same terms as Ruby ## ## Classe permettant de gérer le core (configuration unique) ## class Conf include Singleton attr_reader :app, :db ## ## Initialisation ## 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 end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
Dogeku-1.0.4 | app/core/Conf.rb |
Dogeku-1.0.3 | app/core/Conf.rb |
Dogeku-1.0.2 | app/core/Conf.rb |
Dogeku-1.0.1 | app/core/Conf.rb |