Class: Ogre::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/ogre/config.rb

Overview

Static method to make config parameters available

Class Method Summary collapse

Class Method Details

.optionsObject

Read in defaults from config file



16
17
18
# File 'lib/ogre/config.rb', line 16

def self.options
  (JSON.parse(File.read(CONFIG_PATH), symbolize_names: true) if File.exist?(CONFIG_PATH)) || {}
end