Method: Ore::Config.options
- Defined in:
- lib/ore/config.rb
.options ⇒ Hash
Loads the default options from ~/.ore/options.yml
.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/ore/config.rb', line 53 def Config. = {} if (@@enabled && File.file?(OPTIONS_FILE)) = YAML.load_file(OPTIONS_FILE) # default options must be a Hash unless .kind_of?(Hash) raise("#{OPTIONS_FILE} must contain a YAML encoded Hash") end .each do |name,value| [name.to_sym] = value end end return end |