Class: Ogre::Config
- Inherits:
-
Object
- Object
- Ogre::Config
- Defined in:
- lib/ogre/config.rb
Overview
Static method to make config parameters available
Class Method Summary collapse
-
.options ⇒ Object
Read in defaults from config file.
Class Method Details
.options ⇒ Object
Read in defaults from config file
16 17 18 |
# File 'lib/ogre/config.rb', line 16 def self. (JSON.parse(File.read(CONFIG_PATH), symbolize_names: true) if File.exist?(CONFIG_PATH)) || {} end |